UPSTREAM: usb: dwc3: ep0: fix setup_packet_pending initialization
authorFelipe Balbi <balbi@ti.com>
Mon, 16 Nov 2015 22:20:34 +0000 (16:20 -0600)
committerWu Liang feng <wulf@rock-chips.com>
Sun, 6 Mar 2016 13:25:23 +0000 (21:25 +0800)
commitbfb4bdd41bac520b9dbd6b85220a0a258a645f30
treebe6811026f821fcaa924263da9485e479985bf60
parentd9863c64a65af2a570212da38873953b8e6cca38
UPSTREAM: usb: dwc3: ep0: fix setup_packet_pending initialization

It just ocurred to me that dwc3 already gives a
really hint of when a setup packet is pending and
that's the SETUP_PENDING TRB Status for EP0 IRQs.

Fix setup_packet_pending initialization based on
that. While at that, also make sure the comment in
gadget.c matches what code is doing.

Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry picked from commit b5d335e5ea6a60f5254c1f3d5fddd47f4531bccf)

Change-Id: I9e197bee86b681e3d0da8692df8fac861eb00844
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c