# 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 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2026/09/17547347
- Thread: https://ratatoskr.run/linux-phy/2026/09/17518831/t.md

```text
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

-- 
மணிவண்ணன் சதாசிவம்
```
