Skip to contentSkip to conversation

dmaengine: fix typos in comments

PATCH In review Hemanth Selam 3 participants 5 messages Sep 7 – Oct 6

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: fix typos in comments

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/dma/bcm-sba-raid.c        | 8 ++++----
 drivers/dma/ppc4xx/xor.h          | 2 +-
 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/dma/bcm-sba-raid.c +4 -4
index 0de03611252e..485fcde390dd 100644
@@ -734,7 +734,7 @@ sba_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t src,
 	struct sba_device *sba = to_sba_device(dchan);
 	struct sba_request *first = NULL, *req;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -877,7 +877,7 @@ sba_prep_dma_xor(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t *src,
 	if (unlikely(src_cnt > sba->max_xor_srcs))
 		return NULL;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1356,7 +1356,7 @@ sba_prep_dma_pq(struct dma_chan *dchan, dma_addr_t *dst, dma_addr_t *src,
 	if (!(flags & DMA_PREP_PQ_DISABLE_Q))
 		dst_q = &dst[1];
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1626,7 +1626,7 @@ static int sba_probe(struct platform_device *pdev)
 	sba->dev = &pdev->dev;
 	platform_set_drvdata(pdev, sba);
 
-	/* Number of mailbox channels should be atleast 1 */
+	/* Number of mailbox channels should be at least 1 */
 	ret = of_count_phandle_with_args(pdev->dev.of_node,
 					 "mboxes", "#mbox-cells");
 	if (ret <= 0)
drivers/dma/ppc4xx/xor.h +1 -1
index da1230df2817..0931e18cd0d3 100644
@@ -12,7 +12,7 @@
 
 #include <linux/types.h>
 
-/* Number of XOR engines available on the contoller */
+/* Number of XOR engines available on the controller */
 #define XOR_ENGINES_NUM		1
 
 /* Number of operands supported in the h/w */
drivers/dma/xilinx/xilinx_dpdma.c +1 -1
index d9a3542c4531..bcc188e70441 100644
@@ -1032,7 +1032,7 @@ static int xilinx_dpdma_chan_wait_no_ostand(struct xilinx_dpdma_chan *chan)
 {
 	int ret;
 
-	/* Wait for a no outstanding transaction interrupt upto 50msec */
+	/* Wait for a no outstanding transaction interrupt up to 50msec */
 	ret = wait_event_interruptible_timeout(chan->wait_to_stop,
 					       !xilinx_dpdma_chan_ostand(chan),
 					       msecs_to_jiffies(50));
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Hemanth Selam

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5

---

Quoted 74 lines
 drivers/dma/bcm-sba-raid.c        | 8 ++++----
 drivers/dma/ppc4xx/xor.h          | 2 +-
 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/dma/bcm-sba-raid.c +4 -4
index 0de03611252e..485fcde390dd 100644
@@ -734,7 +734,7 @@ sba_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t src,
 	struct sba_device *sba = to_sba_device(dchan);
 	struct sba_request *first = NULL, *req;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -877,7 +877,7 @@ sba_prep_dma_xor(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t *src,
 	if (unlikely(src_cnt > sba->max_xor_srcs))
 		return NULL;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1356,7 +1356,7 @@ sba_prep_dma_pq(struct dma_chan *dchan, dma_addr_t *dst, dma_addr_t *src,
 	if (!(flags & DMA_PREP_PQ_DISABLE_Q))
 		dst_q = &dst[1];
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1626,7 +1626,7 @@ static int sba_probe(struct platform_device *pdev)
 	sba->dev = &pdev->dev;
 	platform_set_drvdata(pdev, sba);
 
-	/* Number of mailbox channels should be atleast 1 */
+	/* Number of mailbox channels should be at least 1 */
 	ret = of_count_phandle_with_args(pdev->dev.of_node,
 					 "mboxes", "#mbox-cells");
 	if (ret <= 0)
drivers/dma/ppc4xx/xor.h +1 -1
index da1230df2817..0931e18cd0d3 100644
@@ -12,7 +12,7 @@
 
 #include <linux/types.h>
 
-/* Number of XOR engines available on the contoller */
+/* Number of XOR engines available on the controller */
 #define XOR_ENGINES_NUM		1
 
 /* Number of operands supported in the h/w */
drivers/dma/xilinx/xilinx_dpdma.c +1 -2
index d9a3542c4531..bcc188e70441 100644
@@ -1032,7 +1032,7 @@ static int xilinx_dpdma_chan_wait_no_ostand(struct xilinx_dpdma_chan *chan)
 {
 	int ret;
 
-	/* Wait for a no outstanding transaction interrupt upto 50msec */
+	/* Wait for a no outstanding transaction interrupt up to 50msec */
 	ret = wait_event_interruptible_timeout(chan->wait_to_stop,
 					       !xilinx_dpdma_chan_ostand(chan),
 					       msecs_to_jiffies(50));
--

2.48.1

maintainer
#2 lore raw
In reply to Hemanth Selam
Quoted 17 lines · Hemanth Selam

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/dma/bcm-sba-raid.c        | 8 ++++----
 drivers/dma/ppc4xx/xor.h          | 2 +-
 drivers/dma/xilinx/xilinx_dpdma.c | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/dma/bcm-sba-raid.c +0 -0
index 0de03611252e..485fcde390dd 100644

drivers/dma/bcm-sba-raid.c sba_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t src, · line 737

Quoted 5 lines
drivers/dma/bcm-sba-raid.c +1 -1
@@ -734,7 +734,7 @@ sba_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t src,
 	struct sba_device *sba = to_sba_device(dchan);
 	struct sba_request *first = NULL, *req;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */

This is bogus, pls drop these... If there are real typos pls fix those instead! This is not a language book, it is code, upto should be just fine!

Quoted 58 lines
drivers/dma/bcm-sba-raid.c +3 -3
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -877,7 +877,7 @@ sba_prep_dma_xor(struct dma_chan *dchan, dma_addr_t dst, dma_addr_t *src,
 	if (unlikely(src_cnt > sba->max_xor_srcs))
 		return NULL;
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1356,7 +1356,7 @@ sba_prep_dma_pq(struct dma_chan *dchan, dma_addr_t *dst, dma_addr_t *src,
 	if (!(flags & DMA_PREP_PQ_DISABLE_Q))
 		dst_q = &dst[1];
 
-	/* Create chained requests where each request is upto hw_buf_size */
+	/* Create chained requests where each request is up to hw_buf_size */
 	while (len) {
 		req_len = (len < sba->hw_buf_size) ? len : sba->hw_buf_size;
 
@@ -1626,7 +1626,7 @@ static int sba_probe(struct platform_device *pdev)
 	sba->dev = &pdev->dev;
 	platform_set_drvdata(pdev, sba);
 
-	/* Number of mailbox channels should be atleast 1 */
+	/* Number of mailbox channels should be at least 1 */
 	ret = of_count_phandle_with_args(pdev->dev.of_node,
 					 "mboxes", "#mbox-cells");
 	if (ret <= 0)
drivers/dma/ppc4xx/xor.h +1 -1
index da1230df2817..0931e18cd0d3 100644
@@ -12,7 +12,7 @@
 
 #include <linux/types.h>
 
-/* Number of XOR engines available on the contoller */
+/* Number of XOR engines available on the controller */
 #define XOR_ENGINES_NUM		1
 
 /* Number of operands supported in the h/w */
drivers/dma/xilinx/xilinx_dpdma.c +1 -1
index d9a3542c4531..bcc188e70441 100644
@@ -1032,7 +1032,7 @@ static int xilinx_dpdma_chan_wait_no_ostand(struct xilinx_dpdma_chan *chan)
 {
 	int ret;
 
-	/* Wait for a no outstanding transaction interrupt upto 50msec */
+	/* Wait for a no outstanding transaction interrupt up to 50msec */
 	ret = wait_event_interruptible_timeout(chan->wait_to_stop,
 					       !xilinx_dpdma_chan_ostand(chan),
 					       msecs_to_jiffies(50));
Signature · 1 line
2.48.1
Signature · 1 line
~Vinod
#3 lore raw
Quoted 3 lines · Vinod Koul

This is bogus, pls drop these... If there are real typos pls fix those instead! This is not a language book, it is code, upto should be just fine!

Understood, dropping this one.

For what it is worth, one hunk in it was not an "upto" style change:
drivers/dma/ppc4xx/xor.h has "contoller" where "controller" is meant. If you would still take that on its own I will send it as a separate one-line patch; otherwise I will leave it be.

Sorry for the noise.

Thanks,
Hemanth

maintainer
#4 lore raw
Quoted 11 lines · Hemanth Selam
Quoted 3 lines · Vinod Koul

This is bogus, pls drop these... If there are real typos pls fix those instead! This is not a language book, it is code, upto should be just fine!

Understood, dropping this one.

For what it is worth, one hunk in it was not an "upto" style change:
drivers/dma/ppc4xx/xor.h has "contoller" where "controller" is meant. If you would still take that on its own I will send it as a separate one-line patch; otherwise I will leave it be.

Yes real typos are welcome. Pls split and send

Signature · 1 line
~Vinod