Thread (2 messages) 2 messages, 2 authors, 2026-02-20

Re: [PATCH] usb: ehci-orion: remove optional PHY handling code remnants

From: Gabor Juhos <hidden>
Date: 2026-02-20 19:07:24
Also in: linux-usb, lkml

Hi Miquel,

2026. 02. 20. 14:47 keltezéssel, Miquel Raynal írta:
Hi Gabor,

On 20/02/2026 at 14:27:02 +01, Gabor Juhos [off-list ref] wrote:
quoted
Since the USB core code handles the generic USB PHYs automatically, the
optional PHY handling code has been removed from the 'ehci-orion' driver
entirely by commit e04585184dcf ("usb: ehci-orion: avoid double PHY
initialization"). However, the devm_phy_optional_get() call has been kept
so the driver still gets the PHY even though it is not used for anything
in the driver.

Drop the remaining code, and also remove the 'phy' member of the
'orion_ehci_hcd' structure to simplify the code.

Fixes: e04585184dcf ("usb: ehci-orion: avoid double PHY initialization")
The fixes tag makes no sense here, this is pure cleanup. I do not
remember if this was needed or not, it is probably safe to drop today.
I have checked the code in v5.1, and the phy is not used there either.
Nevertheless, you are right, this is a cleanup rather than a fix. I will send a
v2 without the Fixes tag.

Thanks,
Gabor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help