From patchwork Tue Nov 17 17:39:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 325518 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4363078ils; Tue, 17 Nov 2020 09:39:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/FD+0N97ju2nE5dhLdGAgnTT0pn4LMfrkSy7vpaVBZ1YYuljK24tQ/uNGZUGX5/XlOaz9 X-Received: by 2002:a37:7345:: with SMTP id o66mr731286qkc.222.1605634797228; Tue, 17 Nov 2020 09:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605634797; cv=none; d=google.com; s=arc-20160816; b=PvREOquMT8jc+xZqMpcusdEG8WZ28zJMtC0SoNvnEW+h8Fs5lrZqTGXNRPReHgktej wwKxjA5XNFgErNU9wZLl8Lhon1WWg+WX4xWG18RR4UG1Z3mvHFAJorzL6FHz8QiAOIsY wacJxiz5TeEZnb7qbL4lhnQnG7Co+OqtKkeaHcdxT2QeQLsvgstnHcA+MMPDROHstXRJ +sRZURgk1NuPp21CxaGJEfDnSxmsi3w1FvNXsHfYEGepTZfJqE94WapBcCo5s9SM1rVF rYa2FKYXc0MnWyY2d5oFxZzNpUJW2Egd7QJU7v/SB+f0Ob3TmryNh1Ubq5ybCPTO+xAT 73Bw== 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=dAJI3fvBrL5BDtcKJijcQuIn5Cqt0irfPRhDGzVKoZQR3KNzcmce/msT8Db+daaR6L 3xDGrNclNU2omc/M58njJeKlwiHUnti3/qhenBABFR+F78E+YxBqdYZgvM+MOr4FnU1E 0TxfG7quLy1o7Sh4D2mLUPFn+OTa8gHbgS/4tC0Jm0vl8yZCgivy16OCVJIWm2UThadx cGiDnHevV/5zsmMPavVhBWup2PrZ/KbNHZd3P+XKRVJFCnovzdnj+ZJ+VQ5Vm/2RMrN2 /tn5Sj/f0guGlrvewV7pHDkXD31nKL5bp3iIL99PLSN170yfoTCPMG1qyqQ2FyEhYiDp FOxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=3NtotmS8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="r2l/3gDm"; 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 j6si8229460qtr.115.2020.11.17.09.39.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:39:57 -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=3NtotmS8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="r2l/3gDm"; 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=3NtotmS8hzcpMvnfaqFTiNnaXo f3T9YXtv4/W8e7HYw6a88Rr9zAzbnktcpLx1plhUxyvuHQhAcDV4fHtQGjCFvMHXl7xzFAxA254qi 1rfmJ2IZdajdwmnP+5pk8VhrVQTQDmz2hBEb7+/Il3If7sOiUPCYHx6z+BSs+hxQoQ3NmSaV/zXIi EsDa1BYo/6lDFR5ytG5fkS4tWhowbQqrM1S5xneEalo7ew2hLK8qQqUULEhhfMIkKH0rNQ7hlYiFI ICIwnVSMEWkEr/XYMNxSdiazmHGHMhlLHFRlHk8aWLrDtb9JGQRVRaYTBD6CQ5Bp+UcZHkVk+m0qx tz2TX2dg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf4xI-0004zh-Qc; Tue, 17 Nov 2020 17:39:48 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf4xD-0004x7-EF for linux-mtd@lists.infradead.org; Tue, 17 Nov 2020 17:39:44 +0000 Received: by mail-pl1-x644.google.com with SMTP id t18so10632173plo.0 for ; Tue, 17 Nov 2020 09:39:43 -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=r2l/3gDmAVgeNBGWi099+PAX/sTSeFVw6c+bxA2Hxkv4fjT5HS9mpa2z7tazOtK9x3 jDkxryWC58TOfLH4ocEeaFgAfHPtAIFdcvcfe1duzLHaTyC3uHatHSyu3Eqp9RVn+f8o NUFXuaelDV5NiF9kKij/jaDrloV5V2WiuFbAQ8F8Zqj+CETA2T5S0KecXLdjtBLls4XX +Rp5iovP8vGlci+NNz2Uhbp7NbFb19y/F+kt/KP0U+pl+JEaXUA8ApWLHow0W7gnkwnX +vHpA+9vRpzvfyfrxKFJpTzVtQSOaCRKba/fCYg+iBMNyrUNmj5n1FjGYzWSNbVR0EJz t3iw== 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=bYAqU6ARAVz3OKtIRvVyjWcw2fyD+v3aoXJjntssU0+LoDz0Jdygy62ydLpHCp0Fgu /ZYvPBPuvyCoymiZ0FY2CtHreLFmS9+cdaFKgd4vv6Cb6yl6Kyvba05IkKzio7NT6iL6 NX5tR6ygbhgi7RezPyoDrXyUP6QKYlNjywnOPwQzy8GKAOTfDkkl4Td3OrNMLhtKK4/h EylPZfNPaSK2kwW9ACD4+tarKFjOo7vyr6f/MpRnT68xKZCrxZhuTarMJAvV8lGczda1 AU7Q3e+kgPQ2lxlDEtQrgpH19rZIIBH3aoMt4zSv3xxFfKZ698rHUSen8R2Nh8hrzw3Y 7CiQ== X-Gm-Message-State: AOAM531tP4A7s/cDl/sy8BLpfg+jvVi34ESYRHmsgtMYkOBikrxebbsa xk3rUPsfB72WXDW0yAPaqHGK X-Received: by 2002:a17:90a:7647:: with SMTP id s7mr169690pjl.23.1605634781695; Tue, 17 Nov 2020 09:39:41 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id a21sm1751330pjq.37.2020.11.17.09.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:39:40 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH 3/4] mtd: rawnand: qcom: Add support for Qcom SMEM parser Date: Tue, 17 Nov 2020 23:09:08 +0530 Message-Id: <20201117173909.23585-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201117173909.23585-1-manivannan.sadhasivam@linaro.org> References: <20201117173909.23585-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_123943_541533_5F0C3139 X-CRM114-Status: GOOD ( 13.99 ) 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:644 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);