Skip to contentSkip to conversation

usb: gadget: tegra-xudc: clean up comments

PATCH Superseded Tom Rix 3 participants 4 messages Apr 16, 2022 – Apr 17, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 usb: gadget: tegra-xudc: clean up comments

Spelling replacements
cancelled to canceled
endpiont to endpoint
Compliance to Compliance

---
 drivers/usb/gadget/udc/tegra-xudc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/usb/gadget/udc/tegra-xudc.c +5 -5
index d9c406bdb680..0aaf01e1551f 100644
@@ -1330,7 +1330,7 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
 	bool pcs;
 
 	/*
-	 * Clear out all the TRBs part of or after the cancelled request,
+	 * Clear out all the TRBs part of or after the canceled request,
 	 * and must correct trb cycle bit to the last un-enqueued state.
 	 */
 	while (trb != &ep->transfer_ring[ep->enq_ptr]) {
@@ -1343,11 +1343,11 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
 			trb = ep->transfer_ring;
 	}
 
-	/* Requests will be re-queued at the start of the cancelled request. */
+	/* Requests will be re-queued at the start of the canceled request. */
 	ep->enq_ptr = req->first_trb - ep->transfer_ring;
 	/*
 	 * Retrieve the correct cycle bit state from the first trb of
-	 * the cancelled request.
+	 * the canceled request.
 	 */
 	ep->pcs = pcs_enq;
 	ep->ring_full = false;
@@ -1434,7 +1434,7 @@ __tegra_xudc_ep_dequeue(struct tegra_xudc_ep *ep,
 		return 0;
 	}
 
-	/* Halt DMA for this endpiont. */
+	/* Halt DMA for this endpoint. */
 	if (ep_ctx_read_state(ep->context) == EP_STATE_RUNNING) {
 		ep_pause(xudc, ep->index);
 		ep_wait_for_inactive(xudc, ep->index);
@@ -3423,7 +3423,7 @@ static void tegra_xudc_device_params_init(struct tegra_xudc *xudc)
 	}
 
 	/*
-	 * Compliacne suite appears to be violating polling LFPS tBurst max
+	 * Compliance suite appears to be violating polling LFPS tBurst max
 	 * of 1.4us.  Send 1.45us instead.
 	 */
 	val = xudc_readl(xudc, SSPX_CORE_CNT32);
Signature · 1 line
2.27.0
#1 lore raw
Quoted 2 lines · Tom Rix

Spelling replacements
cancelled to canceled

cancelled is a generally accepted variant.

https://www.dictionary.com/browse/cancelled

Quoted 1 line

endpiont to endpoint

ok.

Quoted 1 line

Compliance to Compliance

huh? a == a

Quoted 51 lines
---
 drivers/usb/gadget/udc/tegra-xudc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/usb/gadget/udc/tegra-xudc.c +5 -5
index d9c406bdb680..0aaf01e1551f 100644
@@ -1330,7 +1330,7 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
 	bool pcs;
 
 	/*
-	 * Clear out all the TRBs part of or after the cancelled request,
+	 * Clear out all the TRBs part of or after the canceled request,
 	 * and must correct trb cycle bit to the last un-enqueued state.
 	 */
 	while (trb != &ep->transfer_ring[ep->enq_ptr]) {
@@ -1343,11 +1343,11 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
 			trb = ep->transfer_ring;
 	}
 
-	/* Requests will be re-queued at the start of the cancelled request. */
+	/* Requests will be re-queued at the start of the canceled request. */
 	ep->enq_ptr = req->first_trb - ep->transfer_ring;
 	/*
 	 * Retrieve the correct cycle bit state from the first trb of
-	 * the cancelled request.
+	 * the canceled request.
 	 */
 	ep->pcs = pcs_enq;
 	ep->ring_full = false;
@@ -1434,7 +1434,7 @@ __tegra_xudc_ep_dequeue(struct tegra_xudc_ep *ep,
 		return 0;
 	}
 
