Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 19:24, Boris Brezillon wrote: > On Fri, 31 Jul 2015 18:52:01 +0200 > Michal Suchanek wrote: > > >> > >> >> (*pparts)[i].offset = of_read_number(reg, a_cells); >> >> (*pparts)[i].size = of_read_number(reg + a_cells, s_cells); >> >> >> >> @@ -92,15

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Boris Brezillon
On Fri, 31 Jul 2015 18:52:01 +0200 Michal Suchanek wrote: > > > >> (*pparts)[i].offset = of_read_number(reg, a_cells); > >> (*pparts)[i].size = of_read_number(reg + a_cells, s_cells); > >> > >> @@ -92,15 +116,15 @@ static int parse_ofpart_partitions(struct mtd_info

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 18:06, Boris Brezillon wrote: > Hi Michal, > > On Thu, 30 Jul 2015 12:10:42 +0200 > Michal Suchanek wrote: > >> Parsing direct subnodes of a mtd device as partitions is unreliable >> since the mtd device is also part of its bus subsystem and can contain >> bus data in

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Boris Brezillon
Hi Michal, On Thu, 30 Jul 2015 12:10:42 +0200 Michal Suchanek wrote: > Parsing direct subnodes of a mtd device as partitions is unreliable > since the mtd device is also part of its bus subsystem and can contain > bus data in subnodes. > > Move ofpart data to a subnode of its own so it is

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 18:06, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Michal, On Thu, 30 Jul 2015 12:10:42 +0200 Michal Suchanek hramr...@gmail.com wrote: Parsing direct subnodes of a mtd device as partitions is unreliable since the mtd device is also part of its bus

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Boris Brezillon
Hi Michal, On Thu, 30 Jul 2015 12:10:42 +0200 Michal Suchanek hramr...@gmail.com wrote: Parsing direct subnodes of a mtd device as partitions is unreliable since the mtd device is also part of its bus subsystem and can contain bus data in subnodes. Move ofpart data to a subnode of its own

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Boris Brezillon
On Fri, 31 Jul 2015 18:52:01 +0200 Michal Suchanek hramr...@gmail.com wrote: (*pparts)[i].offset = of_read_number(reg, a_cells); (*pparts)[i].size = of_read_number(reg + a_cells, s_cells); @@ -92,15 +116,15 @@ static int parse_ofpart_partitions(struct

Re: [PATCH v2 5/5] mtd: ofpart: move ofpart partitions to a dedicated dt node

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 19:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: On Fri, 31 Jul 2015 18:52:01 +0200 Michal Suchanek hramr...@gmail.com wrote: (*pparts)[i].offset = of_read_number(reg, a_cells); (*pparts)[i].size = of_read_number(reg +