Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-19 Thread Brian Norris
On Thu, Nov 12, 2015 at 02:22:20PM +0100, Boris Brezillon wrote: > On Wed, 11 Nov 2015 16:15:50 -0800 > Brian Norris wrote: > > IOW, I think we can grab the reference in add_mtd_device() and drop it > > in del_mtd_device(). This would handle both the partition and > > non-partition case the same.

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-19 Thread Brian Norris
On Thu, Nov 12, 2015 at 02:22:20PM +0100, Boris Brezillon wrote: > On Wed, 11 Nov 2015 16:15:50 -0800 > Brian Norris wrote: > > IOW, I think we can grab the reference in add_mtd_device() and drop it > > in del_mtd_device(). This would handle both the partition and > >

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-12 Thread Boris Brezillon
Hi Brian, On Wed, 11 Nov 2015 16:15:50 -0800 Brian Norris wrote: > On Mon, Nov 02, 2015 at 01:38:41AM +0100, Boris Brezillon wrote: > > MTD partitions may have been created from a DT definition, and in this case > > the ->of_node of the struct device embedded in mtd_info should point to > > the

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-12 Thread Boris Brezillon
Hi Brian, On Wed, 11 Nov 2015 16:15:50 -0800 Brian Norris wrote: > On Mon, Nov 02, 2015 at 01:38:41AM +0100, Boris Brezillon wrote: > > MTD partitions may have been created from a DT definition, and in this case > > the ->of_node of the struct device embedded in

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-11 Thread Brian Norris
On Mon, Nov 02, 2015 at 01:38:41AM +0100, Boris Brezillon wrote: > MTD partitions may have been created from a DT definition, and in this case > the ->of_node of the struct device embedded in mtd_info should point to > the DT node that was used to create the partition. > > Signed-off-by: Boris

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-11 Thread Brian Norris
On Mon, Nov 02, 2015 at 01:38:41AM +0100, Boris Brezillon wrote: > MTD partitions may have been created from a DT definition, and in this case > the ->of_node of the struct device embedded in mtd_info should point to > the DT node that was used to create the partition. > > Signed-off-by: Boris

[PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-01 Thread Boris Brezillon
MTD partitions may have been created from a DT definition, and in this case the ->of_node of the struct device embedded in mtd_info should point to the DT node that was used to create the partition. Signed-off-by: Boris Brezillon --- Hi Brian, Yet another patch that IMO should go into your

[PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-01 Thread Boris Brezillon
MTD partitions may have been created from a DT definition, and in this case the ->of_node of the struct device embedded in mtd_info should point to the DT node that was used to create the partition. Signed-off-by: Boris Brezillon --- Hi Brian, Yet another