OSDN Git Service

usb: dwc3: gadget: Check ENBLSLPM before sending ep command
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 11 Sep 2018 19:42:05 +0000 (12:42 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:38:19 +0000 (10:38 +0300)
commit87dd96111b0bb8e616fcbd74dbf4bb4182f2c596
treeed4dd2cbdc7f019cbce5b3f26917f915bf32704b
parentcd7cd0e6cedfda8da6668a4af6748f96bbb6fed4
usb: dwc3: gadget: Check ENBLSLPM before sending ep command

When operating in USB 2.0 speeds (HS/FS), if GUSB2PHYCFG.ENBLSLPM or
GUSB2PHYCFG.SUSPHY is set, it must be cleared before issuing an endpoint
command.

Current implementation only save and restore GUSB2PHYCFG.SUSPHY
configuration. We must save and clear both GUSB2PHYCFG.ENBLSLPM and
GUSB2PHYCFG.SUSPHY settings. Restore them after the command is
completed.

DWC_usb3 3.30a and DWC_usb31 1.90a programming guide section 3.2.2

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c