Re: [PATCH v7 2/5] include: linux: phy: Add phy attribute "type" and associated helpers

From
Manivannan Sadhasivam <mani@kernel.org>
Date
2026-09-10 15:54:51
Also in
linux-arm-msm, linux-devicetree, linux-phy, lkml
Reply to
Krishna Kurapati, 2026-09-05
On Sat, Sep 05, 2026 at 08:59:06PM +0530, Krishna Kurapati wrote:
In cases like USB High-speed phys which can be either USB2 or EUSB2, it is
required to know the type of phy (rather than the operating mode) because
DP and DM interrupt lines need to be configured differently for each of
them.

Add support to cache the PHY_TYPE and add the following helpers:

- phy_set_type() for the phy drivers (like m31_eusb2 or snps-eusb2) to
declare what type of PHY they are (in this case PHY_TYPE_EUSB2).

- phy_get_type() for the consumers (like USB controllers) to query the
type of phy connected to them.

Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Krishna Kurapati <redacted>
Reviewed-by: Manivannan Sadhasivam <redacted>

- Mani

-- 
மணிவண்ணன் சதாசிவம்
Thread (13 messages) 13 messages, 3 authors, last reply 2026-10-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help