From patchwork Tue Nov 17 17:48:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 325523 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4369525ils; Tue, 17 Nov 2020 09:49:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMpxmwShdHtk1a2bsaAgXFmhAsyVrP8p1797tK7UXGAnpd6ZQrZ74QTqfuIkUl3JigxKFB X-Received: by 2002:adf:e484:: with SMTP id i4mr713691wrm.398.1605635369062; Tue, 17 Nov 2020 09:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605635369; cv=none; d=google.com; s=arc-20160816; b=QKkK0X04yPjVSqRFO94S3MQtbWd1csKIhiGoVSGf+1soU7YFKgRxvlhG8B/se/Ulu8 Y5LShdQX/FMytLgIq7ulKk1dEr/elLv0EqMPTa6emNmU4gd9dY1zo71erunY6h/KhtfB t293dvQI+4dCTasYamngp6bYteZWc1ACAI5DSNaPMlTHHbx2EEtitVls/GiH0wv2kW10 yOLySKZPJL44MKsp8Cy3/TYLYNJ5oOC+8cFSNHUZrFQ2FW4QEk9Dtj1jLGSrZOW1dnPo DpASETD9wkx8hpe3t1zqRkmm176iZU4EycOEOUAfkQmcZqAk0qDim71qUX2KY8Nx2UEf 5pYA== 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:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-signature; bh=CkF2v/dgvVgwxcdljHkdzy+a5LOvXUP/aOz8PPRkrjw=; b=YlPwH6i9Ny9WHFhhqPOSTRIfeUXs08y2UmwupR/5hbv4SZq/qX3U3RFqwv1j3iDVLg sLbKil2SB/fDvn+8eEfZbjPTshl8GGqgk6LDFf4s5m13OJUpEQ38MYijMPgBd1l3uU2r p3IH1cq4+qzwfwhh6Mga52B+gb217qNUkWYawSCM5SqvR2XhfnHvYXdzx0SkQ2ymaO+5 yicHat8h2twr0bySD2pX/CKWQIUXXDAuZGEPOBXcvB69o9skIkJdrq5xgbn4kO92cwh3 Bie+XwdAr2hwIcMJfhiGUjYq3N0gDKC2dVkaP4feXIdz3eCEjVM1U6tpo4W6Rduw8LzD 38AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=z6sy3nCN; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jfOa4AiS; 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 b130si3291641wme.18.2020.11.17.09.49.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:49:29 -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=z6sy3nCN; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jfOa4AiS; 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: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=CkF2v/dgvVgwxcdljHkdzy+a5LOvXUP/aOz8PPRkrjw=; b=z6sy3nCNY3cbd3KXaQes5h4Av5 k3eIyxq+95WpQ+VNIL6yP/sd0SXHaLncNEZF4AkcY2nvhajoIGds0fRqEw4BkErY9doDMxUrkNywg Qu2E62i0jcyNdbeFGz7qen0JRMeck4y8Iy1ObuDz517TvvmP7BKB0dRBlL3OXr17ab0jv4DGBDnCu W9Am3+KO8Rimb1cPTKSYG/E1BWYhsorVaJ9u6wkJos3xmKrHk6nPsXpz6K+6FZsA3R9ZtUXrqrLN0 WKr+raMYu6YBlPl0sHKqzdLikLw0mRyhPdUngIF/aZSgim7Xncflrye/6lxb5A1e2NW392cGPGR23 d26lgzKw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf56V-0007DO-1T; Tue, 17 Nov 2020 17:49:19 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf56L-00079F-Px for linux-mtd@lists.infradead.org; Tue, 17 Nov 2020 17:49:10 +0000 Received: by mail-pf1-x441.google.com with SMTP id g7so17781950pfc.2 for ; Tue, 17 Nov 2020 09:49:09 -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; bh=268k75iGgPwajGOaY5d0Of03PhQtD6bYvRMlc9HmW4g=; b=jfOa4AiS/tPxjopccSsFwVuEPAIEFOQvgNIDZfxXpCqZM2rBRAbMSPUGrRZCUxk9RM M1lSMnYTKmkr2XwSjmUTy27z01sP+vWfmEPHgxDNEejk9lIudy+tadMlhWcbHgGXGsAR m9Hv77MP41Mel1ZJKkB6HvxyP0sB62RPYQoM944E6Eo6+T24PBAzzub48v8+buJCMMRL vwM2SOKLaPLTVb64Py+CQN2TERL4pdJLcKZ9w49oof+AXLuSDSzabeXmjYwy5mLyGPi9 ZyZVBHp4DECrukNla6p+KiGhOD3Jum1NWBvyRl7F4SiAeuW+7CxLg0w5K2zA2Rn7Xhls 0ySw== 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; bh=268k75iGgPwajGOaY5d0Of03PhQtD6bYvRMlc9HmW4g=; b=Vwi/0L5LvKkwY/gx7YBZLzv5C54yIL3PEY3VkLFA/lvknKNkn6EchmLYGz1xxhHXsp i3kiezlYTfZLNr4d9LdAwHQy+jY1DjvYhxjyoHSPEjoyg1Hb9dWEckl4MhTzSSKD/075 3tmzKthSu5ZzE1OKGEW8hwaNKlPPwwCPBsmgXhYu5Wys+8lVr8LxxPYUiZz3YIWHyI2e TAUnGUy2U/fyMk4yIoOv3Plz1VZyCLT/lkM3JTDpzhgIiB8ctA0/8lMrhwLwsCLXyKsT CiN3aCp+9y4vPRMIn6tO+EOhw5DsChblKwIOub8QsnmSxOWHwrV9Y5X3gmHAsaC8GqLb XOsg== X-Gm-Message-State: AOAM533g9GrZs5Tks145EHB9LXOy9Mqm99ITdB7ncC8zRBoG6K5GRCXn P6W6x9VMT6ASsA7DRRQpKfvApIkm2Q8D X-Received: by 2002:a62:e40c:0:b029:18b:ad5:18a8 with SMTP id r12-20020a62e40c0000b029018b0ad518a8mr707392pfh.16.1605635347218; Tue, 17 Nov 2020 09:49:07 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id 192sm22222810pfz.200.2020.11.17.09.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:49:06 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH v2 3/4] mtd: rawnand: qcom: Add support for Qcom SMEM parser Date: Tue, 17 Nov 2020 23:18:44 +0530 Message-Id: <20201117174845.28684-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201117174845.28684-1-manivannan.sadhasivam@linaro.org> References: <20201117174845.28684-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_124909_890621_CF8C931D X-CRM114-Status: GOOD ( 14.19 ) 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:441 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 Add support for using Qualcomm SMEM based flash partition parser in Qualcomm NAND controller. Signed-off-by: Manivannan Sadhasivam --- drivers/mtd/nand/raw/qcom_nandc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 777fb0de0680..1b031aeac18b 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -2797,6 +2797,8 @@ static int qcom_nandc_setup(struct qcom_nand_controller *nandc) return 0; } +static const char * const probes[] = { "qcomsmem", NULL }; + static int qcom_nand_host_init_and_register(struct qcom_nand_controller *nandc, struct qcom_nand_host *host, struct device_node *dn) @@ -2860,7 +2862,7 @@ static int qcom_nand_host_init_and_register(struct qcom_nand_controller *nandc, } } - ret = mtd_device_register(mtd, NULL, 0); + ret = mtd_device_parse_register(mtd, probes, NULL, NULL, 0); if (ret) nand_cleanup(chip);