usb: dwc3: ep0: fix GetStatus handling (again)
authorFelipe Balbi <balbi@ti.com>
Tue, 29 Nov 2011 08:35:47 +0000 (10:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:48:46 +0000 (11:48 +0200)
commite2617796053437df586c53e462076f74bcf268b4
tree0cf93cc0b643af4313bc84e64bdab7d37836976a
parente0ce0b0a0ae5a31ee96b38a7c5390f867634b4f6
usb: dwc3: ep0: fix GetStatus handling (again)

previous commit fixed part of it but it was still
calling usb_ep_queue() from IRQ context without
loosing locks. That cannot be done otherwise we will
have a recursive locking.

Also, we need to assign the 'dep' pointer on
dwc->ep0_usb_req otherwise we will have a NULL
pointer dereference on dwc3_map_buffer_to_dma().

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c