]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37377d1794055c49c89bc3d7c6cecf2b3f07365f
tree6fbf10bbe5c82d630e6fc2e90dc59fb5c2bc1867
parent872d06257d775716db3c80209d5105d5358a5b74
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: edb5b57f59c5 ("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