From patchwork Mon Jul 15 21:46:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 169020 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4926501ilk; Mon, 15 Jul 2019 14:48:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoqDNQW/chYzeYoG0BXfeV62DB1Kl+zjEKj6TnI45vBFQSK6H8/doSCQjasO9oGfRdsat3 X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr31750570pjd.72.1563227298328; Mon, 15 Jul 2019 14:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563227298; cv=none; d=google.com; s=arc-20160816; b=N2hQdnYXxsfCOF5vUtPcEVPJSHDHDPk5DQAD6RccMtZysQ/2rou1EIIWK70AAecuoO ixdx5HFF+qM219BsQgCk7Gz5bFPzMfyrIWLlQ5DGh8Q+V6DTzXaQo1ohWZCJBDIm0mAo 2uFtSExPxkyU2IVuj7Gd5GX1Ntw3DzGyEkBux9fu+2sVn2NPBDPvmTYXYF/p32Vki5hA 24CqtRWwBJYJ2BmcogDRFS6MomP3K5jkPBy6fH4Rq/Iy9wxjaOHoY2GzPJJfxDS2YnyR XXvGz1cIg/8JOHE0vOfZPO16S03JPSOdct8MqAgFkWVZD7bGGJlyRNntoAP51NWO0iK/ C1lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=IfJnBHqEJskE0ZH9u38mznp6bKC5Ms2eHKVwEAMr2oo=; b=wP2zKMN9ajDbeJ02t4y7CqagBrMltKfvHAbTM8bZM33ca86hh02GXRkxOcLglYRlir iR8vb//Rd3WUlU72BjxTjuh+aiLYVTRYfishDaA6A6p/GH+HMrwOLQdoyhz9tA2Y0yOL SJmARFZjW5WT2/PWh2OmxrJ/RqVqASHx+EMKEhhhP0y6sftfD1X5cz8TA7NEbAL1O2rp FXCwznbvWohz9cMg/MserYO5dbMyDMhPb4RY96DB9T7Kt6GwRiCKqdFOoJq5jTb4MtvO Z0XzdtsH8zX7Vzvq67UBRMufl/1oQGOGaXJSTs7uv6pfF+2O7u2juO46bZH4lRxKS7yv eY7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=c9mFqRCu; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B6x9FMyU; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id k15si17825938pga.99.2019.07.15.14.48.18 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 14:48:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=c9mFqRCu; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B6x9FMyU; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IfJnBHqEJskE0ZH9u38mznp6bKC5Ms2eHKVwEAMr2oo=; b=c9mFqRCuUOtjTt DY0Zuto4OdA0nzlJiGH5eFuAaz/4XsCfvq6b3cq3T9KQ/jJMDzLBtlKNkgeBjKjs5JvEEP/1wpZXL s8BAeGv6/6EM4GsHfFOXO+ZBy7Fr4aOvBeN1NjqcD/1Zgtm/7SoISZUSECgGQ2lTDBjIlE1vmPxW0 AD4ks4K8LIOza0I8XQ3MVqgV5lEf+XvokWmKIL4USiHjLD5JraeFwsdxigHXDBubJxRBsfHu/I+Mb XrLGp9w7eeSUuiHzPGhNatbOJeVjTcgbN3zK8wgLF4EUe5j9X4yLYLEWndQmjoj2IamSWWcv65LV1 asrEt4vVuurpCuB/AEyg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hn8pN-00073X-3x; Mon, 15 Jul 2019 21:48:09 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hn8oU-0006G4-5n for linux-mtd@lists.infradead.org; Mon, 15 Jul 2019 21:47:16 +0000 Received: by mail-lj1-x243.google.com with SMTP id z28so17848962ljn.4 for ; Mon, 15 Jul 2019 14:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A1cRcRaapjU5N1Df1kN08IAzOtzOWxj2FyeaHLFPjT4=; b=B6x9FMyUwROcLMo0+S96pLHVv1rZA/CYaYovvJ/hImmccWAdyTbbFbDWwCnXQ2NRln aEtlXxvzUYBblh/fkOwLChy8bXifd8WljOvuO/I5/QM5MNYU9mpLorPc26d+X7aFoRH8 YPvfneLAvTAeEtHYSHnq7ec5tLnoQHSlpUhzDLCUMDqRFdZ3NyJaFrjyZ3F7KPLeD4Th AcNu6SjUNQzmQXKE2z4k58kEYCi1FGyOIW/6sMD4pWDZ9LMx0TcLcFnAsVN7RQ35D6RG ixHMjx2tDTPsj24bMaVU4P4zHb90l5kU5QXOkvre3fC7WmiDMitTJwWgScyOIDGb4RHM ZI+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A1cRcRaapjU5N1Df1kN08IAzOtzOWxj2FyeaHLFPjT4=; b=mpEcB1/1yRsT33e7CUXIWE2fwHxm00dFnOOvM9xKs34EnCETP9coxYW1RtMPilKZ9u Rckj26xAtHQRCGSx1fyQpFJK3ibXmymAOvt3/GfLaOnb69lxtXjrjhV7KI967QuDe8PM 79IGJgR/ylYjBZQGv4ouGXRpoCMlawn3V/ex/9dtlAzDXGSG3mnx6CU+M5O+0vnS9ucX IedmXRIjJrn4HPtHRILLezU9SZpYl+FLvy2XhMxSx/qor1XOmbrh8DEJP07tjkxK23yf q746CFlKB6ICRtXkpMgFQAtg5oBI1O/fz/r0Ygn/QKCNjoMPLH5J4SvONc/QzIMHej/g 5Syw== X-Gm-Message-State: APjAAAVzw7BatOzTF8dIV/T66LCzHISQ9w7usNxWlUE+JcBE4CPchyuO sVlqocyMNjbOJAgSsndPOCwHnQ== X-Received: by 2002:a2e:9ec9:: with SMTP id h9mr14617728ljk.90.1563227232737; Mon, 15 Jul 2019 14:47:12 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-22cd225c.014-348-6c756e10.bbcust.telenor.se. [92.34.205.34]) by smtp.gmail.com with ESMTPSA id q2sm2457074lfj.25.2019.07.15.14.47.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 14:47:11 -0700 (PDT) From: Linus Walleij To: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Miquel Raynal , Vignesh Raghavendra Subject: [PATCH 4/5] mtd: parsers: Move OF parser Date: Mon, 15 Jul 2019 23:46:33 +0200 Message-Id: <20190715214634.31697-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190715214634.31697-1-linus.walleij@linaro.org> References: <20190715214634.31697-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190715_144714_386679_279DA30B X-CRM114-Status: GOOD ( 14.10 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-mtd@lists.infradead.org Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This moves the OF/device tree partition parser down into the parser subdirectory. No functional change. Signed-off-by: Linus Walleij --- drivers/mtd/Kconfig | 9 --------- drivers/mtd/Makefile | 1 - drivers/mtd/parsers/Kconfig | 10 ++++++++++ drivers/mtd/parsers/Makefile | 1 + drivers/mtd/{ => parsers}/ofpart.c | 0 5 files changed, 11 insertions(+), 10 deletions(-) rename drivers/mtd/{ => parsers}/ofpart.c (100%) -- 2.21.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 5a833305e4c4..4833e5b640f7 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -60,15 +60,6 @@ config MTD_CMDLINE_PARTS If unsure, say 'N'. -config MTD_OF_PARTS - tristate "OpenFirmware partitioning information support" - default y - depends on OF - help - This provides a partition parsing function which derives - the partition map from the children of the flash node, - as described in Documentation/devicetree/bindings/mtd/partition.txt. - menu "Partition parsers" source "drivers/mtd/parsers/Kconfig" endmenu diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 7b4dae4cf52d..d5f1fd696f87 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -7,7 +7,6 @@ obj-$(CONFIG_MTD) += mtd.o mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o -obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o obj-y += parsers/ diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig index e356b4311d4d..2001d96cb82a 100644 --- a/drivers/mtd/parsers/Kconfig +++ b/drivers/mtd/parsers/Kconfig @@ -20,6 +20,16 @@ config MTD_BCM63XX_PARTS This provides partition parsing for BCM63xx devices with CFE bootloaders. +config MTD_OF_PARTS + tristate "OpenFirmware (device tree) partitioning parser" + default y + depends on OF + help + This provides a open firmware device tree partition parser + which derives the partition map from the children of the + flash memory node, as described in + Documentation/devicetree/bindings/mtd/partition.txt. + config MTD_PARSER_IMAGETAG tristate "Parser for BCM963XX Image Tag format partitions" depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST diff --git a/drivers/mtd/parsers/Makefile b/drivers/mtd/parsers/Makefile index 582def540880..69b2c5289f96 100644 --- a/drivers/mtd/parsers/Makefile +++ b/drivers/mtd/parsers/Makefile @@ -2,6 +2,7 @@ obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o +obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o obj-$(CONFIG_MTD_AFS_PARTS) += afs.o obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/parsers/ofpart.c similarity index 100% rename from drivers/mtd/ofpart.c rename to drivers/mtd/parsers/ofpart.c