Commit 656f7fcb authored by Samuel Holland's avatar Samuel Holland Committed by Vinod Koul

phy: rockchip-inno-usb2: Do not check bvalid twice

The bvalid interrupt handler already checks bvalid status. The muxed IRQ
handler just needs to call the other handler (plus any other handlers
that will be added).
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-3-samuel@sholland.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 6a98df08
...@@ -919,13 +919,11 @@ static irqreturn_t rockchip_usb2phy_bvalid_irq(int irq, void *data) ...@@ -919,13 +919,11 @@ static irqreturn_t rockchip_usb2phy_bvalid_irq(int irq, void *data)
static irqreturn_t rockchip_usb2phy_otg_mux_irq(int irq, void *data) static irqreturn_t rockchip_usb2phy_otg_mux_irq(int irq, void *data)
{ {
struct rockchip_usb2phy_port *rport = data; irqreturn_t ret = IRQ_NONE;
struct rockchip_usb2phy *rphy = dev_get_drvdata(rport->phy->dev.parent);
if (property_enabled(rphy->grf, &rport->port_cfg->bvalid_det_st)) ret |= rockchip_usb2phy_bvalid_irq(irq, data);
return rockchip_usb2phy_bvalid_irq(irq, data);
else return ret;
return IRQ_NONE;
} }
static irqreturn_t rockchip_usb2phy_irq(int irq, void *data) static irqreturn_t rockchip_usb2phy_irq(int irq, void *data)
......
Markdown is supported
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