diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-03-19 17:56:15 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-03-19 17:56:15 +0000 |
commit | aa37eeaa03f819cb3cf591b63dc2ee463fc78047 (patch) | |
tree | 5d423851b7062520785d7624c9a1d0b3a09ce33b /nuttx/drivers | |
parent | 199e9314622731714c0331264a52e8b1d00a1d4e (diff) | |
download | px4-firmware-aa37eeaa03f819cb3cf591b63dc2ee463fc78047.tar.gz px4-firmware-aa37eeaa03f819cb3cf591b63dc2ee463fc78047.tar.bz2 px4-firmware-aa37eeaa03f819cb3cf591b63dc2ee463fc78047.zip |
Minor updates for PIC32 USB device driver bugs
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4497 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/usbdev/usbmsc_scsi.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/drivers/usbdev/usbmsc_scsi.c b/nuttx/drivers/usbdev/usbmsc_scsi.c index fa443497f..ccc967618 100644 --- a/nuttx/drivers/usbdev/usbmsc_scsi.c +++ b/nuttx/drivers/usbdev/usbmsc_scsi.c @@ -1626,11 +1626,6 @@ static int usbmsc_idlestate(FAR struct usbmsc_dev_s *priv) req->priv = privreq; req->callback = usbmsc_rdcomplete; - if (EP_SUBMIT(priv->epbulkout, req) != OK) - { - usbtrace(TRACE_CLSERROR(USBMSC_TRACEERR_IDLERDSUBMIT), (uint16_t)-ret); - } - /* Change to the CMDPARSE state and return success */ usbtrace(TRACE_CLASSSTATE(USBMSC_CLASSSTATE_IDLECMDPARSE), priv->cdb[0]); @@ -1638,6 +1633,13 @@ static int usbmsc_idlestate(FAR struct usbmsc_dev_s *priv) ret = OK; } + /* In any event, return the request to be refilled */ + + if (EP_SUBMIT(priv->epbulkout, req) != OK) + { + usbtrace(TRACE_CLSERROR(USBMSC_TRACEERR_IDLERDSUBMIT), (uint16_t)-ret); + } + return ret; } |