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 From patchwork Wed Jan 23 12:29:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 156373 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp665108jaa; Wed, 23 Jan 2019 04:30:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN7JRiklkQDPG684+OTQImBqygM9J52LE+QuL4N2CUPy4Ui2cpSmimVVr7gdKFWzPylH4563 X-Received: by 2002:a17:902:7e0d:: with SMTP id b13mr2075235plm.154.1548246608738; Wed, 23 Jan 2019 04:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548246608; cv=none; d=google.com; s=arc-20160816; b=lKsjNGcAd0eIJp5fFnTg5NmQBE3jm5J25V7THIfqNoqNFhXzc1zzDEVwbWXJ7lixut FHolS5IfXktOuGHPrw86SlFzLPmS2rfkkL85X2D6vSzTxU/ebiikH3Dx2LIb18I3P23c EwovHSpVXy878orGYI+xgh2pbzq25557ucsDrTW7wLSk6gMFWhG5ISpy6IlEjiLMDOaa P02aR038sOpiPK3Lj1zO6QVIcLjr9aA6E53QgL5XRKV+BUY8orZ+GLkE0H/W2AHFfKSE 99WuZdO60bFuwogCoBy+RMYl2Qec90kk+QQIgVRVZ9kkU9aGT2Kj5+JJG6suQmDYMZ82 t32A== 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=qWyAfF+ARACNCNglXLQZFObMilSOE+gUwD02cNO7xzE=; b=xjNFNwm01CiINGmOa7ppPAlPucg3L1xtTxpdUZ576JKECIRBvASOGXp7BY1Jwdyebn 5iHclcVDcpZEQ1YB6KNKxByxC3rFmQK59BreI3AlL/5qIY15L38t3tjxl8DqoWa5GLuj EJNX0r2yKblF+38x7QKch3Y6zfVrWNqIpCQ9HUTPNaaFZ3Lfb8elpA9F8wk3LUH9KfGP oLt2gVXtkg+uZlQkNrUfj5182ceXgRlHV8S3So7N8Xeey9oDUA1FwQlWa5f83lFhvXLA o9wVf0XU6/HYSRJBZmOFEnR8eHGKpRDAeeMbMzEaXwIc+MHDocLeES1ntl1wkSxt960R PpXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=hhni57H1; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OlR8F5nh; 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 f2si14818021plt.101.2019.01.23.04.30.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 04:30:08 -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=hhni57H1; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OlR8F5nh; 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=qWyAfF+ARACNCNglXLQZFObMilSOE+gUwD02cNO7xzE=; b=hhni57H16kSAen IsqFu0WVgWzTLP3W04g8PdnQ31c5yfoAT/MssYqY85EII2NX2pg/AmnUsnken2CZwULjYBjKxaIUP 7y8sNSfOASLvWpQKBEyn+AeRPmSvICqD6n1pHZ0u1xOrwXKmAfRwcc41XIpmihVQ4le4sKE4vOXAi IaQsunNCIgZo7ScXZnDs//GRINIJ6pSd59gUAdPA6ons3ZGB8IU8Hbh7rX6DaM9btO5eWa3H+RR8V bSp15rWUYOzi1Yd4dk3FuvvTA6SVyjLonjG65bW0JAoCLktifB1vNoRJyJu1V+HbHb77OCJFuCbKB y0F/h7GOqOUQ59vP97yw==; 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 1gmHfO-00032g-GJ; Wed, 23 Jan 2019 12:30:02 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmHes-0002Ua-AK for linux-mtd@lists.infradead.org; Wed, 23 Jan 2019 12:29:34 +0000 Received: by mail-lf1-x143.google.com with SMTP id a16so1447658lfg.3 for ; Wed, 23 Jan 2019 04:29:29 -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=Gewc66hFqAnao5dd8IKaoQ3SMy6KoSmYwlwea0wjupY=; b=OlR8F5nhf9UQHz8Zts326lK6wlQM+UrU81CANhFqqCOmL1LoVefKUOPJHX3/EHkgjH +lTFzGu8nCy58/aDcJ9nzvw6pgDDi1+ScMYnijYSP1ylPbyCiIWSRhywfMII1Z++ebV0 C+04bM2lRG9HPCrO12z6sNc6yteTmAW+rdOxc= 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=Gewc66hFqAnao5dd8IKaoQ3SMy6KoSmYwlwea0wjupY=; b=kX50CDU5yZjk6dVfEfYMr3r+7q7lVPNKNvUggJDPMBmJqKN+jIdwFICoQrcMu/TYBB aa/g4sF4xNhm2Ypd1qtqIi0vuL3myT70Kwa9xNqzVtqMWCXyT/oR6c7ESWjD/P1uQx27 NMIepE9fPrUB1mtHSQH6468u0++ODuYv7G1UGYMldXRd8+mAecWwy9tKULoStUq/O+Y5 LXA0DBs9HZusYK12dYtEM90XBSAaa2uUt3bT1vR+WPyu6ES+UlRiv5gHqGIp2VHbqimV wX5U1i0RvWshUaT3UIe4oWpa5j4PkY8yL3w+/zDkVkDbNe+8JQhLu6NI6xtOhFrZTgbY mRQw== X-Gm-Message-State: AJcUuke2rkE8QSPRUMLeU+VN/xghxpBXrKYN4AO0UKHZNIVgHd42GeuZ PA5PgMvIOXBer2AtxynZi0+8/Q== X-Received: by 2002:a19:4402:: with SMTP id r2mr1638604lfa.111.1548246567925; Wed, 23 Jan 2019 04:29:27 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jan 2019 04:29:26 -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 3/3] mtd: partitions: Add OF support to AFS partitions Date: Wed, 23 Jan 2019 13:29:10 +0100 Message-Id: <20190123122910.19024-4-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_042931_387573_A7F9F35C X-CRM114-Status: GOOD ( 15.21 ) 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:143 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 adds device tree support for AFS partitioning. Signed-off-by: Linus Walleij --- drivers/mtd/parsers/afs.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/parsers/afs.c b/drivers/mtd/parsers/afs.c index d61b7edfc938..3679e1d22595 100644 --- a/drivers/mtd/parsers/afs.c +++ b/drivers/mtd/parsers/afs.c @@ -255,9 +255,16 @@ static int parse_afs_partitions(struct mtd_info *mtd, return idx ? idx : ret; } +static const struct of_device_id mtd_parser_afs_of_match_table[] = { + { .compatible = "arm,arm-firmware-suite" }, + {}, +}; +MODULE_DEVICE_TABLE(of, mtd_parser_afs_of_match_table); + static struct mtd_part_parser afs_parser = { .parse_fn = parse_afs_partitions, .name = "afs", + .of_match_table = mtd_parser_afs_of_match_table, }; module_mtd_part_parser(afs_parser);