From: Meng Dongyang Date: Tue, 6 Dec 2016 09:06:40 +0000 (+0800) Subject: usb: rockchip-inno-usb2: pull down dp/dm for rk3399 u2phy otg-port X-Git-Tag: firefly_0821_release~1128 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=a17899cda8774249c784fb7de9180ff3f270a946 usb: rockchip-inno-usb2: pull down dp/dm for rk3399 u2phy otg-port The linestate change interrupt may occur during suspend if port is not connected. This patch pull down dp/dm when suspend. Change-Id: I31e992727ea63efbda4ecec7ad3af02626eceb44 Signed-off-by: Meng Dongyang --- diff --git a/drivers/phy/phy-rockchip-inno-usb2.c b/drivers/phy/phy-rockchip-inno-usb2.c index 5f0066206483..2aea822a24db 100644 --- a/drivers/phy/phy-rockchip-inno-usb2.c +++ b/drivers/phy/phy-rockchip-inno-usb2.c @@ -1343,7 +1343,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, 15, 0, 0x1452, 0x15d1 }, .bvalid_det_en = { 0xe3c0, 3, 3, 0, 1 }, .bvalid_det_st = { 0xe3e0, 3, 3, 0, 1 }, .bvalid_det_clr = { 0xe3d0, 3, 3, 0, 1 }, @@ -1385,7 +1385,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, 15, 0, 0x1452, 0x15d1 }, .bvalid_det_en = { 0xe3c0, 8, 8, 0, 1 }, .bvalid_det_st = { 0xe3e0, 8, 8, 0, 1 }, .bvalid_det_clr = { 0xe3d0, 8, 8, 0, 1 },