[PATCH v2 0/3] mtd: sharpslpart partition parser
andrea.adami at gmail.com
Tue May 23 02:11:36 PDT 2017
On Sat, Apr 22, 2017 at 1:20 PM, Andrea Adami <andrea.adami at gmail.com> wrote:
> This patchset introduces a simple partition parser for the Sharp SL
> Series PXA handhelds. More details in the commit text.
> I have set in cc the ARM PXA maintainers because this is the MTD part of
> a planned wider patchset cleaning the Zaurus board files.
> v1 initial import of 2.4 sources 
> v2 refactor applying many suggested fixes 
>  https://github.com/LinuxPDA/Sharp_FTL_2.4.20
>  https://github.com/LinuxPDA/linux/commits/sharpslpart_v2
> Andrea Adami (3):
> mtd: sharpsl: add sharpslpart MTD partition parser
> mtd: nand: sharpsl.c: prefer sharpslpart MTD partition parser
> mtd: nand: tmio_nand.c: prefer sharpslpart MTD partition parser
> drivers/mtd/Kconfig | 8 ++
> drivers/mtd/Makefile | 2 +
> drivers/mtd/nand/sharpsl.c | 4 +-
> drivers/mtd/nand/tmio_nand.c | 4 +-
> drivers/mtd/sharpsl_ftl.c | 219 +++++++++++++++++++++++++++++++++++++++++++
> drivers/mtd/sharpsl_ftl.h | 34 +++++++
> drivers/mtd/sharpslpart.c | 132 ++++++++++++++++++++++++++
> 7 files changed, 401 insertions(+), 2 deletions(-)
> create mode 100644 drivers/mtd/sharpsl_ftl.c
> create mode 100644 drivers/mtd/sharpsl_ftl.h
> create mode 100644 drivers/mtd/sharpslpart.c
I'd be thankful for a second review after the big changes from v1
which was just a proof of concept.
As for the memory management, it totally mimics the other parsers.
The patch has been backported to 4.4  and up to 3.10  with
minimal changes to module init/exit:
since linux 4.5 (commit b8f70ba mtd: kill off MTD partition parser
boilerplate) we use module_mtd_part_parser().
With this parser we have finally a single linux-as bootloader kernel
covering the 4 Zaurus pxa 27x devices (repartitioned or not).
Thanks in advance
More information about the linux-mtd