Re: [PATCH v6 3/5] phy: snps-eusb2: Set phy type to EUSB2
From: Thinh Nguyen
Date: Fri Sep 04 2026 - 19:03:48 EST
On Wed, Aug 26, 2026, Krishna Kurapati wrote:
> USB controllers like DWC3 are agnostic of the kind of phy (USB2/eUSB2)
> connected to it. Set the phy type to EUSB2 to let the controller know
> the phy type when queried during its probe.
>
> Signed-off-by: Krishna Kurapati <krishna.kurapati@xxxxxxxxxxxxxxxx>
> ---
> drivers/phy/phy-snps-eusb2.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c
> index f90bf7e95463..fe4ce9d752f7 100644
> --- a/drivers/phy/phy-snps-eusb2.c
> +++ b/drivers/phy/phy-snps-eusb2.c
> @@ -597,6 +597,8 @@ static int snps_eusb2_hsphy_probe(struct platform_device *pdev)
> return PTR_ERR(generic_phy);
> }
>
> + phy_set_type(generic_phy, PHY_TYPE_EUSB2);
> +
> dev_set_drvdata(dev, phy);
> phy_set_drvdata(generic_phy, phy);
>
>
> --
> 2.34.1
>
Reviewed-by: Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx>
BR,
Thinh