UPSTREAM: usb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 17 May 2016 11:55:58 +0000 (14:55 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitd416462a618bdfd5d50bc564e2bc561a22479a5f
tree6df09842dec9bbf436b03396ce37759132e9750d
parentb99e9a341d7d3d8fed72ea8fe2005d7a15d8ffab
UPSTREAM: usb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED

As a micro-power optimization, let's only resume the
USB2 PHY if we're working on <=HIGHSPEED. If we're
gonna work on SUPERSPEED or SUPERSPEED+, there's no
point in resuming the USB2 PHY.

Change-Id: I2661fcde935c6b20afbd54f7a9f74e1ebde2a0d0
Fixes: 2b0f11df84bb ("usb: dwc3: gadget: clear SUSPHY bit before ep cmds")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit ab2a92e7a608c09f13baf1730b9ba24c73c35d52)
drivers/usb/dwc3/gadget.c