usb: dwc2: Add core state checking
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>
Wed, 24 Jan 2018 13:44:25 +0000 (17:44 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:49 +0000 (10:47 +0200)
commit88b02f2cb1e13e1ab161c5cb2d5c69f76fe05be2
tree5dbb1e472ccc46939201b4194e0ced1fa9670e59
parentc655557c12ded72a41a8d04e868a10b74d957f22
usb: dwc2: Add core state checking

Added core state checking in dwc2_hsotg_ep_queue() function
to make sure that application will submit requests only in L0 state.

Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c