USB MSC host class driver: Don't bother retrying to initialize the FLASH if the interface is returning fatal transfer errors
This commit is contained in:
parent
10a9fcff30
commit
31e1e7506a
@ -1304,7 +1304,7 @@ static int lpc17_ctrltd(struct lpc17_usbhost_s *priv, uint32_t dirpid,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
uvdbg("Bad TD completion status: %d\n", EDCTRL->tdstatus);
|
uvdbg("Bad TD completion status: %d\n", EDCTRL->tdstatus);
|
||||||
ret = -EIO;
|
ret = ed->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2991,7 +2991,7 @@ static int sam_transfer(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
udbg("ERROR: Bad TD completion status: %d\n", ed->tdstatus);
|
udbg("ERROR: Bad TD completion status: %d\n", ed->tdstatus);
|
||||||
ret = -EIO;
|
ret = ed->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user