2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/bridge/adv7511
Maxime Ripard 98007a0d56
drm/bridge: Add encoder parameter to drm_bridge_funcs.attach
The drm_bridge structure contains an encoder pointer that is widely used
by bridge drivers. This pattern is largely documented as deprecated in
other KMS entities for atomic drivers.

However, one of the main use of that pointer is done in attach to just
call drm_bridge_attach on the next bridge to add it to the bridge list.
While this dereferences the bridge->encoder pointer, it's effectively
the same encoder the bridge was being attached to.

We can make it more explicit by adding the encoder the bridge is
attached to to the list of attach parameters. This also removes the need
to dereference bridge->encoder in most drivers.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313-bridge-connector-v6-1-511c54a604fb@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
2025-03-20 14:45:38 +01:00
..
adv7511_audio.c Merge drm/drm-next into drm-misc-next 2025-02-06 13:47:32 +01:00
adv7511_cec.c drm/bridge: adv7511: Fix Intermittent EDID failures 2024-07-08 16:03:11 +03:00
adv7511_drv.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
adv7511.h drm/bridge: adv7511: Fix Intermittent EDID failures 2024-07-08 16:03:11 +03:00
adv7533.c drm: adv7511: Drop dsi single lane support 2024-12-20 03:53:25 +02:00
Kconfig drm: Fix misspellings of "Analog Devices" 2020-04-21 08:15:03 +02:00
Makefile drm: bridge: adv7511: Remove DRM_I2C_ADV7533 Kconfig 2020-02-10 10:23:44 +01:00