Skip to contentSkip to conversation

Fix some typos in Renesas R-Car gen3 SDHI driver

PATCH In review Sergei Shtylyov 4 participants 8 messages Aug 17, 2018 – Aug 22, 2018

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

cover Fix some typos in Renesas R-Car gen3 SDHI driver

Hello!

Here's a set of 2 patches against the 'next' branch of Ulf Hannsson's 'mmc.git' repo. They fix some typos I noticed...

[1/2] mmc: renesas_sdhi_internal_dmac: fix typo in DM_CM_DTRAN_MODE.BUS_WIDTH field name [2/2] mmc: renesas_sdhi_internal_dmac: fix comment typo

MBR. Sergei

#1 lore raw

PATCH 1/2 mmc: renesas_sdhi_internal_dmac: fix typo in DM_CM_DTRAN_MODE.BUS_WIDTH field name

Fix a stray underscore in the DM_CM_DTRAN_MODE.BUS_WIDTH register field name.

---
 drivers/mmc/host/renesas_sdhi_internal_dmac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/renesas_sdhi_internal_dmac.c +2 -2
Index: mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c
===================================================================
@@ -36,7 +36,7 @@
 /* DM_CM_DTRAN_MODE */
 #define DTRAN_MODE_CH_NUM_CH0	0	/* "downstream" = for write commands */
 #define DTRAN_MODE_CH_NUM_CH1	BIT(16)	/* "uptream" = for read commands */
-#define DTRAN_MODE_BUS_WID_TH	(BIT(5) | BIT(4))
+#define DTRAN_MODE_BUS_WIDTH	(BIT(5) | BIT(4))
 #define DTRAN_MODE_ADDR_MODE	BIT(0)	/* 1 = Increment address */
 
 /* DM_CM_DTRAN_CTRL */
@@ -172,7 +172,7 @@ renesas_sdhi_internal_dmac_start_dma(str
 				     struct mmc_data *data)
 {
 	struct scatterlist *sg = host->sg_ptr;
-	u32 dtran_mode = DTRAN_MODE_BUS_WID_TH | DTRAN_MODE_ADDR_MODE;
+	u32 dtran_mode = DTRAN_MODE_BUS_WIDTH | DTRAN_MODE_ADDR_MODE;
 
 	if (!dma_map_sg(&host->pdev->dev, sg, host->sg_len,
 			mmc_get_dma_dir(data)))
#4 lore raw

PATCH 2/2 mmc: renesas_sdhi_internal_dmac: fix comment typo

In reply to Sergei Shtylyov

Fix the typo in the comment to #define DTRAN_MODE_CH_NUM_CH1.

---
 drivers/mmc/host/renesas_sdhi_internal_dmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/renesas_sdhi_internal_dmac.c +1 -1
Index: mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c
===================================================================
@@ -35,7 +35,7 @@
 
 /* DM_CM_DTRAN_MODE */
 #define DTRAN_MODE_CH_NUM_CH0	0	/* "downstream" = for write commands */
-#define DTRAN_MODE_CH_NUM_CH1	BIT(16)	/* "uptream" = for read commands */
+#define DTRAN_MODE_CH_NUM_CH1	BIT(16)	/* "upstream" = for read commands */
 #define DTRAN_MODE_BUS_WIDTH	(BIT(5) | BIT(4))
 #define DTRAN_MODE_ADDR_MODE	BIT(0)	/* 1 = Increment address */
 
#7 lore raw
In reply to Sergei Shtylyov
Quoted 9 lines · Sergei Shtylyov

Hello!

Here's a set of 2 patches against the 'next' branch of Ulf Hannsson's 'mmc.git' repo. They fix some typos I noticed...

[1/2] mmc: renesas_sdhi_internal_dmac: fix typo in DM_CM_DTRAN_MODE.BUS_WIDTH field name [2/2] mmc: renesas_sdhi_internal_dmac: fix comment typo

MBR. Sergei

Thanks, squashed and queued for v4.20!

Kind regards
Uffe