From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V9 0/4] mtd: read partitions compatible prop for "ofpart" type Date: Tue, 30 Jan 2018 21:10:55 +0100 Message-ID: <20180130201059.4424-1-zajec5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Brian Norris , David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Rob Herring Cc: Mark Rutland , Frank Rowand , Linus Walleij , linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Geert Uytterhoeven , Jonas Gorski , Florian Fainelli , John Crispin , Peter Rosin , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= List-Id: devicetree@vger.kernel.org From: Rafał Miłecki 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 We believed a previous version 8 was ready to go, but soon after landing in the linux-next we got a regression report from Peter. This version 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. 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. This is of course 4.17 material at best. Brian Norris (1): mtd: partitions: add of_match_table parser matching Rafał Miłecki (3): mtd: partitions: add special treating for the "ofpart" parser type mtd: rename "ofpart" parser to "fixed-partitions" as it fits it better mtd: ofpart: add of_match_table with "fixed-partitions" drivers/mtd/mtdpart.c | 116 +++++++++++++++++++++++++++++++++++++---- drivers/mtd/ofpart.c | 18 +++++-- include/linux/mtd/partitions.h | 1 + 3 files changed, 121 insertions(+), 14 deletions(-) -- 2.11.0 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egcFg-0001Mi-Vg for linux-mtd@lists.infradead.org; Tue, 30 Jan 2018 20:11:34 +0000 Received: by mail-lf0-x244.google.com with SMTP id f136so17237680lff.8 for ; Tue, 30 Jan 2018 12:11:21 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Brian Norris , David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Rob Herring Cc: Mark Rutland , Frank Rowand , Linus Walleij , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Jonas Gorski , Florian Fainelli , John Crispin , Peter Rosin , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V9 0/4] mtd: read partitions compatible prop for "ofpart" type Date: Tue, 30 Jan 2018 21:10:55 +0100 Message-Id: <20180130201059.4424-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Rafał Miłecki 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 We believed a previous version 8 was ready to go, but soon after landing in the linux-next we got a regression report from Peter. This version 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. 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. This is of course 4.17 material at best. Brian Norris (1): mtd: partitions: add of_match_table parser matching Rafał Miłecki (3): mtd: partitions: add special treating for the "ofpart" parser type mtd: rename "ofpart" parser to "fixed-partitions" as it fits it better mtd: ofpart: add of_match_table with "fixed-partitions" drivers/mtd/mtdpart.c | 116 +++++++++++++++++++++++++++++++++++++---- drivers/mtd/ofpart.c | 18 +++++-- include/linux/mtd/partitions.h | 1 + 3 files changed, 121 insertions(+), 14 deletions(-) -- 2.11.0