linux-stable/drivers/phy/rockchip
Samuel Holland 5a02704720 phy: rockchip-inno-usb2: Fix muxed interrupt support
[ Upstream commit 6a98df08cc ]

This commit fixes two issues with the muxed interrupt handler. First,
the OTG port has the "bvalid" interrupt enabled, not "linestate". Since
only the linestate interrupt was handled, and not the bvalid interrupt,
plugging in a cable to the OTG port caused an interrupt storm.

Second, the return values from the individual port IRQ handlers need to
be OR-ed together. Otherwise, the lack of an interrupt from the last
port would cause the handler to erroneously return IRQ_NONE.

Fixes: ed2b5a8e6b ("phy: phy-rockchip-inno-usb2: support muxed interrupts")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220414032258.40984-2-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:41:13 +02:00
..
Kconfig phy/rockchip: add Innosilicon-based CSI dphy 2021-06-21 09:26:13 +05:30
Makefile phy/rockchip: add Innosilicon-based CSI dphy 2021-06-21 09:26:13 +05:30
phy-rockchip-dp.c
phy-rockchip-dphy-rx0.c phy: rockchip-dphy-rx0: Include linux/delay.h 2020-09-22 19:44:04 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy/rockchip: add Innosilicon-based CSI dphy 2021-06-21 09:26:13 +05:30
phy-rockchip-inno-dsidphy.c phy: dphy: Correct clk_pre parameter 2022-02-02 10:33:04 +05:30
phy-rockchip-inno-hdmi.c phy: rockchip: remove redundant initialization of pointer cfg 2021-06-21 09:22:37 +05:30
phy-rockchip-inno-usb2.c phy: rockchip-inno-usb2: Fix muxed interrupt support 2022-06-14 18:41:13 +02:00
phy-rockchip-pcie.c
phy-rockchip-typec.c phy: rockchip-typec: add missing of_node_put 2021-03-15 15:35:32 +05:30
phy-rockchip-usb.c