Skip to content
Commit 6a98df08 authored by Samuel Holland's avatar Samuel Holland Committed by Vinod Koul
Browse files

phy: rockchip-inno-usb2: Fix muxed interrupt support



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: ed2b5a8e ("phy: phy-rockchip-inno-usb2: support muxed interrupts")
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Tested-by: default avatarMichael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220414032258.40984-2-samuel@sholland.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 74d0cd47
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment