usb: dwc2: fix unbalanced phy control
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 21 Sep 2015 10:16:11 +0000 (12:16 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:28 +0000 (12:40 -0500)
commit5ee2a003e8622d51e865ffa5547a5708e592a1a5
tree351275fe7dfe600cd6ad9a7e80a66c6a52a8da69
parent4112905f90510fce7c8ccb1cdc05253a25595734
usb: dwc2: fix unbalanced phy control

Even when DWC2 is in (internal) suspended state, it should disable PHY
in suspend and then enable it in resume. This patch fixes unbalanced PHY
control sequence.

Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/platform.c