From d7d2a689d4b29796018e72eb050bc3d8c61fbf37 Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Thu, 28 Jul 2016 18:59:02 +0800 Subject: [PATCH] HACK: phy: rockchip-inno-usb2: disable otg phy suspend for rk3399 This patch prevents OTG0 and OTG1 PHY from entering suspend mode. Because if PHY enter suspend, it will cause DWC3 controller work abnormally now. We can revert it if fusb302 driver is merged. Change-Id: I74c3ee5d3e1b925e8dc758bdc6d67372df421b98 Signed-off-by: Wu Liang feng --- drivers/phy/phy-rockchip-inno-usb2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-rockchip-inno-usb2.c b/drivers/phy/phy-rockchip-inno-usb2.c index b8c4c80161c2..839e970f13e0 100644 --- a/drivers/phy/phy-rockchip-inno-usb2.c +++ b/drivers/phy/phy-rockchip-inno-usb2.c @@ -1199,7 +1199,7 @@ static const struct rockchip_usb2phy_cfg rk3399_phy_cfgs[] = { .clkout_ctl = { 0xe450, 4, 4, 1, 0 }, .port_cfgs = { [USB2PHY_PORT_OTG] = { - .phy_sus = { 0xe454, 1, 0, 2, 1 }, + .phy_sus = { 0xe454, 1, 0, 2, 2 }, .bvalid_det_en = { 0xe3c0, 3, 3, 0, 1 }, .bvalid_det_st = { 0xe3e0, 3, 3, 0, 1 }, .bvalid_det_clr = { 0xe3d0, 3, 3, 0, 1 }, @@ -1234,7 +1234,7 @@ static const struct rockchip_usb2phy_cfg rk3399_phy_cfgs[] = { .clkout_ctl = { 0xe460, 4, 4, 1, 0 }, .port_cfgs = { [USB2PHY_PORT_OTG] = { - .phy_sus = { 0xe464, 1, 0, 2, 1 }, + .phy_sus = { 0xe464, 1, 0, 2, 2 }, .bvalid_det_en = { 0xe3c0, 8, 8, 0, 1 }, .bvalid_det_st = { 0xe3e0, 8, 8, 0, 1 }, .bvalid_det_clr = { 0xe3d0, 8, 8, 0, 1 }, -- 2.34.1