phy: rockchip-inno-usb2: Handle bvalid falling
authorSamuel Holland <samuel@sholland.org>
Thu, 14 Apr 2022 03:22:56 +0000 (22:22 -0500)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 09:14:04 +0000 (14:44 +0530)
commit21a470606ed5e8b14980f34cd360595d1cba737f
treec1c57c84cb21f3870d81e41eacb9a3d9849d4ec8
parentffe597d04db2b75d9c547a2d2e07c268c2a33117
phy: rockchip-inno-usb2: Handle bvalid falling

Some SoCs have a bvalid falling interrupt, in addition to bvalid rising.
This interrupt can detect OTG cable plugout immediately, so it can avoid
the delay until the next scheduled work.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220414032258.40984-6-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c