Update some comments
This commit is contained in:
parent
a3b4475474
commit
04297d1b0f
@ -1881,7 +1881,13 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
|||||||
|
|
||||||
if (xfrd > 0)
|
if (xfrd > 0)
|
||||||
{
|
{
|
||||||
/* Yes, return the amount of data received */
|
/* Yes, return the amount of data received.
|
||||||
|
*
|
||||||
|
* REVISIT: This behavior is clearly correct for CDC/ACM
|
||||||
|
* bulk transfers and HID interrupt transfers. But I am
|
||||||
|
* not so certain for MSC bulk transfers which, I think,
|
||||||
|
* could have NAKed packets in the middle of a transfer.
|
||||||
|
*/
|
||||||
|
|
||||||
return xfrd;
|
return xfrd;
|
||||||
}
|
}
|
||||||
|
@ -1886,7 +1886,13 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
|||||||
|
|
||||||
if (xfrd > 0)
|
if (xfrd > 0)
|
||||||
{
|
{
|
||||||
/* Yes, return the amount of data received */
|
/* Yes, return the amount of data received.
|
||||||
|
*
|
||||||
|
* REVISIT: This behavior is clearly correct for CDC/ACM
|
||||||
|
* bulk transfers and HID interrupt transfers. But I am
|
||||||
|
* not so certain for MSC bulk transfers which, I think,
|
||||||
|
* could have NAKed packets in the middle of a transfer.
|
||||||
|
*/
|
||||||
|
|
||||||
return xfrd;
|
return xfrd;
|
||||||
}
|
}
|
||||||
|
@ -1880,7 +1880,13 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx,
|
|||||||
|
|
||||||
if (xfrd > 0)
|
if (xfrd > 0)
|
||||||
{
|
{
|
||||||
/* Yes, return the amount of data received */
|
/* Yes, return the amount of data received.
|
||||||
|
*
|
||||||
|
* REVISIT: This behavior is clearly correct for CDC/ACM
|
||||||
|
* bulk transfers and HID interrupt transfers. But I am
|
||||||
|
* not so certain for MSC bulk transfers which, I think,
|
||||||
|
* could have NAKed packets in the middle of a transfer.
|
||||||
|
*/
|
||||||
|
|
||||||
return xfrd;
|
return xfrd;
|
||||||
}
|
}
|
||||||
|
@ -1885,7 +1885,13 @@ static ssize_t stm32l4_in_transfer(FAR struct stm32l4_usbhost_s *priv,
|
|||||||
|
|
||||||
if (xfrd > 0)
|
if (xfrd > 0)
|
||||||
{
|
{
|
||||||
/* Yes, return the amount of data received */
|
/* Yes, return the amount of data received.
|
||||||
|
*
|
||||||
|
* REVISIT: This behavior is clearly correct for CDC/ACM
|
||||||
|
* bulk transfers and HID interrupt transfers. But I am
|
||||||
|
* not so certain for MSC bulk transfers which, I think,
|
||||||
|
* could have NAKed packets in the middle of a transfer.
|
||||||
|
*/
|
||||||
|
|
||||||
return xfrd;
|
return xfrd;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user