From patchwork Thu Nov 19 07:13:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 328378 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp116870ejb; Wed, 18 Nov 2020 23:13:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/NL+m3yAky/KbI7PzWJyEXDGjm/fdOLIp3+26A04ectQZTuSOJ7MSSw32zAPSQxnEpQuW X-Received: by 2002:a7b:c4c3:: with SMTP id g3mr2741447wmk.127.1605770036247; Wed, 18 Nov 2020 23:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605770036; cv=none; d=google.com; s=arc-20160816; b=S9kwN7Tg7DjplYyu4TgT+XngImFlZVodIaOqgDrofkdUT2t+qSy7JmhPTjmq/NDgeX wXAzflzwRL2UErAaeweaxH4YKtXodZ/WcRVgX4PH9xylbMBdb40qGwsuPz6bn6RK8wXT kxPyUBwlKtwjGn1UbVe65bqMt2qgwc8iiM2BiiKMfrhxV/cT0TiGU0yxTpmmfnNiewpF 4ZNSqestEl4HbC/5UdI9Fpx30DFgQf8n6VAfbQC/j2RvTpZCGDGYqIxTa3forRafpJ22 IsxgC/eVbHRqgpVULpMG7wtfExD8Zxn2K+lRnsXuC65Lye6TBjbnMJphoCW5UfkBuBKg I1ig== 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=PYL+f9euGWTautVWjQhN1dP5tFD3SAA9l/+YsvPOqINtC7cBdqntHgo5p2qBnxtqvy h931wYZqurj4Pctr5nW5Bg3/wgxqlKolEe0MakXEauBFlxdlsQidvFn+4s7io6Dt/JP3 XFb4RGXUcn8wSVEw4bHolmguS/kL2fuGAoiUTbgEItkP6V6ziyHKNUjgaqANO8bsyZ1E MYJLbyrA7iPhVXhkcsljaxCUwgZ5qDCjNN9lEkFYTnDA+DsDORx0Rx1h82ck0wBsm/Zy 9xjMvOHZUL0ZExw5KRcYdBGZJZIEu5ZxQR39txF8CqdXb9TZQopigS6Iqxlj8gKNeCtX b9YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=xWdgKho5; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="G/p2/8Tg"; 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 i9si25723063wri.462.2020.11.18.23.13.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 23:13:56 -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=xWdgKho5; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="G/p2/8Tg"; 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=xWdgKho5LwGT9rMrW6r7wSsFTm puIaDQyZe2/IHBJOiFUtNt42Ct7bcP55dBOgOuojooqpyvp+EMPV17fgJsufxlS5tW5oC1MTJyq7n m3f13m9kOhCOFpP/bYmH6OnZD3D76Cw7XM6oms6T6rurqJqsN27GCJRHfmgQ0mo7y+ldq8KGs/mCo oELw0IJB843vJ3REHtImXcN6ICGJk9HvvdXARuK7zEMfVF1OpuYaDKYbffjo618mWe44IwTWEH5O0 /4GWhzDRx5wgLKyNDvsJhPzJtpaing6TyPZ997EfDKClwhW2d8YGRgDBJE3MivoOopN8V8Mbw9gOB n0FTCWWQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfe8Y-0005p7-W6; Thu, 19 Nov 2020 07:13:47 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfe8V-0005o2-8M for linux-mtd@lists.infradead.org; Thu, 19 Nov 2020 07:13:45 +0000 Received: by mail-pf1-x443.google.com with SMTP id i8so3565958pfk.10 for ; Wed, 18 Nov 2020 23:13:39 -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=G/p2/8TgOM+86w/05s8sQwFulz0SPcg1s110p4Y5VrMY53CxA7P1YrGyKhG8Hcevmo x9+HHdxGxVPrZLI4GxC6iCh0/mFSGTuBemeeyhMyrNbER+aYPclv7+p6GCoqJG78exmw PDFtAvEB39hnhS5L93Qcpd8rN78NDXuOfrhqiZ35SwzNfVlggchfM0dU32bXJqPBZ1xw xBBNh2DoMA7Jz/nIDF/yTCjNVpeHN1GFVV27NasRvn74NQPSUhEYLd3RHqT25M5m/5qY IxxklrtsQOjw5puK4oiO+NlbTzo53b/XQfORfU3bN4vppwxzT4M4uKMy6TTVLPeFzx0i hYQQ== 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=mR8cb9585fa/HSB/SiCIJsyc9duD8ZE1aHbrH1BR5GntsTQQ0VlXo/wyXkWpv/7NV4 GlE42DHd1R9mrdIQEzvkhwWEV4JC/kFwnbqt2JohOY9uekG7eo0qVM4wava0xyD8ZclH ORLhJ9WkbZSLhyUM3CqjC4fKUMGeHUwzYL7i+hwUFRxdv7i17FLnxW9TBH+EbjivmC3e SWr+2isWOB+c7jqdqXCPABr4V4i/cYG+w9FUBrlGn49shYjjnvsIfYJB4CDlrW0wmhms lhfLQnoeFM3BF1myRmBENnsd62TOKyQgc66aDbnu9oAVCoq3sjN0rRzjH54reDpj29LY GU0A== X-Gm-Message-State: AOAM5319xwzPL3gcwU90NTyf/Ra8P6ps45Y9DgSfbTBOOQbjkMuxAoiZ wg1rxlNFpZZ+tLsS9KHHgiMtNM8vwiTX X-Received: by 2002:aa7:9af7:0:b029:197:bfa8:abaa with SMTP id y23-20020aa79af70000b0290197bfa8abaamr646747pfp.26.1605770017530; Wed, 18 Nov 2020 23:13:37 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id 12sm5491577pjt.25.2020.11.18.23.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 23:13:36 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH v3 3/4] mtd: rawnand: qcom: Add support for Qcom SMEM parser Date: Thu, 19 Nov 2020 12:43:07 +0530 Message-Id: <20201119071308.9292-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201119071308.9292-1-manivannan.sadhasivam@linaro.org> References: <20201119071308.9292-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201119_021344_188159_3177E5A1 X-CRM114-Status: GOOD ( 14.05 ) 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:443 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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 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);