From patchwork Mon Jan 28 13:54:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 156739 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3453302jaa; Mon, 28 Jan 2019 05:55:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4pcVpdERvwaJDZ3hhRtycSYNQywk/Rekfil75HuRxQjVb1VIM9aurXtNqik5S9to9X0AWF X-Received: by 2002:a17:902:f082:: with SMTP id go2mr21921975plb.115.1548683714321; Mon, 28 Jan 2019 05:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548683714; cv=none; d=google.com; s=arc-20160816; b=SWySYrXFm6bGx3/q67cfOWZgiyO0ZUsJlGaInM8EQjj9Icp3gJ7L95NjAcJBTh/XA4 ZlU/B77y7RFjaDYDvWgy9FBx/hFsEbFfWU2xMEeqO04BtKh8oFfDcJT/LPiI+wX9/Dzn j+szklXfexDEOVar8TX46mVjiXqWioYOvD5smYhswHDY7s+lLUs1rK4GqijkrnJ+1TkP Kr5Mguq3CsFzSS2bC1xkmQlc+ikF5Dh3/Dh5H/lMPxSUNmldpbkwYPuXxtsvOjWHRW60 jJv4iC3YfgYZojFecKXqg0T9Bj3pAxltmZBo3LTLfOC4qkdYwOK56YBodRxNeKQa4FXz e01Q== 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:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=tZoptBwU3SUIc1NXJwZhcyvMhB0i9dR+gEmt8Emd3h4=; b=AXUyw1lgxGFOWKx2A1BfNtskzcvcSyS3apSIqHogM9cOD7DgwKH/iXBcBZBewqrknz 6RELyj1MGZAfs0OmVZcgwC1YVuedMJ/EQch0ctKHyal3uHMwcO3lqb/QKyCsjCdYWNO+ Cl44Am7wKGWmyOQU6GvyytiWH3smTBUYzYA9i6Fa5bAjP8j79FRjJBEYPGn0UsgPE3Vp qY9EfGl7KEm3AIo2g7XnADhcfAaciPImhHJGFI3zo9rxjQl7rMZnpAVagPIQsdbZ+5xl TKCShJPEorpMZ1q+ljNGquvHHcjz/tMC5FF4vyJFMM93BIeuJUg7bVYg+U0Hv6VpWZ+7 QMCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=dmKZm106; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FweaNnuX; 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 a34si32456944pgb.458.2019.01.28.05.55.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 05:55:14 -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=dmKZm106; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FweaNnuX; 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: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:In-Reply-To:References: List-Owner; bh=tZoptBwU3SUIc1NXJwZhcyvMhB0i9dR+gEmt8Emd3h4=; b=dmKZm106udhISc w7RzPfQBlkNLpLvXdG8aDiHYYfs93QHzTsG/eva0khXWau2bldyjEFxQyoDuRBCT33sMvk4zCVCz0 GYXtr6+DGACxyZdfiw1b/VObZjAvP/go+7zLs95t1I110m24frL0AGRuCybsg+CcC2Ida8D9R9wS6 NTduM+6xv25MAs63EhDEcE1VIb786d3FciqPaivU+zXnisdvKu8eMSAFE311yrSuu5IrCGvKTukpj 7VXPtFuPXTKEGxnQ3GVA+geIL0+2Jx+f6nk9h3WXRUyQ6zQGzdeUlEJxsB0R/0jgCm6DEI75PbsXA TqqH+Ps34Q5wQlmvWnLg==; 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 1go7NS-0008Pd-UV; Mon, 28 Jan 2019 13:55:06 +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 1go7NM-0007lX-Sa for linux-mtd@lists.infradead.org; Mon, 28 Jan 2019 13:55:04 +0000 Received: by mail-lf1-x144.google.com with SMTP id l10so11868396lfh.9 for ; Mon, 28 Jan 2019 05:54:59 -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:mime-version :content-transfer-encoding; bh=nx6BIgGh6gFp4r9L8V46UpEnqC79VehFFxJn4HnWerg=; b=FweaNnuXJ0Lpf3iWMOZh/rtcJbJ47ANxVNntf0X/3gIn6fwHKRifmCcHp6gp+JaD9t 0v5/eGgMenaUAh0ewIOjMKZ/Kws8yyJ6ydyLPfdbW2RH+klCo8GuVh7YvWkIZbhOLg/E Vvz+szaOUry1OcFU0/I3YcJchLQWR+L6Lonxs= 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:mime-version :content-transfer-encoding; bh=nx6BIgGh6gFp4r9L8V46UpEnqC79VehFFxJn4HnWerg=; b=jRg+R+U+jAE6k3knKG3xePdtwlDLFjCOns1tQ7wB5pCUwG0dN41BkY1YARdAIyJ/R1 qHzaGaVmA4DdkZCxKRbCFgQvgiTJpwdGL1m3nzTXQ7+wzUIxGGX8YK5FgZyvYN02rgwg MA2sH7gtOaB6lOkjXZRUebrgPkAUJgvtJcB5y0vNNKJti37u0YxeJ9Hbf454braqnsoi ors6n9IfPN6hulu5A1CVzTyOF7vt1ixvhCOiaUwMl9bLGw9duOi3MtSEj4uJ5K8wGuPn VjhLzbbuTgb/e5OpHXMsPP/k0B0eQj/R39n+UmeSz6Fz4ymu6WdmtT2qOFzldraQsNd9 shmQ== X-Gm-Message-State: AJcUukesE0Q9RpmgVtxJcHI3meVcK5pPFIbv1kE6U3gql6gTFcQd3scL wsA/EUxu5KkRhR9FjOxoW44o8+cSIrI= X-Received: by 2002:a19:d5:: with SMTP id 204mr17781496lfa.116.1548683697395; Mon, 28 Jan 2019 05:54:57 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id a2-v6sm3050503lji.13.2019.01.28.05.54.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 05:54:56 -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 0/6] mtd: afs: Support AFSv2 parsing Date: Mon, 28 Jan 2019 14:54:43 +0100 Message-Id: <20190128135449.15555-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190128_055500_929973_2309BF87 X-CRM114-Status: GOOD ( 13.64 ) 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:144 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 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 Message has at least one valid DKIM or DK signature -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 The later versions of the ARM reference designs use AFSv2 with a new type of firmware header than in the v1 version found in earlier versions. Extend the AFS partition parser to suppoer AFSv2. This is based on the earlier patch set moving the parser down to the parsers folder and adding device tree probing, so it should be applied only after that series. Linus Walleij (6): mtd: afs: simplify partition parsing mtd: afs: simplify partition detection mtd: factor out v1 partition parsing mtd: afs: factor footer parsing into the v1 part parsing mtd: afs: factor the IIS read into partition parser mtd: afs: add v2 partition parsing drivers/mtd/parsers/afs.c | 369 ++++++++++++++++++++++++++------------ 1 file changed, 253 insertions(+), 116 deletions(-) -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/