[PATCH v2 1/6] drm: bridge: Propagate the bus flags from bridge->timings
Nikhil Devshatwar
nikhil.nd at ti.com
Mon Nov 9 17:05:56 UTC 2020
bus_flags can be specified by a bridge in the timings.
If the bridge provides it, Override the bus_flags when propagating
from next bridge.
Signed-off-by: Nikhil Devshatwar <nikhil.nd at ti.com>
---
drivers/gpu/drm/drm_bridge.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index 64f0effb52ac..2bbd6ffe82ce 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -975,6 +975,14 @@ drm_atomic_bridge_propagate_bus_flags(struct drm_bridge *bridge,
* duplicate the "dummy propagation" logic.
*/
bridge_state->input_bus_cfg.flags = output_flags;
+
+ /*
+ * If the bus flags are provided in timing, use those even if the next
+ * bridge specifies something
+ */
+ if (bridge->timings && bridge->timings->input_bus_flags)
+ bridge_state->input_bus_cfg.flags =
+ bridge->timings->input_bus_flags;
}
/**
--
2.17.1
More information about the dri-devel
mailing list