Re: [PATCH v6 3/6] drm/bridge: cadence: cdns-mhdp8546-core: Set the mhdp connector earlier in atomic_enable()
From: Dmitry Baryshkov
Date: Tue Sep 09 2025 - 10:14:25 EST
On Tue, Sep 09, 2025 at 02:38:21PM +0530, Harikrishna Shenoy wrote:
> From: Jayesh Choudhary <j-choudhary@xxxxxx>
>
> In case if we get errors in cdns_mhdp_link_up() or cdns_mhdp_reg_read()
> in atomic_enable, we will go to cdns_mhdp_modeset_retry_fn() and will hit
> NULL pointer while trying to access the mutex. We need the connector to
> be set before that. Unlike in legacy !(DBANC) cases, we do not have
> connector initialised in bridge_attach(). So set the mhdp->connector
> in atomic_enable() earlier to avoid possible NULL pointer.
>
> Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model")
> Signed-off-by: Jayesh Choudhary <j-choudhary@xxxxxx>
> ---
> .../drm/bridge/cadence/cdns-mhdp8546-core.c | 20 +++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
It looks like you should reorder your commits: first apply the DBANC
fixes, then drop support for !DBANC.
--
With best wishes
Dmitry