Re: [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static

2017-12-22 Thread Andrea Adami
sl_nand_cleanup_ftl(struct sharpsl_ftl *ftl) > { > kfree(ftl->log2phy); > } > Thanks, this should be indeed static like the other functions. Acked-by: Andrea Adami <andrea.ad...@gmail.com>

Re: [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static

2017-12-22 Thread Andrea Adami
kfree(ftl->log2phy); > } > Thanks, this should be indeed static like the other functions. Acked-by: Andrea Adami

Re: [PATCH 3/4] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-11-24 Thread Andrea Adami
On Thu, Nov 23, 2017 at 12:06 AM, Pavel Machek <pa...@ucw.cz> wrote: > On Tue 2017-11-21 22:43:50, Andrea Adami wrote: >> With the introduction of sharpslpart partition parser we can now read the >> offsets from NAND: we specify the list of the parsers as platform data

Re: [PATCH 3/4] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-11-24 Thread Andrea Adami
On Thu, Nov 23, 2017 at 12:06 AM, Pavel Machek wrote: > On Tue 2017-11-21 22:43:50, Andrea Adami wrote: >> With the introduction of sharpslpart partition parser we can now read the >> offsets from NAND: we specify the list of the parsers as platform data, with >> cmdlinepa

[PATCH 2/4] ARM: pxa/tosa: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 1

[PATCH 2/4] ARM: pxa/tosa: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 13de660..b90560b 100644 --- a/arch

[PATCH 4/4] ARM: pxa/poodle: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c

[PATCH 4/4] ARM: pxa/poodle: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..fd01d6b 100644

[PATCH 3/4] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c

[PATCH 1/4] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c

[PATCH 3/4] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 67d66c7..defefa3 100644

[PATCH 1/4] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser

2017-11-21 Thread Andrea Adami
qemu will need to pass the mtdparts in the cmdline. Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..9546452 100644

Re: [PATCH][V2] mtd: sharpslpart: fix overflow on block_adr calculation

2017-11-10 Thread Andrea Adami
_info *mtd, > return -EINVAL; > > block_num = ftl->log2phy[log_num]; > - block_adr = block_num * mtd->erasesize; > + block_adr = (loff_t)block_num * mtd->erasesize; > block_ofs = mtd_mod_by_eb((u32)from, mtd); > > err = mtd_read(mtd, block_adr + block_ofs, len, , buf); > -- > 2.14.1 > Thanks for spotting this, Acked-by: Andrea Adami <andrea.ad...@gmail.com>

Re: [PATCH][V2] mtd: sharpslpart: fix overflow on block_adr calculation

2017-11-10 Thread Andrea Adami
log2phy[log_num]; > - block_adr = block_num * mtd->erasesize; > + block_adr = (loff_t)block_num * mtd->erasesize; > block_ofs = mtd_mod_by_eb((u32)from, mtd); > > err = mtd_read(mtd, block_adr + block_ofs, len, , buf); > -- > 2.14.1 > Thanks for spotting this, Acked-by: Andrea Adami

Re: [PATCH] PM: ARM: locomo: Drop suspend and resume bus type callbacks

2017-10-03 Thread Andrea Adami
On Tue, Oct 3, 2017 at 1:44 PM, Rafael J. Wysocki wrote: > On Tuesday, October 3, 2017 10:09:21 AM CEST Ulf Hansson wrote: >> On 26 September 2017 at 22:45, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > None

Re: [PATCH] PM: ARM: locomo: Drop suspend and resume bus type callbacks

2017-10-03 Thread Andrea Adami
On Tue, Oct 3, 2017 at 1:44 PM, Rafael J. Wysocki wrote: > On Tuesday, October 3, 2017 10:09:21 AM CEST Ulf Hansson wrote: >> On 26 September 2017 at 22:45, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > None of the locomo drivers in the tree implements the suspend and >> >

[PATCH v9] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-31 Thread Andrea Adami
tables are now in the same eraseblock. For the purpose of the MTD parser only the read part of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> Reviewed-by: Boris Brezillon <boris.brezi

[PATCH v9] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-31 Thread Andrea Adami
tables are now in the same eraseblock. For the purpose of the MTD parser only the read part of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami Reviewed-by: Boris Brezillon --- Changelog: v1 firt version, initial import

[PATCH v8] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
tables are now in the same eraseblock. For the purpose of the MTD parser only the read part of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> Reviewed-by: Boris Brezillon <boris.brezi

[PATCH v8] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
tables are now in the same eraseblock. For the purpose of the MTD parser only the read part of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami Reviewed-by: Boris Brezillon --- Changelog: v1 firt version, initial import

Re: [PATCH v7] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
On Tue, Aug 29, 2017 at 12:45 AM, Boris Brezillon <boris.brezil...@free-electrons.com> wrote: > On Tue, 29 Aug 2017 00:20:32 +0200 > Andrea Adami <andrea.ad...@gmail.com> wrote: > >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and s

Re: [PATCH v7] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
On Tue, Aug 29, 2017 at 12:45 AM, Boris Brezillon wrote: > On Tue, 29 Aug 2017 00:20:32 +0200 > Andrea Adami wrote: > >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and share the same layout of the first 7M partition, managed by Sharp FTL.

[PATCH v7] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/parsers/Kconfig | 8 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c | 399 ++ 3 files changed, 408 insertions(+) create mode 100644 drivers/mtd/p

[PATCH v7] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-28 Thread Andrea Adami
-off-by: Andrea Adami --- drivers/mtd/parsers/Kconfig | 8 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c | 399 ++ 3 files changed, 408 insertions(+) create mode 100644 drivers/mtd/parsers/sharpslpart.c diff --git

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-25 Thread Andrea Adami
On Fri, Aug 25, 2017 at 11:48 PM, Boris Brezillon <boris.brezil...@free-electrons.com> wrote: > On Fri, 25 Aug 2017 19:50:25 +0200 > Andrea Adami <andrea.ad...@gmail.com> wrote: > >> On Fri, Aug 25, 2017 at 6:53 AM, Brian Norris >> <computersforpe...@gmail.c

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-25 Thread Andrea Adami
On Fri, Aug 25, 2017 at 11:48 PM, Boris Brezillon wrote: > On Fri, 25 Aug 2017 19:50:25 +0200 > Andrea Adami wrote: > >> On Fri, Aug 25, 2017 at 6:53 AM, Brian Norris >> wrote: >> > On Thu, Aug 24, 2017 at 01:27:10PM +0200, Boris Brezillon wrote: >> &

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-25 Thread Andrea Adami
On Fri, Aug 25, 2017 at 6:53 AM, Brian Norris <computersforpe...@gmail.com> wrote: > On Thu, Aug 24, 2017 at 01:27:10PM +0200, Boris Brezillon wrote: >> On Thu, 24 Aug 2017 12:30:02 +0200 >> Andrea Adami <andrea.ad...@gmail.com> wrote: >> >> > On Thu,

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-25 Thread Andrea Adami
On Fri, Aug 25, 2017 at 6:53 AM, Brian Norris wrote: > On Thu, Aug 24, 2017 at 01:27:10PM +0200, Boris Brezillon wrote: >> On Thu, 24 Aug 2017 12:30:02 +0200 >> Andrea Adami wrote: >> >> > On Thu, Aug 24, 2017 at 12:04 PM, Boris Brezillon >> > wrote: &g

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-24 Thread Andrea Adami
On Thu, Aug 24, 2017 at 12:04 PM, Boris Brezillon <boris.brezil...@free-electrons.com> wrote: > On Thu, 24 Aug 2017 11:19:56 +0200 > Andrea Adami <andrea.ad...@gmail.com> wrote: > >> >> +/** >> >> + * struct sharpsl_ftl - Sharp FTL Logical Table >>

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-24 Thread Andrea Adami
On Thu, Aug 24, 2017 at 12:04 PM, Boris Brezillon wrote: > On Thu, 24 Aug 2017 11:19:56 +0200 > Andrea Adami wrote: > >> >> +/** >> >> + * struct sharpsl_ftl - Sharp FTL Logical Table >> >> + * @logmax: number of logical blocks >> >

Re: [PATCH v5 0/9] mtd: sharpslpart partition parser

2017-08-24 Thread Andrea Adami
On Wed, Aug 23, 2017 at 9:33 PM, Robert Jarzmik <robert.jarz...@free.fr> wrote: > Boris Brezillon <boris.brezil...@free-electrons.com> writes: > >> Le Mon, 14 Aug 2017 22:48:31 +0200, >>> Andrea Adami (9): >>> mtd: sharpslpart: Add sharpslpart part

Re: [PATCH v5 0/9] mtd: sharpslpart partition parser

2017-08-24 Thread Andrea Adami
On Wed, Aug 23, 2017 at 9:33 PM, Robert Jarzmik wrote: > Boris Brezillon writes: > >> Le Mon, 14 Aug 2017 22:48:31 +0200, >>> Andrea Adami (9): >>> mtd: sharpslpart: Add sharpslpart partition parser >>> mtd: nand: sharpsl: Add partition parsers platf

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-24 Thread Andrea Adami
eling: some blocks are remapped and one layer of translation >> (logical to physical) is necessary. >> >> There isn't much documentation about this FTL in the 2.4 sources, just the >> MTD methods for reading and writing using logical addresses and the block >> managem

Re: [PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-24 Thread Andrea Adami
Boris, thanks for the review. I have made the required changes apart th elast one: error values to be returned.. Please see my comments. On Tue, Aug 22, 2017 at 2:54 PM, Boris Brezillon wrote: > Hi Andrea, > > Le Tue, 22 Aug 2017 11:42:52 +0200, > Andrea Adami a écrit : >

[PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-22 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/parsers/Kconfig | 7 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c

[PATCH v6] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-22 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami --- drivers/mtd/parsers/Kconfig | 7 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c | 382 ++ 3 files

[PATCH v5 1/9] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-14 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/parsers/Kconfig | 8 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c

[PATCH v5 1/9] mtd: sharpslpart: Add sharpslpart partition parser

2017-08-14 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami --- drivers/mtd/parsers/Kconfig | 8 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/sharpslpart.c | 376 ++ 3 files

[PATCH v5 4/9] mtd: nand: sharpsl: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
now these parsers. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/sharpsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..9859546 100644 --- a/drivers/mtd/nand/sharpsl.c

[PATCH v5 4/9] mtd: nand: sharpsl: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
now these parsers. Signed-off-by: Andrea Adami --- drivers/mtd/nand/sharpsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..9859546 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c

[PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
now these parsers. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..47f439f 100644 --- a/drivers/mt

[PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers

2017-08-14 Thread Andrea Adami
now these parsers. Signed-off-by: Andrea Adami --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..47f439f 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd

[PATCH v5 6/9] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..9546452 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/ar

[PATCH v5 6/9] ARM: pxa/corgi: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..9546452 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c

[PATCH v5 2/9] mtd: nand: sharpsl: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
, we need to extend sharpsl_nand_platform_data to consider the partition parsers. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 6

[PATCH v5 2/9] mtd: nand: sharpsl: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
, we need to extend sharpsl_nand_platform_data to consider the partition parsers. Signed-off-by: Andrea Adami --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..6381a7d 100644 --- a/include

[PATCH v5 7/9] ARM: pxa/tosa: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 13de660..b90560b 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/ma

[PATCH v5 7/9] ARM: pxa/tosa: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 13de660..b90560b 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c @@ -673,24 +673,6

[PATCH v5 9/9] ARM: pxa/poodle: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..fd01d6b 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/ar

[PATCH v5 9/9] ARM: pxa/poodle: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..fd01d6b 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c

[PATCH v5 8/9] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 67d66c7..defefa3 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/ar

[PATCH v5 8/9] ARM: pxa/spitz: Remove hardcoded partitioning, use sharpslpart parser

2017-08-14 Thread Andrea Adami
-by: Andrea Adami --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 67d66c7..defefa3 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c

[PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
, we need to extend tmio_nand_data to consider the partition parsers. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- include/linux/mfd/tmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index 26e8f8c..357b6cfd

[PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-14 Thread Andrea Adami
, we need to extend tmio_nand_data to consider the partition parsers. Signed-off-by: Andrea Adami --- include/linux/mfd/tmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index 26e8f8c..357b6cfd 100644 --- a/include/linux/mfd/tmio.h

[PATCH v5 0/9] mtd: sharpslpart partition parser

2017-08-14 Thread Andrea Adami
://support.ezaurus.com/developer/source/source_dl.asp Andrea Adami (9): mtd: sharpslpart: Add sharpslpart partition parser mtd: nand: sharpsl: Add partition parsers platform data mfd: tmio: Add partition parsers platform data mtd: nand: sharpsl: Register partitions using the parsers mtd: nand: tmio

[PATCH v5 0/9] mtd: sharpslpart partition parser

2017-08-14 Thread Andrea Adami
://support.ezaurus.com/developer/source/source_dl.asp Andrea Adami (9): mtd: sharpslpart: Add sharpslpart partition parser mtd: nand: sharpsl: Add partition parsers platform data mfd: tmio: Add partition parsers platform data mtd: nand: sharpsl: Register partitions using the parsers mtd: nand: tmio

Re: [PATCH v4 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-08-14 Thread Andrea Adami
On Sun, Aug 13, 2017 at 9:40 AM, Boris Brezillon <boris.brezil...@free-electrons.com> wrote: > Le Wed, 28 Jun 2017 22:30:29 +0200, > Andrea Adami <andrea.ad...@gmail.com> a écrit : > > Please add a commit message explaining why you're doing that. > Sure, I have added a

Re: [PATCH v4 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-08-14 Thread Andrea Adami
On Sun, Aug 13, 2017 at 9:40 AM, Boris Brezillon wrote: > Le Wed, 28 Jun 2017 22:30:29 +0200, > Andrea Adami a écrit : > > Please add a commit message explaining why you're doing that. > Sure, I have added a short text. >> Signed-off-by: Andrea Adami >> --- >>

Re: [PATCH v4 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-08-14 Thread Andrea Adami
ros...). I'll comment briefly but substantially I agree with your observations. > On Wed, Jun 28, 2017 at 10:30:28PM +0200, Andrea Adami wrote: >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and share the same layout of the first 7M partition, managed by Sharp

Re: [PATCH v4 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-08-14 Thread Andrea Adami
tially I agree with your observations. > On Wed, Jun 28, 2017 at 10:30:28PM +0200, Andrea Adami wrote: >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and share the same layout of the first 7M partition, managed by Sharp FTL. >> >> The purpose of

Re: [PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-07-11 Thread Andrea Adami
On Mon, Jul 3, 2017 at 2:03 PM, Andrea Adami <andrea.ad...@gmail.com> wrote: > On Mon, Jul 3, 2017 at 1:26 PM, Lee Jones <lee.jo...@linaro.org> wrote: >> Please use the $SUBJECT line expected by the subsystem. >> >> `git log --oneline -- $SUBSYSTEM` can help with t

Re: [PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-07-11 Thread Andrea Adami
On Mon, Jul 3, 2017 at 2:03 PM, Andrea Adami wrote: > On Mon, Jul 3, 2017 at 1:26 PM, Lee Jones wrote: >> Please use the $SUBJECT line expected by the subsystem. >> >> `git log --oneline -- $SUBSYSTEM` can help with this. >> >> You also need a commit log. &g

Re: [PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-07-03 Thread Andrea Adami
ct and add a little text in these patches touching headers. I am awaiting for a new review of the big piece of the patch, the ftl/parser, then I'll send a fixed v5. >> Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> >> --- >> include/linux/mfd/tmio.h | 1 + >> 1 f

Re: [PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-07-03 Thread Andrea Adami
t in these patches touching headers. I am awaiting for a new review of the big piece of the patch, the ftl/parser, then I'll send a fixed v5. >> Signed-off-by: Andrea Adami >> --- >> include/linux/mfd/tmio.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git

[PATCH v4 4/9] mtd: nand: sharpsl.c: take in account partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/sharpsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..87c6fc2 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mt

[PATCH v4 7/9] ARM: pxa: tosa.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 13de660..3074aae 100644 --- a/arch/arm/mach-pxa/

[PATCH v4 4/9] mtd: nand: sharpsl.c: take in account partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- drivers/mtd/nand/sharpsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..87c6fc2 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c @@ -183,7 +183,7

[PATCH v4 7/9] ARM: pxa: tosa.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/tosa.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 13de660..3074aae 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa

[PATCH v4 6/9] ARM: pxa: corgi.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..2412add 100644 --- a/arch/arm/ma

[PATCH v4 6/9] ARM: pxa: corgi.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..2412add 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach

[PATCH v4 9/9] ARM: pxa: poodle.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..4881a43 100644 --- a/arch/arm/ma

[PATCH v4 9/9] ARM: pxa: poodle.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/poodle.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 62a1191..4881a43 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach

[PATCH v4 8/9] ARM: pxa: spitz.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 67d66c7..21a2e42 100644 --- a/arch/arm/ma

[PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- include/linux/mfd/tmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index a1520d8..23bb069 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h @@ -139,6

[PATCH v4 8/9] ARM: pxa: spitz.c: remove hardcoded partitioning, use sharpslpart parser

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/spitz.c | 34 +- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 67d66c7..21a2e42 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm

[PATCH v4 3/9] mfd: tmio.h: support partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- include/linux/mfd/tmio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index a1520d8..23bb069 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h @@ -139,6 +139,7 @@ struct tmio_nand_data

[PATCH v4 0/9] mtd: sharpslpart partition parser

2017-06-28 Thread Andrea Adami
/commits/sharpslpart_v2 [3] https://github.com/LinuxPDA/linux/commits/sharpslpart_v3 [4] https://github.com/LinuxPDA/linux/commits/sharpslpart_v4 Andrea Adami (9): mtd: sharpslpart: add sharpslpart MTD partition parser mtd: nand: sharpsl.h: support partition parser types mfd: tmio.h: support

[PATCH v4 0/9] mtd: sharpslpart partition parser

2017-06-28 Thread Andrea Adami
/commits/sharpslpart_v2 [3] https://github.com/LinuxPDA/linux/commits/sharpslpart_v3 [4] https://github.com/LinuxPDA/linux/commits/sharpslpart_v4 Andrea Adami (9): mtd: sharpslpart: add sharpslpart MTD partition parser mtd: nand: sharpsl.h: support partition parser types mfd: tmio.h: support

[PATCH v4 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..c0e0be2 100644 --- a/include/linux/mtd/sharpsl.h +++ b/include/linux/mtd/sha

[PATCH v4 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-28 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/Kconfig | 8 + drivers/mtd/Makefile | 1 + drivers/mtd/sharpslpart.c | 391 +++

[PATCH v4 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..c0e0be2 100644 --- a/include/linux/mtd/sharpsl.h +++ b/include/linux/mtd/sharpsl.h @@ -17,4 +17,5 @@ struct

[PATCH v4 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-28 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami --- drivers/mtd/Kconfig | 8 + drivers/mtd/Makefile | 1 + drivers/mtd/sharpslpart.c | 391 ++ 3 files changed, 400

[PATCH v4 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..6a53582 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/d

[PATCH v4 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

2017-06-28 Thread Andrea Adami
Signed-off-by: Andrea Adami --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..6a53582 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c

Re: [PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-20 Thread Andrea Adami
On Fri, Jun 9, 2017 at 3:42 AM, Brian Norris <computersforpe...@gmail.com> wrote: > Oh, one more thing: > > On Thu, Jun 01, 2017 at 12:40:50AM +0200, Andrea Adami wrote: >> diff --git a/drivers/mtd/sharpslpart.c b/drivers/mtd/sharpslpart.c >> new file mode 10064

Re: [PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-20 Thread Andrea Adami
On Fri, Jun 9, 2017 at 3:42 AM, Brian Norris wrote: > Oh, one more thing: > > On Thu, Jun 01, 2017 at 12:40:50AM +0200, Andrea Adami wrote: >> diff --git a/drivers/mtd/sharpslpart.c b/drivers/mtd/sharpslpart.c >> new file mode 100644 >> index 000..40aebe9 >> -

Re: [PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-20 Thread Andrea Adami
rpe...@gmail.com> wrote: > Hi, > > On Thu, Jun 01, 2017 at 12:40:50AM +0200, Andrea Adami wrote: >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and share the same layout of the first 7M partition, managed by Sharp FTL. >> >> The purpose

Re: [PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-06-20 Thread Andrea Adami
Hi, > > On Thu, Jun 01, 2017 at 12:40:50AM +0200, Andrea Adami wrote: >> The Sharp SL Series (Zaurus) PXA handhelds have 16/64/128M of NAND flash >> and share the same layout of the first 7M partition, managed by Sharp FTL. >> >> The purpose of this self-contained patch is to

Re: [PATCH v3 3/9] mfd: tmio.h: support partition parser types

2017-06-03 Thread Andrea Adami
On Thu, Jun 1, 2017 at 4:35 PM, Lee Jones <lee.jo...@linaro.org> wrote: > On Thu, 01 Jun 2017, Andrea Adami wrote: > >> Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> >> --- >> include/linux/mfd/tmio.h | 1 + >> 1 file changed, 1 insertion(+) >

Re: [PATCH v3 3/9] mfd: tmio.h: support partition parser types

2017-06-03 Thread Andrea Adami
On Thu, Jun 1, 2017 at 4:35 PM, Lee Jones wrote: > On Thu, 01 Jun 2017, Andrea Adami wrote: > >> Signed-off-by: Andrea Adami >> --- >> include/linux/mfd/tmio.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/include/linux/mfd/tmio.h b

[PATCH v3 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..c0e0be2 100644 --- a/include/linux/mtd/sharpsl.h +++ b/include/linux/mtd/sha

[PATCH v3 4/9] mtd: nand: sharpsl.c: take in account partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/sharpsl.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..1a76779 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drive

[PATCH v3 2/9] mtd: nand: sharpsl.h: support partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami --- include/linux/mtd/sharpsl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h index 65e91d0..c0e0be2 100644 --- a/include/linux/mtd/sharpsl.h +++ b/include/linux/mtd/sharpsl.h @@ -17,4 +17,5 @@ struct

[PATCH v3 4/9] mtd: nand: sharpsl.c: take in account partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami --- drivers/mtd/nand/sharpsl.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..1a76779 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c

[PATCH v3 6/9] arm: pxa: corgi.c: remove hardcoded partitioning, use sharpslpart parser

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..2412add 100644 --- a/arch/arm/ma

[PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..bea05bb 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/d

[PATCH v3 6/9] arm: pxa: corgi.c: remove hardcoded partitioning, use sharpslpart parser

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami --- arch/arm/mach-pxa/corgi.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 7270f0d..2412add 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach

[PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

2017-05-31 Thread Andrea Adami
Signed-off-by: Andrea Adami --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..bea05bb 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c

[PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-05-31 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami <andrea.ad...@gmail.com> --- drivers/mtd/Kconfig | 8 ++ drivers/mtd/Makefile | 2 + drivers/mtd/sharpsl_ftl.c

[PATCH v3 1/9] mtd: sharpslpart: add sharpslpart MTD partition parser

2017-05-31 Thread Andrea Adami
of the code was taken. The NAND drivers that can use this parser are sharpsl.c and tmio_nand.c. Signed-off-by: Andrea Adami --- drivers/mtd/Kconfig | 8 ++ drivers/mtd/Makefile | 2 + drivers/mtd/sharpsl_ftl.c | 216 ++ drivers/mtd/sharpsl_ftl.h

  1   2   3   >