Skip to content

mtd: rawnand: bcm47xx: Convert to exec_op() (and more)

Boris Brezillon linux-mips linux-mtd 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/28 patches 1 replyIn review
  2. v2 posting 1/219 patches 26 repliesApplied
  3. v117 patches 39 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mtd: rawnand: Add an is_last flag to nand_subopdrivers/mtd/nand/raw/nand_base.c include/linux/mtd/rawnand.h+4 -00 replies
2/8mtd: rawnand: bcm47xx: Drop dependency on BCMAdrivers/mtd/nand/raw/Kconfig+0 -10 replies
3/8mtd: rawnand: bcm47xx: Allow compiling the driver when COMPILE_TEST=ydrivers/mtd/nand/raw/Kconfig+1 -10 replies
4/8mtd: rawnand: bcm47xx: Demistify a few more thingsdrivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c+27 -70 replies
5/8mtd: rawnand: bcm47xx: Implement the exec_op() interfacedrivers/mtd/nand/raw/bcm47xxnflash/bcm47xxnflash.h drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c+141 -00 replies
6/8mtd: rawnand: bcm47xx: Get rid of the legacy implementationdrivers/mtd/nand/raw/bcm47xxnflash/bcm47xxnflash.h drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c+0 -3210 replies
7/8mtd: rawnand: bcm47xx: Simplify the init() functiondrivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c+2 -290 replies
8/8mtd: rawnand: bcm47xx: Merge all source filesdrivers/mtd/nand/raw/Makefile drivers/mtd/nand/raw/bcm47xx-nand-controller.c drivers/mtd/nand/raw/bcm47xxnflash/Makefile +2 more+79 -1070 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchMiquel Raynal
1/8R-b
2/8
3/8
4/8R-b
5/8
6/8R-b
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] mtd: rawnand: bcm47xx: Convert to exec_op() (and more)

Hello,

A bit of context to explain the motivation behind those conversions I've been sending for the last couple of weeks. The raw NAND subsystem carries a lot of history which makes any rework not only painful, but also subject to regressions which we only detect when someone dares to update its kernel on one of those ancient HW. While carrying drivers for old HW is not a problem per se, carrying ancient and unmaintained drivers that are not converted to new APIs is a maintenance burden, hence this massive conversion attempt I'm conducting here.

So here is a series converting the BCM47XX NAND controller driver to exec_op(), plus a bunch of minor improvements done along the way. I hope I'll find someone to test those changes, but if there's no one still having access to this HW or no interest in keeping it supported in recent kernel versions, we should definitely consider removing the driver instead.

No major changes in this v2, apart from fixes for things reported by Miquel. See the changelog on each patch for more details.

Regards,

Boris

Boris Brezillon (8):
mtd: rawnand: Add an is_last flag to nand_subop
mtd: rawnand: bcm47xx: Drop dependency on BCMA
mtd: rawnand: bcm47xx: Allow compiling the driver when COMPILE_TEST=y
mtd: rawnand: bcm47xx: Demistify a few more things
mtd: rawnand: bcm47xx: Implement the exec_op() interface
mtd: rawnand: bcm47xx: Get rid of the legacy implementation
mtd: rawnand: bcm47xx: Simplify the init() function
mtd: rawnand: bcm47xx: Merge all source files

 drivers/mtd/nand/raw/Kconfig                  |   3 +-
 drivers/mtd/nand/raw/Makefile                 |   2 +-
 .../mtd/nand/raw/bcm47xx-nand-controller.c    | 343 +++++++++++++
 drivers/mtd/nand/raw/bcm47xxnflash/Makefile   |   5 -
 .../nand/raw/bcm47xxnflash/bcm47xxnflash.h    |  26 -
 drivers/mtd/nand/raw/bcm47xxnflash/main.c     |  77 ---
 .../mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c  | 450 ------------------
 drivers/mtd/nand/raw/nand_base.c              |   2 +
 include/linux/mtd/rawnand.h                   |   2 +
 9 files changed, 349 insertions(+), 561 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/bcm47xx-nand-controller.c
 delete mode 100644 drivers/mtd/nand/raw/bcm47xxnflash/Makefile
 delete mode 100644 drivers/mtd/nand/raw/bcm47xxnflash/bcm47xxnflash.h
 delete mode 100644 drivers/mtd/nand/raw/bcm47xxnflash/main.c
 delete mode 100644 drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c
Signature · 1 line
2.25.4