phy: rockchip-inno-usb2: Sync initial otg state
authorPeter Geis <pgwipeout@gmail.com>
Wed, 22 Jun 2022 00:31:40 +0000 (20:31 -0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 5 Jul 2022 07:26:53 +0000 (12:56 +0530)
commit8dc60f8da22fdbaa1fafcfb5ff6d24bc9eff56aa
tree6fbf10bbe5c82d630e6fc2e90dc59fb5c2bc1867
parent334fad1854158f566a277c3996a885cee56a037f
phy: rockchip-inno-usb2: Sync initial otg state

The initial otg state for the phy defaults to device mode. The actual
state isn't detected until an ID IRQ fires. Fix this by syncing the ID
state during initialization.

Fixes: 51a9b2c03dd3 ("phy: rockchip-inno-usb2: Handle ID IRQ")
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220622003140.30365-1-pgwipeout@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c