From patchwork Mon Jan 4 04:11:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 356333 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp14658311jai; Sun, 3 Jan 2021 20:12:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBCUmbQFB5S8s7+C00KEXIHIt1N4poI8u7R6luizOnD/Nk8s9p5NnV7R9NlrMi3F09Kxxg X-Received: by 2002:a5e:8e0d:: with SMTP id a13mr58163149ion.1.1609733539331; Sun, 03 Jan 2021 20:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609733539; cv=none; d=google.com; s=arc-20160816; b=ZJd1BYEl2T+FWuFr7i3avYnoV5bHU5ENdXiF3Du6Ij/JENWnf71usAGwNw1oGr+z1X OZAH4fVWcmJMfj33gwAhPzImnjghd95ABx3PmsQiG5L9rlTuoMd/OgqaCMag0tWNYoFH fMPyTLWZFTdSlfS0tW7WZsDIMtX7ACREsLQFr3AZUNl7zIOv+xnB8FsbFRnTqXAA1toQ QjcG1ehPWYc9mhn2sqUG63+5FF1CkMcwunZ1gGgcQF4iQIp/XPZYheFfhZP4eLn1bORq yYEtendJA2rOpQFm9nHpfvK7MDBjkFydh1ZeN5T3gZXHKnsPWW0DREbbxg+JrjfyXPNA 2mCg== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=dXJKdk6Kxmp3uNTKJL8XYXuNyRXj37NgfFKM0Kudywk=; b=ochGr5/EjT0nf3hsv6DY4VUmTUt85xx4QCVIj16b8pClx4DzFSleBIQg9XXiHebkJX b0g85zmZ82GWIJZnbPqqbWRmCPE+90DJZusw5dRqd2xrdeO0Sf6N/FFZ0qpZF9pv98Th 6BCOeBu2c08xID/uOn91y8iDZV2EmeJdWWDMRuM9JVaoc2J9ooAy2AFgYjzHx6KgVtUQ SXBNAlwLDHdMxFV/8YgyK6q88ORXVjO6m0lbUeV7sQIPUUSJLcam9JoTQDJpCafxlYsi e+6BWnknJ6ZLZuur+lDB+DNShW2JcW0p/KDFkZHtjeIpfalRSa4AUZBTdnpvLbVDfiO1 8zfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=HN0WLMlB; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MUCjeC0n; 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 n27si62036707iow.82.2021.01.03.20.12.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 20:12:19 -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=HN0WLMlB; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MUCjeC0n; 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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=dXJKdk6Kxmp3uNTKJL8XYXuNyRXj37NgfFKM0Kudywk=; b=HN0WLMlBh3NYPh06i33W9VomX 2AXlTS48576YYXf0hIOC0op9oHFc8DJdAQJ8oLtbnfumrJlGWEtPPRSLbFCabwCfzj2ACp46k7Fhv i5ccHi9ePwFIMs1Q6mS7rRRldA9oduOATUvJO1vcj7iJDoHnmTSKtWtiU7teMwc+wzl6jq+ZNay2I HcOVjPYxf+LHT5+Md3PNVTlLgjkSUwLDbYFyglNHR81/iQKdbn4veshzlmVqiiAos48gl5Az80sO5 RSgM/jShAGTLhVmbvKJelJh1KIb+RzDodR8o9oUfEIAp7SRUo4QbrEirmHm/vyLit+Yz7xdzT8e2g 2b+PGkpiQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwHDv-0002PW-3p; Mon, 04 Jan 2021 04:12:03 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwHDs-0002OZ-VI for linux-mtd@lists.infradead.org; Mon, 04 Jan 2021 04:12:01 +0000 Received: by mail-pj1-x102d.google.com with SMTP id lb18so9219068pjb.5 for ; Sun, 03 Jan 2021 20:12:00 -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 :mime-version:content-transfer-encoding; bh=icXjVyLr8ROGK9HCrfmW24KYFfrqOe76+5Eys2pUaYc=; b=MUCjeC0n9Jzu3Ybx2+wYVVQZHu+be4Ab/JPXX+mx10mppyE8coiYJHLOQtIFIiWFDu tBlRN12//WUM+lgkJ6PgC9GzcdK4GHlrAIP6kx+aY7vfmCUtpostUbWZCfZpQ12UkCNd YILCpHW+eidapdhkVCU2wnGb7ghd0CWy99a5KDahC2HjtHvatBy24V9XvqkEw13tpddq pYhhyexGjqX5E197g6JPx9sSYsm66uBLzbGojSD10uk6mLqL8umyT4wb09EKzPZPCZiq UxNrEFHQLeF5GjsYB/5icUIISqQFUxKDglWMdt8qNdZ5GPbR3ipp8tlvgXKgx4Jpab5X NTlw== 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:mime-version:content-transfer-encoding; bh=icXjVyLr8ROGK9HCrfmW24KYFfrqOe76+5Eys2pUaYc=; b=gKDgL6c5quXAZebR+GSR9yTkQtTUQS0wAoPrLNU294Yq5eLZtzpgS2TVbEpYcXWPAd faAcetjiHdxyKWGh9m8u4VoBGKE70doygCyte1ivC2ppIEeFSBmTHZTyNXdd45MJCr9F Cx3wtab50TxGnV+5iepzwhGoUlKvZHYIiWxjxw61jI1waLaElVfcdawZ2Zr0mMaewwaK uS8UmF6cvhlKUEjkWgl1bGogdyZUH2TdmGaXdJgx9EFC3ZKRdLPoNhxvqdXxw40Akmsr O6jOs+Qp/xSe24MgdJBq+LAhhE1vSlthGcKxo+OeGBy9ntxdo5j4BqP17yf93Sd6d/Tr kc4Q== X-Gm-Message-State: AOAM530Z86XOHGQhurkoUFpAH/lZnmcphj9yKTaTKV+sjbwSw5VHNcZm p1R7n22pIFTOkpYUyT1sCqEe X-Received: by 2002:a17:902:6bca:b029:dc:34e1:26b1 with SMTP id m10-20020a1709026bcab02900dc34e126b1mr52162525plt.52.1609733518888; Sun, 03 Jan 2021 20:11:58 -0800 (PST) Received: from localhost.localdomain ([103.77.37.160]) by smtp.gmail.com with ESMTPSA id x22sm54899930pfc.19.2021.01.03.20.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 20:11:58 -0800 (PST) From: Manivannan Sadhasivam To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org Subject: [PATCH v4 3/4] mtd: rawnand: qcom: Add support for Qcom SMEM parser Date: Mon, 4 Jan 2021 09:41:36 +0530 Message-Id: <20210104041137.113075-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210104041137.113075-1-manivannan.sadhasivam@linaro.org> References: <20210104041137.113075-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210103_231201_046973_50C32FA4 X-CRM114-Status: GOOD ( 11.97 ) 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:102d 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 -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 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.25.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 667e4bfe369f..fd4c318b520f 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -2821,6 +2821,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) @@ -2884,7 +2886,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);