linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Changes in Marvell NAND controller DT parsing code
@ 2018-04-25 12:53 Miquel Raynal
  2018-04-25 12:53 ` [PATCH 1/3] mtd: rawnand: marvell: fix the chip-select DT parsing logic Miquel Raynal
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Miquel Raynal @ 2018-04-25 12:53 UTC (permalink / raw)
  To: Boris Brezillon, Richard Weinberger, David Woodhouse,
	Brian Norris, Marek Vasut
  Cc: linux-mtd, Thomas Petazzoni, Nadav Haklai, Ofer Heifetz,
	Miquel Raynal

Hello,

At first I just wanted to send a fix to avoid timeouts at boot time when
using old bindings (harmless):

[    1.367460] marvell-nfc f2720000.nand: Timeout on CMDD (NDSR: 0x00000080)
[    1.474292] marvell-nfc f2720000.nand: Timeout on CMDD (NDSR: 0x00000280)

This is addressed in the first patch and comes from the DT parsing of
the number of Chip Select lines.

While working on it, Boris pointed another issue with the 'num-cs'
property (legacy bindings) in some code that should not exist anyway. I
removed that code in patch 2.

Finally, while writing the second patch, I discovered a better way to handle
the code besides (that handles the CS count for new bindings) by using
of_property_count_elems_of_size(). Patch 3 makes the switch.

Regards,
Miquèl


Miquel Raynal (3):
  mtd: rawnand: marvell: fix the chip-select DT parsing logic
  mtd: rawnand: marvell: fix CS pin count with old bindings
  mtd: rawnand: marvell: use OF helper to read a property element count

 drivers/mtd/nand/raw/marvell_nand.c | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-25 14:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-25 12:53 [PATCH 0/3] Changes in Marvell NAND controller DT parsing code Miquel Raynal
2018-04-25 12:53 ` [PATCH 1/3] mtd: rawnand: marvell: fix the chip-select DT parsing logic Miquel Raynal
2018-04-25 12:53 ` [PATCH 2/3] mtd: rawnand: marvell: fix CS pin count with old bindings Miquel Raynal
2018-04-25 12:53 ` [PATCH 3/3] mtd: rawnand: marvell: use OF helper to read a property element count Miquel Raynal
2018-04-25 13:20 ` [PATCH 0/3] Changes in Marvell NAND controller DT parsing code Boris Brezillon
2018-04-25 14:13   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).