diff options
| author | Hans de Goede <[email protected]> | 2015-05-05 23:56:12 +0200 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2015-05-06 12:48:35 -0600 |
| commit | cae01cb2a9f9a1c4df315e53b063f846d3b364a3 (patch) | |
| tree | 5e3949830449a9aa50180cf57142576e8612865d | |
| parent | 6651c140659a300fa2bebf0de1c58832c123b1f2 (diff) | |
usb: ohci: Fix ctrl in messages with a data-len of 0
Fix taken from the Linux kernel ohci driver.
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Marek Vasut <[email protected]>
| -rw-r--r-- | drivers/usb/host/ohci-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 15aea98591e..02aa7f39278 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -988,7 +988,7 @@ static void td_submit_job(ohci_t *ohci, struct usb_device *dev, } /* Status phase */ - info = usb_pipeout(pipe)? + info = (usb_pipeout(pipe) || data_len == 0) ? TD_CC | TD_DP_IN | TD_T_DATA1: TD_CC | TD_DP_OUT | TD_T_DATA1; td_fill(ohci, info, data, 0, dev, cnt++, urb); |
