From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNUMS-0001FY-GM for linux-mtd@lists.infradead.org; Wed, 21 Jun 2017 01:23:15 +0000 Received: by mail-pg0-x232.google.com with SMTP id f185so70211572pgc.0 for ; Tue, 20 Jun 2017 18:22:52 -0700 (PDT) Date: Tue, 20 Jun 2017 18:22:47 -0700 From: Brian Norris To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH V6 2/5] mtd: partitions: rename "master" to the "parent" where appropriate Message-ID: <20170621012247.GC14148@google.com> References: <20170526131415.27186-1-zajec5@gmail.com> <20170526131415.27186-3-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170526131415.27186-3-zajec5@gmail.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, May 26, 2017 at 03:14:12PM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > This prepares mtd subsystem for the new feature: subpartitions. In some > cases flash device partition can be a container with extra subpartitions > (volumes). > > So far there was a flat structure implemented. One master (flash device) > could be partitioned into few partitions. Every partition got its master > and it was enough to get things running. > > To support subpartitions we need to store pointer to the parent for each > partition. This is required to implement more natural tree structure and > handle all recursion and offsets calculation. > > To make code consistent this patch renamed "master" to the "parent" in > places where we can be dealing with subpartitions. > > Signed-off-by: Rafał Miłecki > --- > V5: Introduction of this patch to prepare allocate_partition for further > modification. > V6: Rename "master" in more places including callback functions This patch has some conflicts with l2-mtd.git now. I might end up working them out, but it'd be easier if you'd rebase. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Norris Subject: Re: [PATCH V6 2/5] mtd: partitions: rename "master" to the "parent" where appropriate Date: Tue, 20 Jun 2017 18:22:47 -0700 Message-ID: <20170621012247.GC14148@google.com> References: <20170526131415.27186-1-zajec5@gmail.com> <20170526131415.27186-3-zajec5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <20170526131415.27186-3-zajec5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= List-Id: devicetree@vger.kernel.org On Fri, May 26, 2017 at 03:14:12PM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > This prepares mtd subsystem for the new feature: subpartitions. In some > cases flash device partition can be a container with extra subpartitions > (volumes). > > So far there was a flat structure implemented. One master (flash device) > could be partitioned into few partitions. Every partition got its master > and it was enough to get things running. > > To support subpartitions we need to store pointer to the parent for each > partition. This is required to implement more natural tree structure and > handle all recursion and offsets calculation. > > To make code consistent this patch renamed "master" to the "parent" in > places where we can be dealing with subpartitions. > > Signed-off-by: Rafał Miłecki > --- > V5: Introduction of this patch to prepare allocate_partition for further > modification. > V6: Rename "master" in more places including callback functions This patch has some conflicts with l2-mtd.git now. I might end up working them out, but it'd be easier if you'd rebase. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html