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);