]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:37 +0000 (12:32 +0300)
commitab2a92e7a608c09f13baf1730b9ba24c73c35d52
treebc7bf40a9ad86add4232a12ebcd199c710ede64d
parent3f308d17d7abbf35a6d40a7f16dc70cf43f12c98
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.

Fixes: 2b0f11df84bb ("usb: dwc3: gadget: clear SUSPHY bit before ep cmds")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c