[PATCH v3 1/6] drm: bridge: Propagate the bus flags from bridge->timings
Nikhil Devshatwar
nikhil.nd at ti.com
Thu Nov 19 16:01:29 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>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
---
Notes:
changes from v2:
* update comment
changes from v1:
* Check for timings
* Prioritize timings flags over next bridge's flags
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..13b67fc0dad3 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 legacy bus flags are provided in bridge->timings, use those as
+ * input flags instead of propagating the output flags.
+ */
+ 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