From patchwork Thu May 2 14:30:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 163264 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5809435ill; Thu, 2 May 2019 07:33:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1zYvY1ZvBmZZJi8+v6vDoeVAiB4HkLkaBcXX/eq20d07/TGx0qdjXVr4ChgZgD6a507Uz X-Received: by 2002:aa7:8092:: with SMTP id v18mr4483499pff.35.1556807613928; Thu, 02 May 2019 07:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556807613; cv=none; d=google.com; s=arc-20160816; b=l5J7Zky35QcljX97vhBPx0rKGWg81VsbHLeo5v4QVp0A4cbyHr2nJqV8nXycJoAtsl dmML6D3vwgPJH6qNLyF1ejF1QMnrmqaBHEx9XTXX/hry/a8VAGHNI9MncoYdlAWYe5t6 CeDoik/PUuuQxHGZwDQRJ9+q2J2RvPs6cZd9JxbEUJPtZwuO97Wy4CvdR3ryy1NOjLl9 dzByXQ/JJjfurKLDefY9fSGdkP8QI02jaxkoSQYqmYTveo3oC9j6A5AwLRI1lAeikkLx v9Z+SulKHsBtwolZUGMmRLaEb18vhRPC30a+oa76LIWhi2DP/m+32/iOAHnXwkEpquoz o1+Q== 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=GHB+5E967SPhzeUW3wemdBVSOzj/2B6E8zfh778pRN88R3Kts+WCHEQAr46q5TMgUd le7RRA6yN8EMix4AUzTxHqpQL62W3oeAgvEgaKcyOaU8BOtkwp49cgrJUmpL8xi9q9TQ BXyG+IkcBBxIZA96n/kPuaHr9pTRIIGa5uSkwIH79EkOLwjP2iqLM7IJUKj1dYAkA+Bg AH5MA7DXAlcVoaIXPk+AcaTp8ZCPl/lKRyhlpLwV8OuAq14NogyWuI45ui/5UAG0OCN5 +9xtzKtgWt+YdA+D6zLVXZMNNq+tT//ctaBQ1m2Mk+/vIAXbNEENCAi6/FhLwB8y84kJ 6Qfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=P1NDwXRn; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SXUDLULi; 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 3si47441802plo.300.2019.05.02.07.33.33 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 07:33:33 -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=P1NDwXRn; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SXUDLULi; 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=P1NDwXRnZAoWlc L4N18Df42q58+uBSrfEY3a2X/Qn6J3tTOifRb4/puxAhGCneSNi8OafXiweUUcctMKnDtlRdARP2b 0QxMBERbsKpKtnUKqywXfHN9Oh9kEqcNwc7dV12mKWUdssUbX4ZnxDfSvYo9q+iYaYAhLJJhegJPw MZtQRnd/tkmfSzld82682V6/5anhrzwarDzRTtzQ2TrCc1JycaQqw7r3SAcABTZD36yLUdVD58bRs M4oahbmtVOgkOji3mmn17LjEJapirZjTCXIBOvrUGUcjJ7EIZ1U+AXehCC+jXwUvJDwV+PydJFjVw 5D+kDKOD9NOhQBVr3FKg==; 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 1hMCm3-0001H6-BK; Thu, 02 May 2019 14:33:23 +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 1hMCln-0000tA-Ht for linux-mtd@lists.infradead.org; Thu, 02 May 2019 14:33:11 +0000 Received: by mail-lf1-x143.google.com with SMTP id v1so2060364lfg.5 for ; Thu, 02 May 2019 07:33:07 -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=Gewc66hFqAnao5dd8IKaoQ3SMy6KoSmYwlwea0wjupY=; b=SXUDLULiWdxE0S3I9fVX/PmlB772WLAgbkjKLXjiC/sBWUhpfclGdXt89Vl1ptM0Iw 9it1U0ddZ6+dxphHai+eIN/YT/OUwII18qI6GL3Kbw91cLm+aewWGQSZUUu5ekSRPzLw sA+KL2iKt7qN3vr73/KFhJ+S4EmJ5prhKKrYVXGFpb2DtFlS7a1dcPEUW1+/uNpT6vf0 W/PZ7vmo0n06TMYLblC6cXBVPYglQTQADRQ2g5mCHykf8d5f1y1kwq30boWSxSms2elx iGd5iRZh/IJdFxaE0RSmRYNevAEEbFyCRn6jzQVmyNoz+Xt0pwdOYlpC4k6t5cLjYFsw Y3dg== 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=BKS6aNNRH155XRJs4QI0oECYUdHwuA2rUke1LFyuYKP0eTx/J03MXHj8vzp7dER+bK p5gvz+sDZgFqO4GtcGDjKd2zcwMVggtejimk53NF4jPxYUYAMz1+IpjxEXymBDt8PoBc jQGKgzZH7O8xlgAHJQxWdokuVKz+NWZudBptJ5/VU+QQER18B4i2CHrpF3SPRaGvurNI 4hyUx7cNtaxJk15jMqETSaENKaYwLfotpxJZ4nFzU5csynnVF4V3hvHM0NxQLHcEC5C0 S6qML2B+L5KEk30+Vj+ub5NGsQpYBllUO11JZ5kZ3dNzjUGHjYmuobFc0cNyQwiKeEze V+yw== X-Gm-Message-State: APjAAAX9QJ8bJxX1r1KZxILPWBqtHaSiyPVqzOIn+bMqbPtJeQXftYpQ Mz7DsMD6vl6JuYRuhdK3WqtLQw== X-Received: by 2002:a19:a417:: with SMTP id q23mr2174757lfc.110.1556807585462; Thu, 02 May 2019 07:33:05 -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.33.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 07:33:04 -0700 (PDT) From: Linus Walleij To: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Miquel Raynal , linux-mtd@lists.infradead.org Subject: [PATCH 3/9 RESEND 2] mtd: partitions: Add OF support to AFS partitions Date: Thu, 2 May 2019 16:30:28 +0200 Message-Id: <20190502143034.16781-4-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_073308_117523_13ADDCD2 X-CRM114-Status: GOOD ( 13.27 ) 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:143 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 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);