mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Benjamin Robin <benjamin.robin@bootlin.com>
To: Abhash Kumar Jha <a-kumar2@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se,
	jernej.skrabec@gmail.com, s-jain1@ti.com, y-d@ti.com,
	andrzej.hajda@intel.com, neil.armstrong@linaro.org,
	rfoss@kernel.org, mripard@kernel.org, tzimmermann@suse.de,
	airlied@gmail.com, simona@ffwll.ch, devarsht@ti.com,
	u-kumar1@ti.com, sjakhade@cadence.com
Subject: Re: [PATCH] drm/bridge: cdns-mhdp8546: Power on/off the PHY in probe/remove
Date: Tue, 24 Nov 2026 15:18:37 +0100	[thread overview]
Message-ID: <sHjduanPT-iixJKPff7sVg@bootlin.com> (raw)
In-Reply-To: <df69d165-3750-4b64-b458-a2be7a3ca0e1@ideasonboard.com>

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




      reply	other threads:[~2026-11-24 14:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 10:17 Abhash Kumar Jha
2026-11-24 12:53 ` Tomi Valkeinen
2026-11-24 13:00   ` Benjamin Robin
2026-11-24 13:26     ` Tomi Valkeinen
2026-11-24 14:18       ` Benjamin Robin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sHjduanPT-iixJKPff7sVg@bootlin.com \
    --to=benjamin.robin@bootlin.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a-kumar2@ti.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=devarsht@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=s-jain1@ti.com \
    --cc=simona@ffwll.ch \
    --cc=sjakhade@cadence.com \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tzimmermann@suse.de \
    --cc=u-kumar1@ti.com \
    --cc=y-d@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®