]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: rockchip-inno-usb2: Ignore OTG IRQs in host mode
authorSamuel Holland <samuel@sholland.org>
Fri, 8 Jul 2022 06:14:34 +0000 (01:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:48 +0000 (14:41 +0200)
commit074cac513b5808cc135ef4e4d3283e551ce95608
tree2008d56d4c1d4711a518b4694e2b99f5f4d4a207
parent947a97ee442507ada15e3e43cf9ca36066e9ad4e
phy: rockchip-inno-usb2: Ignore OTG IRQs in host mode

[ Upstream commit fd7d47484125c7d04578de9294faa7fec6e5df0a ]

When the OTG port is fixed to host mode, the driver does not request its
IRQs, nor does it enable those IRQs in hardware. Similarly, the driver
should ignore the OTG port IRQs when handling the shared interrupt.

Otherwise, it would update the extcon based on an ID pin which may be in
an undefined state, or try to queue a uninitialized work item.

Fixes: 6a98df08ccd5 ("phy: rockchip-inno-usb2: Fix muxed interrupt support")
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Link: https://lore.kernel.org/r/20220708061434.38115-1-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c