drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()
Subsystems (3)
PATCH 1/1 drm/imx: parallel-display: Remove bus flags check in imx_pd_bridge_atomic_check()
If display timings were read from the devicetree using of_get_display_timing() and pixelclk-active is defined there, the flag DISPLAY_FLAGS_SYNC_POSEDGE/NEGEDGE is automatically generated. Through the function drm_bus_flags_from_videomode() e.g. called in the panel-simple driver this flag got into the bus flags, but then in imx_pd_bridge_atomic_check() the bus flag check failed and will not initialize the display. The original commit fe141cedc433 does not explain why this check was introduced. So remove the bus flags check, because it stops the initialization of the display with valid bus flags.
--- drivers/gpu/drm/imx/parallel-display.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/imx/parallel-display.c +0 -8
@@ -217,14 +217,6 @@ static int imx_pd_bridge_atomic_check(struct drm_bridge *bridge,if (!imx_pd_format_supported (bus_fmt))return -EINVAL ; -if (bus_flags & - ~(DRM_BUS_FLAG_DE_LOW |DRM_BUS_FLAG_DE_HIGH | -DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | -DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE )) { -dev_warn (imxpd->dev,"invalid bus_flags (%x)\n" , bus_flags); -return -EINVAL ; - } - bridge_state->output_bus_cfg.flags = bus_flags; bridge_state->input_bus_cfg.flags = bus_flags; imx_crtc_state->bus_flags = bus_flags;
Signature · 7 lines
2.11.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 35 lines · Christoph Niedermaier
If display timings were read from the devicetree using
of_get_display_timing()and pixelclk-active is defined there, the flag DISPLAY_FLAGS_SYNC_POSEDGE/NEGEDGE is automatically generated. Through the functiondrm_bus_flags_from_videomode()e.g. called in the panel-simple driver this flag got into the bus flags, but then inimx_pd_bridge_atomic_check()the bus flag check failed and will not initialize the display. The original commitfe141cedc433does not explain why this check was introduced. So remove the bus flags check, because it stops the initialization of the display with valid bus flags.Fixes fe141cedc433 ("drm/imx: pd: Use bus format/flags provided by the bridge when available")Signed-off-by Christoph Niedermaier <[email protected]>Cc Marek Vasut <[email protected]>Cc Philipp Zabel <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Pengutronix Kernel Team <[email protected]>Cc Fabio Estevam <[email protected]>Cc NXP Linux Team <[email protected]>--- drivers/gpu/drm/imx/parallel-display.c | 8 -------- 1 file changed, 8 deletions(-)drivers/gpu/drm/imx/parallel-display.c +0
-0
drivers/gpu/drm/imx/parallel-display.c static int imx_pd_bridge_atomic_check(struct drm_bridge *bridge, · line 226
Quoted 10 lines
drivers/gpu/drm/imx/parallel-display.c +0
-7@@ -217,14 +217,6 @@ static int imx_pd_bridge_atomic_check(struct drm_bridge *bridge,if (!imx_pd_format_supported (bus_fmt))return -EINVAL ; -if (bus_flags & - ~(DRM_BUS_FLAG_DE_LOW |DRM_BUS_FLAG_DE_HIGH | -DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | -DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE )) { -dev_warn (imxpd->dev,"invalid bus_flags (%x)\n" , bus_flags); -return -EINVAL ; - }
+CC Boris