Re: [PATCH] drm/bridge: cdns-mhdp8546: Power on/off the PHY in probe/remove
From: Benjamin Robin
Date: Tue Nov 24 2026 - 09:18:53 EST
On Tuesday, November 24, 2026 at 2:26 PM, Tomi Valkeinen wrote:
> >> However, I fear there's something wrong with the torrent driver itself.
> >> I didn't study it carefully, but looks like it supports bootloader
> >> enabled PHY, and it then sets 'already_configured' field. When that's
> >> set, all these calls, and dp_configuration() are ignored. And that field
> >> is only cleared on system suspend hook. So it looks quite broken, if the
> >> PHY is enabled when the torrent driver probes, the DP driver can't
> >> configure it at all. Blanking the display or even unloading/loading the
> >> DP driver does not affect it.
> >
> > Hello Abhash,
>
> It wasn't Abhash.
Oups, sorry. Hello Tomi.
> > I am currently rewriting the torrent driver in order to fix various issues.
> > But I am not sure to fully understand what you mean by
> >
> >> if the PHY is enabled when the torrent driver probes
> >
> > This is not possible. The DP PHY is only available at the end of the probe
> > of the torrent PHY. So maybe I am missing something, could you clarify by
> > what you mean by that. But yes this flag 'already_configured' is quite
> > dangerous since it assume that all the registers are properly configured
> > by the bootloader.
>
> I meant that if the DP PHY hardware is enabled (so was enabled by the
> bootloader) when the torrent driver probes, 'already_configured' will be
> set by the driver, and then when the MHDP driver later probes, MHDP
> driver won't be able to configure the PHY at all.
>
> But all I did was a quick read, feel free to correct me =).
No, you're right. I'm not sure why, but I was convinced otherwise.
I’ll add this to the list of points to be corrected.
--
Benjamin Robin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com