From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0l73-0006ws-Hu for linux-mtd@lists.infradead.org; Tue, 27 Mar 2018 09:41:55 +0000 Date: Tue, 27 Mar 2018 11:41:30 +0200 From: Boris Brezillon To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Brian Norris , David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Geert Uytterhoeven , Linus Walleij , John Crispin , linux-mtd@lists.infradead.org, Jonas Gorski , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Frank Rowand , Peter Rosin Subject: Re: [PATCH V10 0/3] mtd: read partitions compatible prop for "ofpart" type Message-ID: <20180327114130.0fa3ee0e@bbrezillon> In-Reply-To: <20180314121044.12033-1-zajec5@gmail.com> References: <20180130201059.4424-1-zajec5@gmail.com> <20180314121044.12033-1-zajec5@gmail.com> 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 Wed, 14 Mar 2018 13:10:41 +0100 Rafa=C5=82 Mi=C5=82ecki wrote: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > This patchset provides a proper support for flash device DT node with > "partitions" subnode using "compatible" property. It's already > documented in the: Documentation/devicetree/bindings/mtd/partition.txt >=20 > We believed that version 7 was ready to go, but soon after landing in > the linux-next we got a regression report from Peter. Later versions > takes a safe path by: > 1) Respecting parsers order as specified in the default/driver-provided > list. > 2) Looking at "compatible" property only when "ofpart" type gets > speciied. >=20 > Version 9 was successfully tested by Peter and version 10 just squashes > two commits into a one. >=20 > I double-checked the code and cannot think of any regression this could > cause. I also hope this design (roughly discussed with Boris) can be > acceptable for the mtd subsystem. >=20 > The most important patch from this patchset (1/3) was reviewed by Rob in > the > [PATCH V6 1/2] mtd: partitions: add of_match_table parser matching > https://patchwork.ozlabs.org/comment/1831551/ >=20 > If possible this is a 4.17 material. Applied, finally. I'm still convinced putting this information in the "partitions" node compatible is a bad idea because it adds extra complexity to something that was already quite complex, but you won! Note that Rob had comments on [1] that you never answered, so I'm not even sure when we'll start seeing boards using this infrastructure. [1]http://patchwork.ozlabs.org/patch/859690/ --=20 Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com