HACK: phy: rockchip-inno-usb2: disable otg phy suspend for rk3399
authorWu Liang feng <wulf@rock-chips.com>
Thu, 28 Jul 2016 10:59:02 +0000 (18:59 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 29 Jul 2016 02:39:41 +0000 (10:39 +0800)
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 <wulf@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c

index b8c4c80161c2a9fe9154e65831ac8bcf12c10ed6..839e970f13e0ca229a7eb08017c5ee190a50040a 100644 (file)
@@ -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 },