-	/* Halt DMA for this endpiont. */
+	/* Halt DMA for this endpoint. */
 	if (ep_ctx_read_state(ep->context) == EP_STATE_RUNNING) {
 		ep_pause(xudc, ep->index);
 		ep_wait_for_inactive(xudc, ep->index);
@@ -3423,7 +3423,7 @@ static void tegra_xudc_device_params_init(struct tegra_xudc *xudc)
 	}
 
 	/*
-	 * Compliacne suite appears to be violating polling LFPS tBurst max
+	 * Compliance suite appears to be violating polling LFPS tBurst max
 	 * of 1.4us.  Send 1.45us instead.
 	 */
 	val = xudc_readl(xudc, SSPX_CORE_CNT32);
author
#2 lore raw
Quoted 5 lines · Joe Perches
Quoted 2 lines · Tom Rix

Spelling replacements
cancelled to canceled

cancelled is a generally accepted variant.

Quoted 7 lines

https://www.dictionary.com/browse/cancelled

Quoted 1 line

endpiont to endpoint

ok.

Quoted 1 line

Compliance to Compliance

huh? a == a

I missspelled.. from below it is

Compliacne

Quoted 53 lines
Quoted 52 lines
---
  drivers/usb/gadget/udc/tegra-xudc.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
drivers/usb/gadget/udc/tegra-xudc.c +5 -5
index d9c406bdb680..0aaf01e1551f 100644
@@ -1330,7 +1330,7 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
  	bool pcs;
 
  	/*
-	 * Clear out all the TRBs part of or after the cancelled request,
+	 * Clear out all the TRBs part of or after the canceled request,
  	 * and must correct trb cycle bit to the last un-enqueued state.
  	 */
  	while (trb != &ep->transfer_ring[ep->enq_ptr]) {
@@ -1343,11 +1343,11 @@ static void squeeze_transfer_ring(struct tegra_xudc_ep *ep,
  			trb = ep->transfer_ring;
  	}
 
-	/* Requests will be re-queued at the start of the cancelled request. */
+	/* Requests will be re-queued at the start of the canceled request. */
  	ep->enq_ptr = req->first_trb - ep->transfer_ring;
  	/*
  	 * Retrieve the correct cycle bit state from the first trb of
-	 * the cancelled request.
+	 * the canceled request.
  	 */
  	ep->pcs = pcs_enq;
  	ep->ring_full = false;
@@ -1434,7 +1434,7 @@ __tegra_xudc_ep_dequeue(struct tegra_xudc_ep *ep,
  		return 0;
  	}
 
-	/* Halt DMA for this endpiont. */
+	/* Halt DMA for this endpoint. */
  	if (ep_ctx_read_state(ep->context) == EP_STATE_RUNNING) {
  		ep_pause(xudc, ep->index);
  		ep_wait_for_inactive(xudc, ep->index);
@@ -3423,7 +3423,7 @@ static void tegra_xudc_device_params_init(struct tegra_xudc *xudc)
  	}
 
  	/*
-	 * Compliacne suite appears to be violating polling LFPS tBurst max
+	 * Compliance suite appears to be violating polling LFPS tBurst max
  	 * of 1.4us.  Send 1.45us instead.
  	 */
  	val = xudc_readl(xudc, SSPX_CORE_CNT32);
#3 lore raw
In reply to Tom Rix

Hello!

Quoted 2 lines · Tom Rix

Spelling replacements
cancelled to canceled

This one was actually correct! :-)

Quoted 2 lines

endpiont to endpoint
Compliance to Compliance

You meant "Compliacne to Compliance"?

Quoted 10 lines
---
 drivers/usb/gadget/udc/tegra-xudc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/usb/gadget/udc/tegra-xudc.c +0 -0
index d9c406bdb680..0aaf01e1551f 100644

[...]

drivers/usb/gadget/udc/tegra-xudc.c static void tegra_xudc_device_params_init(struct tegra_xudc *xudc) · line 3429

Quoted 10 lines
drivers/usb/gadget/udc/tegra-xudc.c +1 -1
@@ -3423,7 +3423,7 @@ static void tegra_xudc_device_params_init(struct tegra_xudc *xudc)
 	}
 
 	/*
-	 * Compliacne suite appears to be violating polling LFPS tBurst max
+	 * Compliance suite appears to be violating polling LFPS tBurst max
 	 * of 1.4us.  Send 1.45us instead.
 	 */
 	val = xudc_readl(xudc, SSPX_CORE_CNT32);

MBR, Sergey