mirror_ubuntu-kernels/drivers/gpu/drm
Paul Cercueil 66bb0a7c61
drm: bridge: it66121: Fix wait for DDC ready
The function it66121_wait_ddc_ready() would previously read the status
register until "true", which means it never actually polled anything and
would just read the register once.

Now, it will properly wait until the DDC hardware is ready or until it
reported an error.

The 'busy' variable was also renamed to 'error' since these bits are set
on error and not when the DDC hardware is busy.

Since the DDC ready function is now working properly, the msleep(20) can
be removed.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221214125821.12489-6-paul@crapouillou.net
2022-12-16 11:41:02 +01:00
..
amd drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
arm drm/arm/malidp: remove calls to drm_mode_config_cleanup() 2022-11-16 10:33:45 +00:00
armada drm/fb-helper: Perform all fbdev I/O with the same implementation 2022-11-05 17:05:54 +01:00
aspeed drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
ast drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
atmel-hlcdc drm: atmel-hlcdc: Remove #ifdef guards for PM related functions 2022-12-12 12:30:56 +00:00
bridge drm: bridge: it66121: Fix wait for DDC ready 2022-12-16 11:41:02 +01:00
display Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
etnaviv Merge branch 'etnaviv/next' of https://git.pengutronix.de/git/lst/linux into drm-next 2022-11-22 12:30:01 +10:00
exynos drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
fsl-dcu drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
gma500 drm/fb-helper: Perform all fbdev I/O with the same implementation 2022-11-05 17:05:54 +01:00
gud drm/gud: Fix missing include 2022-12-08 12:32:25 +01:00
hisilicon drm/hisilicon/hibmc: Fix preferred depth and bpp 2022-11-24 14:07:52 +01:00
hyperv drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
i2c drm/connector: Rename drm_mode_create_tv_properties 2022-11-24 12:42:39 +01:00
i810
i915 drm/i915: stop using ttm_bo_wait 2022-12-13 09:46:02 +01:00
imx drm: imx/dcss: Remove #ifdef guards for PM related functions 2022-12-12 13:07:01 +00:00
ingenic drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
kmb drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
lib
lima Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
logicvc drm/logicvc: Fix preferred fbdev cpp 2022-11-24 14:07:52 +01:00
mcde drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
mediatek drm/mediatek: dp: Replace usage of drm_bridge_chain_ functions 2022-12-08 09:56:56 +01:00
meson drm/meson: dw-hdmi: Use devm_regulator_*get_enable*() 2022-12-01 09:38:48 +01:00
mga
mgag200 drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
msm Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
mxsfb drm: mxsfb: DRM_MXSFB should depend on ARCH_MXS || ARCH_MXC 2022-11-25 22:47:34 +01:00
nouveau drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
omapdrm drm: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:47 +03:00
panel drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
panfrost drm: panfrost: Remove #ifdef guards for PM related functions 2022-12-12 13:07:01 +00:00
pl111 drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
qxl drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
r128
radeon drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
rcar-du drm: rcar-du: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
rockchip Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
savage
scheduler Merge drm/drm-next into drm-misc-next 2022-11-24 09:28:05 +01:00
shmobile drm: shmobile: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
sis drm/sis: use idr_init_base() to initialize dev_priv->object_idr 2022-07-28 15:35:56 +01:00
solomon drm/solomon: Set preferred color depth and bpp to the correct values 2022-11-24 14:07:52 +01:00
sprd drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
sti drm/sti: Use drm_mode_copy() 2022-11-12 01:41:35 +02:00
stm drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
sun4i drm/sun4i: tv: Convert to the new TV mode property 2022-11-24 12:42:41 +01:00
tdfx
tegra Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
tests drm/tests: Add a test for DRM managed actions 2022-12-08 09:56:55 +01:00
tidss drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
tilcdc drm: tilcdc: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
tiny drm/tiny: panel-mipi-dbi: Read I/O supply from DT 2022-12-14 14:58:09 +01:00
ttm drm/ttm: use ttm_bo_wait_ctx instead of ttm_bo_wait 2022-12-06 13:02:20 +01:00
tve200 drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
udl drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
v3d drm/v3d: add missing mutex_destroy 2022-11-10 11:49:40 -01:00
vboxvideo drm: vboxvideo: Remove #ifdef guards for PM related functions 2022-12-12 13:07:03 +00:00
vc4 drm/vc4: dsi: Remove entry to ULPS from vc4_dsi post_disable 2022-12-15 08:57:17 +01:00
vgem
via drm/via: Add new condition to via_dma_cleanup() 2022-09-07 07:01:16 +02:00
virtio drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
vkms drm/vkms: change min cursor size to accept smaller values 2022-11-29 22:10:48 -01:00
vmwgfx drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
xen drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
xlnx drm-misc-next for 6.2: 2022-11-16 07:17:32 +10:00
drm_agpsupport.c
drm_aperture.c drm/aperture: Fix some kerneldoc comments 2022-09-12 09:34:07 +02:00
drm_atomic_helper.c drm/atomic-helper: Add {begin,end}_fb_access to plane helpers 2022-11-08 17:10:27 +01:00
drm_atomic_state_helper.c drm/atomic-helper: Add an analog TV atomic_check implementation 2022-11-24 12:42:40 +01:00
drm_atomic_uapi.c drm/connector: Add TV standard property 2022-11-24 12:42:39 +01:00
drm_atomic.c drm/atomic: Constify the old/new state accessors 2022-11-28 11:46:50 +01:00
drm_auth.c drm: use idr_init_base() to initialize master->lessee_idr 2022-07-28 15:35:55 +01:00
drm_blend.c
drm_bridge_connector.c
drm_bridge.c drm/bridge: Document the expected behaviour of DSI host controllers 2022-12-08 09:56:57 +01:00
drm_buddy.c
drm_bufs.c
drm_cache.c
drm_client_modeset.c drm/client: Remove match on mode name 2022-11-24 12:42:40 +01:00
drm_client.c drm/client: Prevent NULL dereference in drm_client_buffer_delete() 2022-11-02 13:53:57 +03:00
drm_color_mgmt.c drm: fix whitespace in drm_plane_create_color_properties() 2022-08-04 15:24:46 +02:00
drm_connector.c drm/connector: Add a function to lookup a TV mode by its name 2022-11-24 12:42:39 +01:00
drm_context.c
drm_crtc_helper_internal.h
drm_crtc_helper.c drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
drm_crtc_internal.h drm/edid: move edid load declarations to internal header 2022-10-26 09:53:56 +03:00
drm_crtc.c drm/crtc: Introduce drmm_crtc_init_with_planes 2022-07-13 10:46:05 +02:00
drm_damage_helper.c drm: Use original src rect while initializing damage iterator 2022-09-13 14:38:33 +03:00
drm_debugfs_crc.c
drm_debugfs.c drm/edid: abstract debugfs override EDID show better 2022-10-26 09:53:08 +03:00
drm_displayid.c
drm_dma.c
drm_drv.c drm/drv: Fix potential memory leak in drm_dev_init() 2022-11-10 18:49:01 -05:00
drm_dumb_buffers.c
drm_edid_load.c drm/edid/firmware: stop using a throwaway platform device 2022-11-16 14:54:44 +02:00
drm_edid.c drm-misc-next for 6.2: 2022-11-22 09:21:17 +10:00
drm_encoder_slave.c
drm_encoder.c drm/encoder: Introduce drmm_encoder_init 2022-07-13 10:46:05 +02:00
drm_fb_dma_helper.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
drm_fb_helper.c Revert "drm/fb-helper: Perform damage handling in deferred-I/O helper" 2022-11-20 11:23:26 +01:00
drm_fbdev_generic.c drm/fb-helper: Don't use the preferred depth for the BPP default 2022-11-24 14:07:52 +01:00
drm_file.c drm-misc-next for v6.1: 2022-09-06 10:56:04 +02:00
drm_flip_work.c
drm_format_helper.c Linux 6.1-rc6 2022-11-24 11:05:43 +10:00
drm_fourcc.c drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats 2022-11-23 20:34:46 +01:00
drm_framebuffer.c drm/framebuffer: convert to drm_dbg_kms() 2022-09-28 10:43:30 +02:00
drm_gem_atomic_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_gem_dma_helper.c drm/gem: Take reservation lock for vmap/vunmap operations 2022-10-18 01:21:38 +03:00
drm_gem_framebuffer_helper.c drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
drm_gem_shmem_helper.c drm/gem-shmem: When drm_gem_object_init failed, should release object 2022-11-21 16:55:52 +01:00
drm_gem_ttm_helper.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
drm_gem_vram_helper.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
drm_gem.c drm/gem-shmem: When drm_gem_object_init failed, should release object 2022-11-21 16:55:52 +01:00
drm_hashtab.c
drm_internal.h drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker() 2022-11-10 18:49:02 -05:00
drm_ioc32.c
drm_ioctl.c drm: Prevent drm_copy_field() to attempt copying a NULL pointer 2022-07-15 10:25:36 +02:00
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy_misc.c
drm_legacy.h
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c drm/mipi-dbi: Support separate I/O regulator 2022-12-14 14:57:09 +01:00
drm_mipi_dsi.c gpu/drm: fix repeated words in comments 2022-10-24 09:26:56 +02:00
drm_mm.c
drm_mode_config.c drm: Fix potential null-ptr-deref due to drmm_mode_config_init() 2022-11-21 17:01:16 +01:00
drm_mode_object.c
drm_modes.c drm/modes: Use strscpy() to copy command-line mode name 2022-12-01 11:12:44 +01:00
drm_modeset_helper.c drm/plane-helper: Provide DRM_PLANE_NON_ATOMIC_FUNCS initializer macro 2022-09-20 09:42:31 +02:00
drm_modeset_lock.c
drm_of.c
drm_panel_orientation_quirks.c drm: panel-orientation-quirks: Add quirk for DynaBook K50 2022-12-07 17:39:23 +01:00
drm_panel.c
drm_pci.c
drm_plane_helper.c drm/crtc-helper: Add a drm_crtc_helper_atomic_check() helper 2022-10-13 09:17:05 +02:00
drm_plane.c drm/plane: Allocate planes with drm_universal_plane_alloc() 2022-09-20 09:41:06 +02:00
drm_prime.c drm: Assert held reservation lock for dma-buf mmapping 2022-11-11 23:49:47 +03:00
drm_print.c drm_print: add _ddebug descriptor to drm_*dbg prototypes 2022-09-24 15:02:02 +02:00
drm_privacy_screen_x86.c
drm_privacy_screen.c
drm_probe_helper.c drm/probe-helper: Provide a TV get_modes helper 2022-11-24 12:42:40 +01:00
drm_property.c
drm_rect.c gpu/drm: fix repeated words in comments 2022-10-24 09:27:04 +02:00
drm_scatter.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_syncobj.c
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank_work.c
drm_vblank.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c
Kconfig drm/tests: Introduce a config option for the KUnit helpers 2022-12-08 09:41:27 +01:00
Makefile drm/tests: Introduce a config option for the KUnit helpers 2022-12-08 09:41:27 +01:00