From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cbusb-0007aM-G0 for linux-mtd@lists.infradead.org; Thu, 09 Feb 2017 19:59:47 +0000 Date: Thu, 9 Feb 2017 20:59:22 +0100 From: Boris Brezillon To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Brian Norris , David Woodhouse , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, kernel@pengutronix.de, Sascha Hauer , Moritz Fischer Subject: Re: [PATCH] mtd: Add partition device node to mtd partition devices Message-ID: <20170209205922.5ba01ee1@bbrezillon> In-Reply-To: <20170209193940.vd63higxuowsxj3d@pengutronix.de> References: <20170209105024.1579-1-u.kleine-koenig@pengutronix.de> <20170209163458.41b3bea7@bbrezillon> <20170209193940.vd63higxuowsxj3d@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 9 Feb 2017 20:39:40 +0100 Uwe Kleine-K=C3=B6nig wrote: > On Thu, Feb 09, 2017 at 04:34:58PM +0100, Boris Brezillon wrote: > > +Moritz > >=20 > > On Thu, 9 Feb 2017 11:50:24 +0100 > > Uwe Kleine-K=C3=B6nig wrote: > > =20 > > > From: Sascha Hauer > > >=20 > > > The user visible change here is that mtd partitions get an of_node li= nk > > > in sysfs. =20 > >=20 > > The same patch has already been posted last year [1]. > > Brian, can we take one of these? > >=20 > > [1]https://patchwork.ozlabs.org/patch/625978/ =20 >=20 > Moritz' patch is more lame, it even updates the documentation (ok, one > point for Moriz :-) Other than that the only difference is "node" vs. > "of_node" (half a point for Sascha) and the position of the assignment > in mtdpart.c has a different position (another half point for Sascha). >=20 > If that would be liked to be seen I can volunteer to create a patch > picking the best from both sources. Sure, you can also add my ack (which I already put on Moritz patch). BTW, is the of_node link in sysfs the only motivation for this change? I know Moritz had bigger plans (nvmem blocks on top of MTD devices), and I also considered advanced stuff (like per-partition ECC config) which required having a valid ->of_node on slave MTD devices. Thanks, Boris