]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:10:48 +0000 (18:10 +0200)
commit0009bd624a5fa187ceb289c135fe7ecb2bb6378e
tree245bed0ced39152b8e483269f7fade9df8d275f7
parent95f15f5ed6e68b479c73da842012108c567c6999
usb: dwc3: gadget: only resume USB2 PHY in <=HIGHSPEED

commit ab2a92e7a608c09f13baf1730b9ba24c73c35d52 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c