From b80051be402dd330972e538afe78bd14f3a87fb6 Mon Sep 17 00:00:00 2001 From: Jianwei Zheng Date: Wed, 1 Mar 2023 15:23:57 +0800 Subject: [PATCH] phy: rockchip: inno-usb2: change HS disconnect detect mode for RV1106 This patch set HS disconnect detect mode to single ended detect mode for RV1106, fix RV1106 can not recognize device plug out sometimes. Signed-off-by: Jianwei Zheng Change-Id: I6ee6ded4cc12032cf2825eadd207c1e5003957cd --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 4f545a9db14a..8cf8db10cc41 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -2835,6 +2835,9 @@ static int rv1106_usb2phy_tuning(struct rockchip_usb2phy *rphy) phy_update_bits(rphy->phy_base + 0x1a4, GENMASK(7, 4), (0x01 << 4)); phy_update_bits(rphy->phy_base + 0x1b4, GENMASK(7, 4), (0x01 << 4)); + /* Set HS disconnect detect mode to single ended detect mode */ + phy_set_bits(rphy->phy_base + 0x70, BIT(2)); + return 0; }