From patchwork Thu May 2 14:30:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 163263 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5809082ill; Thu, 2 May 2019 07:33:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2jhfauug2Nn6+KcLzMBwNhOdwgqROeVK/w3DB8m33DBY6JBwEhMgHgZ7bFx6nOjMbHnR9 X-Received: by 2002:a65:51c5:: with SMTP id i5mr4335182pgq.189.1556807596025; Thu, 02 May 2019 07:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556807596; cv=none; d=google.com; s=arc-20160816; b=TFdQ4ScrppwaCkZlo8A6dQvgHy7tkvs9O7EJRvo5HGG+qjiz//jjiU7uGyxfCVJIHN v9LhOg07A95aD1FnQmdra+znErQS7cFIqCyATF/SEgxCF1Xct2CD673TmAg0gYP+8SF7 3PdJdmOXellmeMbwJWmxWBptOn5GjxiwHnwPk+0kIDWfvKr5+FeWbHw7AK4jPjqGbOET Rz12H1LYFjiU5Nm22AzPQeaLOaOej25+icFEARuACZ6Qe1yUmQxjPNfesZHwb4AMeqfp VLST21ptGqCF8//bJYOcMerrEeAK9dbpI8YEYawCZDXVoio7e7swnRnfeM4WfuOfAWPI NUmA== 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=oALOJMCdP+70eELnUNDIn8uhJpsa+u00ZidfqFJXKM6LBnjUrg0314e7GlCjS4Lc4K TpGRJSp89dAQwTRklYWtoWjrtxqV8Cet3z0ZrivhHeF4kYPUkmxuQaaY6DS36GNWGaXN xZb53TZjAdXRw6wHc10ZJx0L0FL+y7aHbKEHc2e6vY2X2WEPaVVC5nlFxjRVPUgGHi04 jYV355PdtyZLz/9adrlfg8Q6Svxr66LpbhIo+q0DpY2QIRQF60fZSir3AqAeygpQSUda G/vGJKNM6XvkJpB1jQD111mL/VjlFX/U+qYOzmxXCmKilno5bUlihJ55UcgsCh9xFNeF lZNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=XKqxE93F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B8bbSTqI; 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 l13si15396299pgh.88.2019.05.02.07.33.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 07:33:16 -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=XKqxE93F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B8bbSTqI; 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=XKqxE93FtLp4+i F5J7HVCRBt+ISfCmWP0A3MQDt3vIiZSNPYqIs193ei6Patlc1/YSuACP1OaXqfFLpKREKf0kj5QhT L8PxEAkINkz+lDvMGEsSlXN3T5HNgdmQnevDskVUlQ6Wc0+qP/w1m45rvOUttTN5IclQgSSmEMWHc uUHwUYqdXK4uo5k4lGkt9mKnP1fsRAExYByEctrGsTZ07u/mbIFWsFQ2Gmntdv0JzYZIpVdSGhPFD AH3CjJVesJcVrQpudlofEQXGYkSQIFm6z2ZTqoD+BfTqYExBq790FE4X1ZliLLRdFOH3+vZiIyzt8 8evfP0/6aqOK3DiQ0zlw==; 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 1hMCll-0000s3-BG; Thu, 02 May 2019 14:33:05 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMClh-0000pk-Jr for linux-mtd@lists.infradead.org; Thu, 02 May 2019 14:33:03 +0000 Received: by mail-lf1-x144.google.com with SMTP id t11so2034889lfl.12 for ; Thu, 02 May 2019 07:33:01 -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=DLwpITDJbH5GI5CFlNLCDZnAvlJ2JECuaH3FVz5jQ5k=; b=B8bbSTqIqX7Z3Y/lOUkykw5zHh0zBSiJa0H00hD5qAIoS8iHZYC2RkYIHqbEt0f53l DJ0jfody6Gp/40F1UpsoMBlN6w/42tf9Css6hiKEz6okVgyZUdQbngtnpWCQ2I4pAPir o1nK1z+Qt/hkacbm1Vr5lshgYPVqYplOku7zPzNzVtS5i+xrF+Gw8+kpFddqFJgWAXER 17QcN+srN7FchUd+l2dgkDHT5dzMLzgO+9P9vvr0V8or2O6k950RGv6wMYOikujbPsLc 0jhBBGIcH+7qmqtlt2W6C2jn1fBngpVaWIToe+nUI5jxOO67z2xnJAjucpPu818PO0L6 gCbg== 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=toM9liV8jesRvtook3B4teUeFG6ST0Ns228kXRdTTK2EKamFCIgt5O92JzCjDEOR6I 7LDj6KdNVuG8GjAvB+h14m0BRo4mI29LDsEpusqXZZDFdsjLomeZYXi5KhqXvCVNXY7/ Fp7YmkcSzo2QKA7KjcFs5PENQVX3KauvcpOtgZPkWh7S5WXfpkWoycHf9ptuGw4hOaNV 529FC/9n/qdUjlyPPt29cexIumypc8nrLMOx2Kq5nf3/MrrHq8PQokHGX6JS+URuRsXL gtTEw+RiRtxWf7RCTCLEMHYg8I+YsIAuZtxSJX2y08kFs4GXxQOIyI6wcSGRgJUHEwyw XFpw== X-Gm-Message-State: APjAAAXgG+uznWrKjiSIbPIfbfz6ar/HmOH9tjWHwMpfrbJuQh5d8eLj OCSr4wXN6QuxP7x956WepY2gVA== X-Received: by 2002:ac2:596d:: with SMTP id h13mr2347513lfp.35.1556807579576; Thu, 02 May 2019 07:32:59 -0700 (PDT) Received: from localhost.localdomain (c-d2cd225c.014-348-6c756e10.bbcust.telenor.se. [92.34.205.210]) by smtp.gmail.com with ESMTPSA id l79sm9430625lfe.92.2019.05.02.07.32.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 07:32:58 -0700 (PDT) From: Linus Walleij To: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Miquel Raynal , linux-mtd@lists.infradead.org Subject: [PATCH 1/9 RESEND 2] mtd: afs: Move AFS partition parser to parsers subdir Date: Thu, 2 May 2019 16:30:26 +0200 Message-Id: <20190502143034.16781-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190502143034.16781-1-linus.walleij@linaro.org> References: <20190502143034.16781-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-20190502_073301_649251_FA51400E X-CRM114-Status: GOOD ( 13.48 ) 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:144 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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