usb: cdns3: Add PHY mode switch to usb2 PHY
authorMinda Chen <minda.chen@starfivetech.com>
Fri, 21 Jul 2023 09:59:23 +0000 (17:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 16:22:36 +0000 (18:22 +0200)
commit26910f977c3f966ce0e513ada42c741f243085ce
tree7fec218434e5ff300a9e03a19e07267c8dcde020
parent3bd442e4d2a49cd45cfecefcf95af72a3a44049a
usb: cdns3: Add PHY mode switch to usb2 PHY

cdns3 just set PHY mode switch for USB3.0 PHY.
If USB 2.0 PHY contains PHY mode switch setting,
USB 2.0 PHY mode function can't be called.
So add PHY mode switch function for USB 2.0 PHY.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230721095923.20445-1-minda.chen@starfivetech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/drd.c