diff options
author | Felipe Balbi <balbi@ti.com> | 2011-09-30 10:58:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-04 10:25:50 -0700 |
commit | d95b09b90187f06062c0ec9fa05ff3151bd3e0bb (patch) | |
tree | 9135db0398af97267d2fcadf25ce95d0e6098794 /drivers/usb/dwc3 | |
parent | 2646021e1d5235c6c2143d27405fb057e5560d2b (diff) | |
download | linux-3.10-d95b09b90187f06062c0ec9fa05ff3151bd3e0bb.tar.gz linux-3.10-d95b09b90187f06062c0ec9fa05ff3151bd3e0bb.tar.bz2 linux-3.10-d95b09b90187f06062c0ec9fa05ff3151bd3e0bb.zip |
usb: dwc3: ep0: ignore direction on 2-stage transfer
We don't need to care about direction on a two stage
transfer.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index e058961a547..d45e2154b90 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -525,15 +525,15 @@ static void dwc3_ep0_inspect_setup(struct dwc3 *dwc, len = le16_to_cpu(ctrl->wLength); if (!len) { - dwc->three_stage_setup = 0; + dwc->three_stage_setup = false; + dwc->ep0_expect_in = false; dwc->ep0_next_event = DWC3_EP0_NRDY_STATUS; } else { - dwc->three_stage_setup = 1; + dwc->three_stage_setup = true; + dwc->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); dwc->ep0_next_event = DWC3_EP0_NRDY_DATA; } - dwc->ep0_expect_in = !!(ctrl->bRequestType & USB_DIR_IN); - if ((ctrl->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) ret = dwc3_ep0_std_request(dwc, ctrl); else |