From patchwork Tue Nov 17 17:39:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 325515 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4362937ils; Tue, 17 Nov 2020 09:39:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx52/Ab/9EsbKof5kXgdN5UyK3b6s59BJLdUL1ZFgSY8DkjL+mBXxxJbwcJXcyJ/PfGEuYo X-Received: by 2002:ac8:3612:: with SMTP id m18mr790248qtb.346.1605634788146; Tue, 17 Nov 2020 09:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605634788; cv=none; d=google.com; s=arc-20160816; b=gfuBPYebsLG2LSsBW+86LrgQj+h8zVc6h6TbCpw2/AJFFJki5YEq9YrJdq01OvjgHm AjIPrwLjAK/uIpJr25bvEAeuV2foDxM8VTT/iJSY+tVuCL7vM/001CC+SPWJKEhfpS4W pcatV1jii9mgSZan1aVchcKU+v1ow3Kcd571rcE6VUIzaZjIU7SyLgGj7S2Pz/5GZjRY PiSBygmPRcXAfVcE98yylw1emAh0g0COUIt8fhO27HKDj82F/eQPC5MpZuO6uz3P/da6 jTSsN0FYwlQXOzHQ2LkOX9PDKzDiU1E7xCBo6KduBM7f4l9jrNRKU9sdUDk9/gCrc2YW XD8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-signature; bh=cQieim96hZ2A3XAIPA71tEPDBRTapnaOWUiGDWc9uZQ=; b=dxaoyYYpnuEMcWkZ0tTfa3qGpzBr1ZL9FaK0i+6ozlh0rqQkefqcRbMGVbhqTwgGj+ I4Lbu/DPlNfUlYWQIWHGY51cGmIMJ2zwNozjLbvWD0QicoRGBJ28glCbb0jIkFFRfktv Uz9LzacZ34/JF/XwbLDX0qNmeBGpKyWsk8m+/Z+II7FKEKd+YiAC3J/JdOazc9XVNY3U mnyjmAPYBCMPKfihj27of27eNdnApe1bEDW0fRJhMEVjBMnge/u7MdUDe+05W7zpp/NJ 4XaUAnNUtvicxr6FRXgmKydhpT7MMJH8iQp4tAD0e7IZtb74bFX9Xa6gmSKa17lGxBGA noBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=19NBC1gg; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kCPiliRH; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 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 merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id w5si11209402qte.60.2020.11.17.09.39.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:39:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=19NBC1gg; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kCPiliRH; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=cQieim96hZ2A3XAIPA71tEPDBRTapnaOWUiGDWc9uZQ=; b=19NBC1ggQnnOhNpFBZ67B8qgt0 mkghn5rPipURFk7g5VZr7QFyfFRkTDAWrHh/bB/LxCXSFRwwCmA17hlfczAU2p7QLFlhVP+pfUkGT usR2v3Q90D2IfqAYqpAE5uzTMA1mtEfw6g6AblOV43FQSoChtw3Qp4iCHJRBLkpz+vUZCmQwups/4 PS/1KppY6vJlY/BRZx0IY/YKgAV3vk4f9OXDFfLjdYdTNprKK1tEu8ZdybWbtoqRDYYi0pYC1sZUt 8w7SM/WlkqV7Mj6dEIEFozylKtpwftYkoRGNQX23AY7nxHbEP315nzVkFznkpRV7zcS5u5dtLWtJq +LVR+0Yw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf4x7-0004vU-C2; Tue, 17 Nov 2020 17:39:37 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf4x4-0004u2-VB for linux-mtd@lists.infradead.org; Tue, 17 Nov 2020 17:39:35 +0000 Received: by mail-pj1-x1043.google.com with SMTP id oc3so895497pjb.4 for ; Tue, 17 Nov 2020 09:39:32 -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; bh=a081+5sEtLZdxVjnEsgO/mWDD8NzqZQtkeB5cfYLH30=; b=kCPiliRHIVUfr3L65ip40e8uAZiZ43JMLQyUgVBVtUA29OXaMwbzaSiamP11wt0nLi YVa3Qf38eA5gN/+rNsQ2yM+7QDY/yuP/UdK8t7jLdm57RGM4czTgeq4kP1cVpogmijvV wVjnFT8FXE1vJP4YXScEOzp/B9Pef8KcRULWWV4OzUD2rdL3nK/eh3z2bTvZw7qs9an7 5QQE5YXAMymBZT4ZOuhJAS7VyRoE8JXOX2V/jyfYemcIdNu/N3KtrbCHfJ/sb+LCu0/B 4xh1S+Bz4jEDDhMyHZgJGwX6DIIZ2Gr9XIAgLvexRPm71kwn/sfBOs90yUGokUHCxsoU E3Ig== 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; bh=a081+5sEtLZdxVjnEsgO/mWDD8NzqZQtkeB5cfYLH30=; b=NA5rLjkXkIOFXwXK72OZ/1rj/07Bw6LZbkaInQWSfpy/dCwsIhqifkfUuXhTAz1/Xy 96Ym4QLEgpXv1/YCOi8rngH8kIvpJLHiLsf/fy5ayc+N2uTok7n08MV8dLaSWviWWbLi MgMFwflx5epfSlh/XS4cO4vkCy4mm1Y2px/PmyCDyHN/q4xmuhi05RC/6WstTTeb7oW0 uK23QtodwklA/rFB6tD3hYB0xbTqI3R2vpclKhInff0CgtwSUDOpPebybbUr0rPKKlRx pSuhCAJPhp6DjnTr3klUHgodeudSkT+eQiYP4Aj1xzpRKo6sZ9BOoo30rpaCm9mMZV0K 3PWA== X-Gm-Message-State: AOAM532wVeQbuYA6e+OI+V+24dIcK+fyNHjQA7IuArgfYNQ5SMzP8pjZ mszSbkFYbYBdsATmE/SFsnha X-Received: by 2002:a17:90b:a02:: with SMTP id gg2mr149355pjb.225.1605634770702; Tue, 17 Nov 2020 09:39:30 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id a21sm1751330pjq.37.2020.11.17.09.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:39:29 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH 0/4] Add support for Qcom SMEM based NAND parser Date: Tue, 17 Nov 2020 23:09:05 +0530 Message-Id: <20201117173909.23585-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_123935_033465_A543584E X-CRM114-Status: GOOD ( 12.88 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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 [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, linux-mtd@lists.infradead.org, Manivannan Sadhasivam MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Hello, This series adds support for parsing the partitions defined in Shared Memory (SMEM) of the Qualcomm platforms supporting NAND interface. Current parser only supports V3 and V4 of the partition tables. This series has been tested on SDX55 MTP board which has an onboard NAND device. Thanks, Mani Manivannan Sadhasivam (4): dt-bindings: mtd: partitions: Add binding for Qcom SMEM parser mtd: parsers: Add Qcom SMEM parser mtd: rawnand: qcom: Add support for Qcom SMEM parser mtd: parsers: afs: Fix freeing the part name memory in failure .../mtd/partitions/qcom,smem-part.yaml | 31 ++++ drivers/mtd/nand/raw/qcom_nandc.c | 4 +- drivers/mtd/parsers/Kconfig | 8 + drivers/mtd/parsers/Makefile | 1 + drivers/mtd/parsers/afs.c | 4 +- drivers/mtd/parsers/qcomsmempart.c | 169 ++++++++++++++++++ 6 files changed, 213 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml create mode 100644 drivers/mtd/parsers/qcomsmempart.c -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/