1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

usb: Add nonblock argument to submit_int_msg

This will be used to implement non-blocking keyboard polling in case of
errors.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
This commit is contained in:
Michal Suchanek
2019-08-18 10:55:27 +02:00
committed by marex
parent 50dce8fbf0
commit 3437121c03
14 changed files with 60 additions and 40 deletions

View File

@@ -651,7 +651,7 @@ static int usb_stor_CBI_get_status(struct scsi_cmd *srb, struct us_data *us)
us->ip_wanted = 1;
usb_int_msg(us->pusb_dev, us->irqpipe,
(void *)&us->ip_data, us->irqmaxp, us->irqinterval);
(void *)&us->ip_data, us->irqmaxp, us->irqinterval, false);
timeout = 1000;
while (timeout--) {
if (us->ip_wanted == 0)