mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-05 17:53:44 +09:00
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 <hdegoede@redhat.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
6651c14065
commit
cae01cb2a9
@ -988,7 +988,7 @@ static void td_submit_job(ohci_t *ohci, struct usb_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Status phase */
|
/* 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_IN | TD_T_DATA1:
|
||||||
TD_CC | TD_DP_OUT | TD_T_DATA1;
|
TD_CC | TD_DP_OUT | TD_T_DATA1;
|
||||||
td_fill(ohci, info, data, 0, dev, cnt++, urb);
|
td_fill(ohci, info, data, 0, dev, cnt++, urb);
|
||||||
|
Loading…
Reference in New Issue
Block a user