phy: phy-rockchip-inno-usb2: add rk3588 phy tuning support
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 22 May 2023 17:03:21 +0000 (19:03 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jul 2023 16:57:41 +0000 (22:27 +0530)
commit5ae6224bb1cd948dad751016d1dfc4196e628eeb
tree1c653812b05928a04d07edf5c846292b9711e5fb
parent76d58ee8b8af5867ad2baa8e5eab781b20ddc488
phy: phy-rockchip-inno-usb2: add rk3588 phy tuning support

On RK3588 some registers need to be tweaked to support waking up from
suspend when a USB device is plugged into a port from a suspended PHY.
Without this change USB devices only work when they are plugged at
boot time.

Apart from that it optimizes settings to avoid devices toggling
between fullspeed and highspeed mode.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230522170324.61349-5-sebastian.reichel@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c