[PATCH v5 0/3] Add support for Sercomm partitions

Mikhail Zhilkin posted 3 patches 3 years, 11 months ago
There is a newer version of this series
.../mtd/partitions/fixed-partitions.yaml      |  55 +++-
.../devicetree/bindings/vendor-prefixes.yaml  |   2 +
drivers/mtd/parsers/Kconfig                   |   9 +
drivers/mtd/parsers/Makefile                  |   1 +
drivers/mtd/parsers/scpart.c                  | 240 ++++++++++++++++++
5 files changed, 305 insertions(+), 2 deletions(-)
create mode 100644 drivers/mtd/parsers/scpart.c
[PATCH v5 0/3] Add support for Sercomm partitions
Posted by Mikhail Zhilkin 3 years, 11 months ago
This patch series add support for Sercomm mtd partition table parser. It's
used in some Beeline, Netgear and Sercomm routers. The Sercomm partition
map table contains real partition offsets, which may differ from device to
device depending on the number and location of bad blocks on NAND.

Changes since:
v4:
 - Add Acked-by to the first patch

v3:
 - Fix commit message of the first patch
 - Add Reviewed-by to the second patch

v2:
 - Fix mistakes in dt-binding
 - Add patch for new vendor prefix
 - Add vendor prefix to scpart-id property

v1:
 - Add dt-binding in a separate patch
 - Remove redundant braces and logical NOT operator
 - Define pr_fmt
 - Replace kcalloc by kzalloc
 - Use of_get_child_count() and alloc big enough array before the
   for_each_child_of_node()

Mikhail Zhilkin (3):
  dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
  dt-bindings: mtd: partitions: Extend fixed-partitions binding
  mtd: parsers: add support for Sercomm partitions

 .../mtd/partitions/fixed-partitions.yaml      |  55 +++-
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 drivers/mtd/parsers/Kconfig                   |   9 +
 drivers/mtd/parsers/Makefile                  |   1 +
 drivers/mtd/parsers/scpart.c                  | 240 ++++++++++++++++++
 5 files changed, 305 insertions(+), 2 deletions(-)
 create mode 100644 drivers/mtd/parsers/scpart.c

-- 
2.25.1
Re: [PATCH v5 0/3] Add support for Sercomm partitions
Posted by Miquel Raynal 3 years, 11 months ago
Hi Mikhail,

csharper2005@gmail.com wrote on Mon, 16 May 2022 15:12:28 +0000:

> This patch series add support for Sercomm mtd partition table parser. It's
> used in some Beeline, Netgear and Sercomm routers. The Sercomm partition
> map table contains real partition offsets, which may differ from device to
> device depending on the number and location of bad blocks on NAND.

Series applied in place of the previous version on mtd/next.

> 
> Changes since:
> v4:
>  - Add Acked-by to the first patch
> 
> v3:
>  - Fix commit message of the first patch
>  - Add Reviewed-by to the second patch
> 
> v2:
>  - Fix mistakes in dt-binding
>  - Add patch for new vendor prefix
>  - Add vendor prefix to scpart-id property
> 
> v1:
>  - Add dt-binding in a separate patch
>  - Remove redundant braces and logical NOT operator
>  - Define pr_fmt
>  - Replace kcalloc by kzalloc
>  - Use of_get_child_count() and alloc big enough array before the
>    for_each_child_of_node()
> 
> Mikhail Zhilkin (3):
>   dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
>   dt-bindings: mtd: partitions: Extend fixed-partitions binding
>   mtd: parsers: add support for Sercomm partitions
> 
>  .../mtd/partitions/fixed-partitions.yaml      |  55 +++-
>  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
>  drivers/mtd/parsers/Kconfig                   |   9 +
>  drivers/mtd/parsers/Makefile                  |   1 +
>  drivers/mtd/parsers/scpart.c                  | 240 ++++++++++++++++++
>  5 files changed, 305 insertions(+), 2 deletions(-)
>  create mode 100644 drivers/mtd/parsers/scpart.c
> 


Thanks,
Miquèl
Re: [PATCH v5 0/3] Add support for Sercomm partitions
Posted by Miquel Raynal 3 years, 11 months ago
Hello,

miquel.raynal@bootlin.com wrote on Mon, 16 May 2022 18:42:17 +0200:

> Hi Mikhail,
> 
> csharper2005@gmail.com wrote on Mon, 16 May 2022 15:12:28 +0000:
> 
> > This patch series add support for Sercomm mtd partition table parser. It's
> > used in some Beeline, Netgear and Sercomm routers. The Sercomm partition
> > map table contains real partition offsets, which may differ from device to
> > device depending on the number and location of bad blocks on NAND.  
> 
> Series applied in place of the previous version on mtd/next.

Actually we have a new robot warning, so I've dropped patch 3/3 and kept
the bindings for this release.

Thanks,
Miquèl
> 
> > 
> > Changes since:
> > v4:
> >  - Add Acked-by to the first patch
> > 
> > v3:
> >  - Fix commit message of the first patch
> >  - Add Reviewed-by to the second patch
> > 
> > v2:
> >  - Fix mistakes in dt-binding
> >  - Add patch for new vendor prefix
> >  - Add vendor prefix to scpart-id property
> > 
> > v1:
> >  - Add dt-binding in a separate patch
> >  - Remove redundant braces and logical NOT operator
> >  - Define pr_fmt
> >  - Replace kcalloc by kzalloc
> >  - Use of_get_child_count() and alloc big enough array before the
> >    for_each_child_of_node()
> > 
> > Mikhail Zhilkin (3):
> >   dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
> >   dt-bindings: mtd: partitions: Extend fixed-partitions binding
> >   mtd: parsers: add support for Sercomm partitions
> > 
> >  .../mtd/partitions/fixed-partitions.yaml      |  55 +++-
> >  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
> >  drivers/mtd/parsers/Kconfig                   |   9 +
> >  drivers/mtd/parsers/Makefile                  |   1 +
> >  drivers/mtd/parsers/scpart.c                  | 240 ++++++++++++++++++
> >  5 files changed, 305 insertions(+), 2 deletions(-)
> >  create mode 100644 drivers/mtd/parsers/scpart.c
> >   
> 
> 
> Thanks,
> Miquèl