Thread (10 messages) 10 messages, 3 authors, 2019-04-05

Re: [PATCH] mtd: rawnand: marvell: select target before setting up data interface

From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2019-03-25 09:09:15
Also in: stable

Hi Daniel,

Daniel Mack [off-list ref] wrote on Fri, 22 Mar 2019 19:48:08
+0100:
Hi Miquel,

On 22/3/2019 9:30 AM, Miquel Raynal wrote:
quoted
+ Richard: this is fixes materials

Daniel Mack [off-list ref] wrote on Thu, 21 Mar 2019 22:20:10
+0100:
  
quoted
Now that the nand drivers are responsible for selecting the target
prior to hardware access, a call to marvell_nfc_select_target() is
necessary from marvell_nfc_setup_data_interface().

This is a regression introduced by commit b25251414f6e ("mtd:
rawnand: marvell: Stop implementing ->select_chip()").

Fixes: b25251414f6e ("mtd: rawnand: marvell: Stop implementing ->select_chip()")
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: <redacted>
Signed-off-by: Daniel Mack <daniel@zonque.org>
---
 drivers/mtd/nand/raw/marvell_nand.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c
index 84283c6bb0ff..93abe5be8995 100644
--- a/drivers/mtd/nand/raw/marvell_nand.c
+++ b/drivers/mtd/nand/raw/marvell_nand.c
@@ -2325,6 +2325,8 @@ static int marvell_nfc_setup_data_interface(struct nand_chip *chip, int chipnr,
 	struct marvell_nfc_timings nfc_tmg;
 	int read_delay;
 
+	marvell_nfc_select_target(chip, chip->cur_cs);
+
 	sdr = nand_get_sdr_timings(conf);
 	if (IS_ERR(sdr))
 		return PTR_ERR(sdr);  
I had a short look yesterday and this is very likely to be the root
cause of the regression, thank you very much!  
Yes it is, it fixes the regression I have reported.

Do you want me to resend with that nit addressed you mentioned? My
version works well, I know that much :)
Yes please, resent with Boris' comment addressed and we'll be fine.


Thanks,
Miquèl

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help