Skip to content

mtd: Remove static limit on device numbers

Ben Hutchings linux-mtd 1 version Applied

Status from this message: Pushed to my l2-mtd-2.6/master, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest9 patches 4 repliesApplied

Changes in v3 from the cover letter

- Export idr_get_next() to support building mtdcore as a module
- Correct the limit on block device numbers in mtd_blkdevs
- Register the full range of minor numbers in mtdchar

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/9mtd: Introduce and use iteration macro for reading the MTD device tabledrivers/mtd/mtd_blkdevs.c drivers/mtd/mtdcore.c drivers/mtd/mtdcore.h+45 -340 replies
2/9mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()drivers/mtd/mtdsuper.c+6 -120 replies
3/9nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of MAX_MTD_DEVICESdrivers/mtd/nand/nandsim.c+5 -20 replies
4/9mtd: Remove unnecessary comparisons with MAX_MTD_DEVICESdrivers/mtd/devices/pmc551.c drivers/mtd/mtdchar.c drivers/mtd/mtdoops.c+2 -101 reply
5/9mtdblock: Dynamically allocate cache info structuresdrivers/mtd/mtdblock.c+31 -430 replies
6/9idr: Export idr_get_next()lib/idr.c+1 -11 reply
7/9mtd: Replace static array of devices with an idr structuredrivers/mtd/mtdcore.c drivers/mtd/mtdcore.h include/linux/mtd/mtd.h+81 -830 replies
8/9mtd: Raise limit on block device minor numbersdrivers/mtd/mtd_blkdevs.c+5 -20 replies
9/9mtdchar: Register the full range of minor numbersdrivers/mtd/mtdchar.c+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/9] mtd: Remove static limit on device numbers

This is the third version of this patch series. Please give me some feedback, David?

Changes since v2:
- Export idr_get_next() to support building mtdcore as a module
- Correct the limit on block device numbers in mtd_blkdevs
- Register the full range of minor numbers in mtdchar

Ben.

Ben Hutchings (9):
mtd: Introduce and use iteration macro for reading the MTD device
table
mtd: Use get_mtd_device_nm() to find named device in get_sb_mtd()
nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of
MAX_MTD_DEVICES
mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES
mtdblock: Dynamically allocate cache info structures
idr: Export idr_get_next()
mtd: Replace static array of devices with an idr structure
mtd: Raise limit on block device minor numbers
mtdchar: Register the full range of minor numbers

 drivers/mtd/devices/pmc551.c |    4 +-
 drivers/mtd/mtd_blkdevs.c    |   17 ++--
 drivers/mtd/mtdblock.c       |   74 +++++++---------
 drivers/mtd/mtdchar.c        |    8 +-
 drivers/mtd/mtdcore.c        |  205 +++++++++++++++++++++--------------------
 drivers/mtd/mtdcore.h        |    7 ++-
 drivers/mtd/mtdoops.c        |    5 -
 drivers/mtd/mtdsuper.c       |   18 ++---
 drivers/mtd/nand/nandsim.c   |    7 +-
 include/linux/mtd/mtd.h      |    1 -
 lib/idr.c                    |    2 +-
 11 files changed, 169 insertions(+), 179 deletions(-)
Signature · 3 lines
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.