Skip to content

Commit ffe597d

Browse files
smaeulvinodkoul
authored andcommitted
phy: rockchip-inno-usb2: Support multi-bit mask properties
The "bvalid" and "id" interrupts can trigger on either the rising edge or the falling edge, so each interrupt has two enable bits and two status bits. This change allows using a single property for both bits, checking whether either bit is set. Signed-off-by: Samuel Holland <[email protected]> Tested-by: Michael Riesch <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 5a709a4 commit ffe597d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/rockchip/phy-rockchip-inno-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static inline bool property_enabled(struct regmap *base,
253253
return false;
254254

255255
tmp = (orig & mask) >> reg->bitstart;
256-
return tmp == reg->enable;
256+
return tmp != reg->disable;
257257
}
258258

259259
static int rockchip_usb2phy_clk480m_prepare(struct clk_hw *hw)

0 commit comments

Comments
 (0)