phy: rockchip-inno-usb2: Support multi-bit mask properties
authorSamuel Holland <samuel@sholland.org>
Thu, 14 Apr 2022 03:22:55 +0000 (22:22 -0500)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 09:14:03 +0000 (14:44 +0530)
commitffe597d04db2b75d9c547a2d2e07c268c2a33117
tree4aeb253ccebe547bbc3e98f55e1e9fadc9970106
parent5a709a46e4270a6130877c052260d9a6d14ac685
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 <samuel@sholland.org>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220414032258.40984-5-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c