mbox series

[v2,0/2] phy: rockchip: usbdp: improve typec orientation handling

Message ID 20250226103810.3746018-1-heiko@sntech.de (mailing list archive)
Headers show
Series phy: rockchip: usbdp: improve typec orientation handling | expand

Message

Heiko Stuebner Feb. 26, 2025, 10:38 a.m. UTC
Reinit the phy if it's already running when a type-orientation
event happens.

changes in v2:
- fix an error I made when splitting into code-move + re-init
  function should still return 0 after first patch
- use rk_udphy_init() instead of disable + setup combo
  We don't need to disable + reenable clocks

Heiko Stuebner (2):
  phy: rockchip: usbdp: move type-orientation-switch further down
  phy: rockchip: usbdp: re-init the phy on orientation-change

 drivers/phy/rockchip/phy-rockchip-usbdp.c | 171 +++++++++++-----------
 1 file changed, 88 insertions(+), 83 deletions(-)