Re: [PATCH RESEND] drm/bridge: tc358768: Enforce input bus flags via atomic_check

From: Swamil Jain

Date: Thu Jul 09 2026 - 06:30:00 EST




On 7/6/26 18:54, Leonardo Costa wrote:
From: Leonardo Costa <leonardo.costa@xxxxxxxxxxx>

The tc358768 declares static bridge timings requiring pixel data to be
sampled on the positive clock edge.

However, the DRM core default propagation simply copies the output-side
bus flags, coming from the next bridge, connector or panel, to the
input side. If the propagated flags are incompatible with the bridge
ones, the data is wrongly sampled, typically resulting in visual
artifacts on the panel.

Implement the atomic_check hook, replacing the mutually exclusive
mode_fixup, and set the bridge state input bus flags to the ones
required by the tc358768. The sync polarity defaulting previously done
in mode_fixup is carried over into atomic_check unchanged.

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Leonardo Costa <leonardo.costa@xxxxxxxxxxx>
---

Reviewed-by: Swamil Jain <s-jain1@xxxxxx>

[...]