linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] nand: omap2: Two and a half improvements
@ 2014-09-06 19:56 Ezequiel Garcia
  2014-09-06 19:56 ` [PATCH 1/3] nand: omap2: Add support for a flash-based bad block table Ezequiel Garcia
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2014-09-06 19:56 UTC (permalink / raw)
  To: Brian Norris, Roger Quadros
  Cc: Tony Lindgren, linux-mtd, Ezequiel Garcia, Guido Martínez

Hi Brian, Roger:

Pekon's attempt to add flash BBT support for this driver made me realise
the addition made sense and there were good reasons for it. The first patch
adds support for enabling a flash BBT either from legacy board files or
from devicetree.

While testing this, I noticed how the driver relied on a whole bunch of
horrible #ifdefs, which prevented me from loading the driver as a module.
The second patch attempts to fix that.

The third patch is just a dummy cleanup replacing pr_errs with dev_errs.
This driver is abusing from user messages, but I'm not sure fixing them
worths the trouble.

Roger, do you think you can test patches 1 and 2 with different ECCs
and configurations? It's an invasive patch and I don't want to see more
regressions with this driver.

And speaking of modules, the driver loads as "modprobe omap2". And it's not
the only one with a clumsy name: "modprobe elm". I guess we cannot fix it now,
but it would be great to be more careful with driver naming in the future.

Ezequiel Garcia (3):
  nand: omap2: Add support for a flash-based bad block table
  nand: omap2: Refactor the code to remove horrible ifdefs
  nand: omap2: Replace pr_err with dev_err

 arch/arm/mach-omap2/gpmc.c                   |   2 +
 drivers/mtd/nand/omap2.c                     | 166 +++++++++++++++------------
 include/linux/platform_data/elm.h            |  14 +++
 include/linux/platform_data/mtd-nand-omap2.h |   1 +
 4 files changed, 108 insertions(+), 75 deletions(-)

-- 
2.0.1

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

end of thread, other threads:[~2014-09-18  2:55 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-06 19:56 [PATCH 0/3] nand: omap2: Two and a half improvements Ezequiel Garcia
2014-09-06 19:56 ` [PATCH 1/3] nand: omap2: Add support for a flash-based bad block table Ezequiel Garcia
2014-09-06 19:56 ` [PATCH 2/3] nand: omap2: Remove horrible ifdefs to fix module probe Ezequiel Garcia
2014-09-06 21:10   ` pekon
2014-09-06 21:47     ` Ezequiel Garcia
2014-09-06 23:17     ` Ezequiel Garcia
2014-09-07  9:35       ` pekon
2014-09-07 15:16         ` Ezequiel Garcia
2014-09-08  8:45   ` Roger Quadros
2014-09-08 10:53     ` Roger Quadros
2014-09-10 12:48       ` Ezequiel Garcia
2014-09-10 13:05         ` Roger Quadros
2014-09-17  8:33           ` Brian Norris
2014-09-17  9:54             ` Ezequiel Garcia
2014-09-18  2:54               ` Brian Norris
2014-09-10 20:15         ` pekon
2014-09-08 11:28     ` Ezequiel Garcia
2014-09-06 19:56 ` [PATCH 3/3] nand: omap2: Replace pr_err with dev_err Ezequiel Garcia
2014-09-08  8:30 ` [PATCH 0/3] nand: omap2: Two and a half improvements Roger Quadros
2014-09-08 11:31   ` Ezequiel Garcia
2014-09-08 11:47     ` Roger Quadros

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).