You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/16 14:04:42 UTC
[incubator-nuttx] branch master updated: sama5: Fix wrong comments.
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 9f4691603f sama5: Fix wrong comments.
9f4691603f is described below
commit 9f4691603f979d25b298ad3e5938b422946804ed
Author: Satoshi Togawa <gi...@t11i.jp>
AuthorDate: Thu Jun 16 21:10:01 2022 +0900
sama5: Fix wrong comments.
---
arch/arm/src/sama5/sam_ehci.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c
index 3460c0e688..637b9b1429 100644
--- a/arch/arm/src/sama5/sam_ehci.c
+++ b/arch/arm/src/sama5/sam_ehci.c
@@ -2743,7 +2743,7 @@ static int sam_qtd_cancel(struct sam_qtd_s *qtd, uint32_t **bp, void *arg)
* Name: sam_qh_cancel
*
* Description:
- * This function is a imxrt_qh_foreach() callback function. It cancels
+ * This function is a sam_qh_foreach() callback function. It cancels
* one QH in the asynchronous queue. It will remove all attached qTD
* structures and remove all of the structures that are no longer active.
* Then QH itself will also be removed.
@@ -4363,20 +4363,18 @@ errout_with_sem:
* Name: sam_cancel
*
* Description:
- * New connections may be detected by an attached hub. This method is the
- * mechanism that is used by the hub class to introduce a new connection
- * and port description to the system.
+ * Cancel a pending transfer on an endpoint. Cancelled synchronous or
+ * asynchronous transfer will complete normally with the error -ESHUTDOWN.
*
* Input Parameters:
* drvr - The USB host driver instance obtained as a parameter from the
* call to the class create() method.
- * hport - The descriptor of the hub port that detected the connection
- * related event
- * connected - True: device connected; false: device disconnected
+ * ep - The IN or OUT endpoint descriptor for the device endpoint on which
+ * an asynchronous transfer should be transferred.
*
* Returned Value:
* On success, zero (OK) is returned. On a failure, a negated errno value
- * is returned indicating the nature of the failure
+ * is returned indicating the nature of the failure.
*
****************************************************************************/