From patchwork Wed Jan 23 12:29:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 156372 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp664757jaa; Wed, 23 Jan 2019 04:29:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN7IX5xe44ekK98kJ+HO4t4Nwxv2WQ64nAzrxE/JPO/KyXrOXZba70s0wzzZviyt76upgJg/ X-Received: by 2002:a63:8ac4:: with SMTP id y187mr1808422pgd.446.1548246584145; Wed, 23 Jan 2019 04:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548246584; cv=none; d=google.com; s=arc-20160816; b=rUwuu6ypWJmPN9F4Dt2Utz5DaD8DovQrt9lzP+SiKI9DhEiXhz3CjYt/bQF12GMBpl iyynPYMvm8Iq/1KduRSpSs0MeFgiWCyglE9BAU3D/ig3ofJ85vZbi8zsxOWHEKyjANW7 Lyy07KVYBuMtZMWURyy3+57saekUSoJxG+EmHNIaNPdXBrO97YOx/bdHXq4JqdSu53NU 95ATtQc2Eyq9muNMzbNpNweEbiqx3CNnX29Ftj2WtN7f/KcW/zICx3ErgbfZeU+jmZGP EzERKtAHcNXrWbF5obz+/cfeOyOsXSCnou7TJunRce6oGmQq7VHeefp2Vet5pf99qIbD a57A== 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=IDlx9JIz/j5vhDo/sU2Ok8HnWLOMFZP1m5XyjIhQXVQ=; b=MDm+MRQYoZDB++BJ01+HUFlIqvcMiAy0lvZBghZNq/dX6ZzCVDqOaKThlTd87TNqKr 7eWi+vve/19xbBgLYkd2uPW0WC4y1QXAHS4iiMYcMyWtoeeWvreXYQIplnbU4AjwFgAh zXkhd6Gn2vOlSonMkaVzD2RgJ1zBGQ8AsqQN6lU83GnA4qweMkYUbgZcy2iCNJdOvdq/ tSmTqQ2q1XqnGjJGjCTeZC2V8x/ajXN9bSa1vZzFHKQvq2E1dD+d5by+RG63xgWnUzO/ CCfyX+6ZSBBLzIaw3xPYz5YFPxSRVkReUnXgNTLUtaX2UTXj+2vE73CHWKf0AH/+4mxg i6rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=AFt95yhJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FVhn7JtC; 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 b6si18307417pgm.216.2019.01.23.04.29.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 04:29:44 -0800 (PST) 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=AFt95yhJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FVhn7JtC; 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=IDlx9JIz/j5vhDo/sU2Ok8HnWLOMFZP1m5XyjIhQXVQ=; b=AFt95yhJNr4LHN thDf6Lrmier2wuM0D/l1c0U2s7nmVw9hnu2pv+SaWjuSYtDiVrlFf0QivUZT9VE11GUA4C091w58l WxvPY98oGrNxvLrjwMuuRpwkhTSV0Xyzsn+8fZGaOSC6Iqhy9b6bhmWXjV6zf0Adw2QZE5JE5H1nE HvjYZqbL14SW0Wi9+cG1zw0blZrQQD3cHSf9Qcnq92YrLp/5qOQdmgvuje91wUhiJrwHAi0I7TpGZ 50Ia43IOXYPVGdWCdMNspI0S5Qssh5r1SzNxSkKvLB54eCIamBW5Zaxy1TWyyoc3epdiKwAcWXNiO 5Ll9bs6FwYzC4/bOF4bg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmHew-0002at-8K; Wed, 23 Jan 2019 12:29:34 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmHel-0002Od-4H for linux-mtd@lists.infradead.org; Wed, 23 Jan 2019 12:29:26 +0000 Received: by mail-lj1-x243.google.com with SMTP id c19-v6so1769275lja.5 for ; Wed, 23 Jan 2019 04:29:22 -0800 (PST) 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=DLwpITDJbH5GI5CFlNLCDZnAvlJ2JECuaH3FVz5jQ5k=; b=FVhn7JtCzef4bq0PFqNTu87x2o2JCQvM1T3HhiflNpCKFkjsgnbQQ1kSDI18meSREf u5ozA3y1RmQH07au2Wede7XspScNvIgVdrG1/Py9Vygq/3HSgsIUTY8UQacaxgrC2uya MioaaWPrhVLm3KiSrJxCsFKC5eJq1ebWW3MSw= 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=DLwpITDJbH5GI5CFlNLCDZnAvlJ2JECuaH3FVz5jQ5k=; b=l4BinnI7vvG23PVt+ohGretx6aJkCmpebjHihVGS+bRPJInNNo3bQX5Jk8OmAgclAx 2wuUnhg/hBn89QyFFuNi9kf4nCJeTnl5AlIAMk8mGHYS7hZf1KpF1spNb0NZAi1GPd8x 2EeJ/GVln3PuqruPoLvjI38FUEsapCTnWy0UvAgB7DmxHsoOpLJt5lp45TlOVaMXX2GU yawCov6ojG2qiHiWUZcByeEsSPJBDMSKMu7cpe3peNBCaboOqZxkd46F/AQNVX2ObxOH j6knlm6IgV9S2+8GIAk7k3Slnfeh4uMcMH0+vy0AOvzZCX0KC9Hw3lipSQpGnb7Qk7Bv qZBg== X-Gm-Message-State: AJcUukdbD+eAe7xi4sfpKOEZdIu7jXCzkVJnJhw3YZfO95TnAT6H4AlD i3CI5Vg23SEm4BFxItcB71TeSA== X-Received: by 2002:a2e:9e95:: with SMTP id f21-v6mr1793307ljk.128.1548246561130; Wed, 23 Jan 2019 04:29:21 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q2sm475935lfa.63.2019.01.23.04.29.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 04:29:20 -0800 (PST) From: Linus Walleij To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org Subject: [PATCH 1/3] mtd: afs: Move AFS partition parser to parsers subdir Date: Wed, 23 Jan 2019 13:29:08 +0100 Message-Id: <20190123122910.19024-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123122910.19024-1-linus.walleij@linaro.org> References: <20190123122910.19024-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-20190123_042923_168372_9616F669 X-CRM114-Status: GOOD ( 15.09 ) 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 http://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.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This moves the AFS (ARM Firmware Suite) partition parser for NOR flash down into the parsers subdirectory. Signed-off-by: Linus Walleij --- drivers/mtd/Kconfig | 16 ---------------- drivers/mtd/Makefile | 1 - drivers/mtd/parsers/Kconfig | 16 ++++++++++++++++ drivers/mtd/parsers/Makefile | 1 + drivers/mtd/{ => parsers}/afs.c | 0 5 files changed, 17 insertions(+), 17 deletions(-) rename drivers/mtd/{ => parsers}/afs.c (100%) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 79a8ff542883..55cacc1edcd4 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -60,22 +60,6 @@ config MTD_CMDLINE_PARTS If unsure, say 'N'. -config MTD_AFS_PARTS - tristate "ARM Firmware Suite partition parsing" - depends on (ARM || ARM64) - help - The ARM Firmware Suite allows the user to divide flash devices into - multiple 'images'. Each such image has a header containing its name - and offset/size etc. - - If you need code which can detect and parse these tables, and - register MTD 'partitions' corresponding to each image detected, - enable this option. - - You will still need the parsing functions to be called by the driver - for your particular device. It won't happen automatically. The - 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. - config MTD_OF_PARTS tristate "OpenFirmware partitioning information support" default y diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 58fc327a5276..806287e80e84 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -9,7 +9,6 @@ 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-$(CONFIG_MTD_AFS_PARTS) += afs.o obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig index fccf1950e92d..419529318504 100644 --- a/drivers/mtd/parsers/Kconfig +++ b/drivers/mtd/parsers/Kconfig @@ -1,3 +1,19 @@ +config MTD_AFS_PARTS + tristate "ARM Firmware Suite partition parsing" + depends on (ARM || ARM64) + help + The ARM Firmware Suite allows the user to divide flash devices into + multiple 'images'. Each such image has a header containing its name + and offset/size etc. + + If you need code which can detect and parse these tables, and + register MTD 'partitions' corresponding to each image detected, + enable this option. + + You will still need the parsing functions to be called by the driver + for your particular device. It won't happen automatically. The + 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. + config MTD_PARSER_TRX tristate "Parser for TRX format partitions" depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) diff --git a/drivers/mtd/parsers/Makefile b/drivers/mtd/parsers/Makefile index d8418bf6804a..f7a8fe66e2ca 100644 --- a/drivers/mtd/parsers/Makefile +++ b/drivers/mtd/parsers/Makefile @@ -1,3 +1,4 @@ +obj-$(CONFIG_MTD_AFS_PARTS) += afs.o obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o obj-$(CONFIG_MTD_SHARPSL_PARTS) += sharpslpart.o obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o diff --git a/drivers/mtd/afs.c b/drivers/mtd/parsers/afs.c similarity index 100% rename from drivers/mtd/afs.c rename to drivers/mtd/parsers/afs.c