Skip to contentSkip to conversation

mtd: meson: fix meson_nfc_dma_buffer_release() arguments

PATCH Applied Sergei Antonov 3 participants 4 messages Oct 28, 2020 – Oct 30, 2020

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

PATCH 1/1 mtd: meson: fix meson_nfc_dma_buffer_release() arguments

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed up.

Fixes 8fae856c53500 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
---
 drivers/mtd/nand/raw/meson_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/meson_nand.c +1 -1
index 48e6dac96be6..a76afea6ea77 100644
@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf,
 }
 
 static void meson_nfc_dma_buffer_release(struct nand_chip *nand,
-					 int infolen, int datalen,
+					 int datalen, int infolen,
 					 enum dma_data_direction dir)
 {
 	struct meson_nfc *nfc = nand_get_controller_data(nand);
Signature · 6 lines
2.17.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
maintainer
#1 lore raw

Hi Sergei,

Sergei Antonov <[email protected]> wrote on Wed, 28 Oct 2020 12:49:40 +0300:

Quoted 5 lines

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed up.

Fixes 8fae856c53500 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")

This patch looks good to me. Next time you send a new iteration of a patch, please use [PATCH v2] in the subject prefix and also add a changelog below the three dashes.

(your other patch to fix the style is still welcome)

Quoted 9 lines
---
 drivers/mtd/nand/raw/meson_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/meson_nand.c +0 -0
index 48e6dac96be6..a76afea6ea77 100644

drivers/mtd/nand/raw/meson_nand.c static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, · line 516

Quoted 8 lines
drivers/mtd/nand/raw/meson_nand.c +1 -1
@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf,
 }
 
 static void meson_nfc_dma_buffer_release(struct nand_chip *nand,
-					 int infolen, int datalen,
+					 int datalen, int infolen,
 					 enum dma_data_direction dir)
 {
 	struct meson_nfc *nfc = nand_get_controller_data(nand);

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Sergei Antonov

Hi Sergei, miquel

Quoted 14 lines · Sergei Antonov

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed up.

Fixes 8fae856c53500 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
---
  drivers/mtd/nand/raw/meson_nand.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/meson_nand.c +0 -0
index 48e6dac96be6..a76afea6ea77 100644

drivers/mtd/nand/raw/meson_nand.c static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf, · line 516

Quoted 8 lines
drivers/mtd/nand/raw/meson_nand.c +1 -1
@@ -510,7 +510,7 @@ static int meson_nfc_dma_buffer_setup(struct nand_chip *nand, void *databuf,
  }
 
  static void meson_nfc_dma_buffer_release(struct nand_chip *nand,
-					 int infolen, int datalen,
+					 int datalen, int infolen,
  					 enum dma_data_direction dir)
  {
  	struct meson_nfc *nfc = nand_get_controller_data(nand);

It is good to me:

and thanks.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

maintainer Applied
#3 lore raw
In reply to Sergei Antonov
Quoted 5 lines · Sergei Antonov

Arguments 'infolen' and 'datalen' to meson_nfc_dma_buffer_release() were mixed up.

Fixes 8fae856c53500 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/