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:
Gregory Nutt 2013-09-09 10:00:16 -06:00
parent 10a9fcff30
commit 31e1e7506a
2 changed files with 2 additions and 2 deletions

View File

@ -1304,7 +1304,7 @@ static int lpc17_ctrltd(struct lpc17_usbhost_s *priv, uint32_t dirpid,
else
{
uvdbg("Bad TD completion status: %d\n", EDCTRL->tdstatus);
ret = -EIO;
ret = ed->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
}
}

View File

@ -2991,7 +2991,7 @@ static int sam_transfer(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
else
{
udbg("ERROR: Bad TD completion status: %d\n", ed->tdstatus);
ret = -EIO;
ret = ed->tdstatus == TD_CC_STALL ? -EPERM : -EIO;
}
}