Message ID | 20230127111605.25958-35-srinivas.kandagatla@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp779786wrn; Fri, 27 Jan 2023 03:25:03 -0800 (PST) X-Google-Smtp-Source: AK7set/P3E8UZL5AQzcOFQWF7d1n+YhDfC0VEf2hQFGL7VTgGxp3uTKx2+gNdZMB9JZ1qmETvQ/f X-Received: by 2002:a05:6a20:54a7:b0:9d:efbf:8156 with SMTP id i39-20020a056a2054a700b0009defbf8156mr7350634pzk.31.1674818703244; Fri, 27 Jan 2023 03:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674818703; cv=none; d=google.com; s=arc-20160816; b=za54iG66wSjxkCWu0glEg929fF7HAb04mzswB6k9drKzHLH8px2A4dnmLIHodMTKS6 M1HGM3246sIEVYa2ehp/y2Y/HFTutFnaJOKEar0dV0LcfUM678uTIE6LkRcjB6MWQtV7 2YtF86xoWOUmRiFN/iYR9Xgf4aynRuYMNW4yl5sVQE6lp/zOJy+bdd+RSZbd+xXd8ZHY F2KRkRgwxVdCXtnxzjuW0laMIyD7G5Mcnja/FhamuTgc9+4KOMlJuvxge56L49wMwtOR Ef5TX3VOSVDvYP9VvP+yh7siqprX7DsFXZGuF/2/yVs9kskI8pRH3ivukwprf7jVmv7R 4Kdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AXKbP5NdGEvdDzS4EdNjsMISDWT6wb0Ca2B6UKqLyAI=; b=uH+JaS6UoPQgOfsdtsE9sMsTg9NkcuvotqqtOOBvEVXjQAGjsK32+l56oZ+1/r9q69 Yzvu90kRXjjgvuxWLPWD3eIqDoODXFvpT+V/sw2BTM5/6u9LSNYVLONaLqH9U3bIb/hj ThqRfmFoxOU6oUMtmHLSE/dYOK+KX3+5aifJqFVQgvTNVfKPW/TiqkRpzkKrexmuauZ2 lWWWNO8fvlFeIjg4fE/TbKio36/Hot6Q6kVveK1NKYA7VRr3Gp29HFeHsWJchhDPKS4k 6wLRaBwcTGcf8UzEVILnN8D86z/8ucJToUGQXjVdnweWmThRf/VAoxvcDGReK34NnRfe ye+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLq7j8rn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a656a04000000b004cc3c59b5f0si4658883pgu.329.2023.01.27.03.24.48; Fri, 27 Jan 2023 03:25:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KLq7j8rn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbjA0LUB (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 06:20:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233005AbjA0LTH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 06:19:07 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C910A5FCD for <linux-kernel@vger.kernel.org>; Fri, 27 Jan 2023 03:18:31 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id m7so4654260wru.8 for <linux-kernel@vger.kernel.org>; Fri, 27 Jan 2023 03:18:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AXKbP5NdGEvdDzS4EdNjsMISDWT6wb0Ca2B6UKqLyAI=; b=KLq7j8rnRZyCaSxJc+7nQ10iM7RqhzmV75gnzBiJCpTv1atcf53fawxP5J4U+5MUvX 9JFNPq9jQn45FNm8HktXu4bi0k0ZpnY/GwB8iTNeBZVALhI1c6j0AYtOcIKswlSa034M fsfYhAuhg5fZ5Edt+6hVrA5ZghW538PWY9EOvwBq7Iw7v1URwNvW3iWJXt1+swiibKSy Qv5D75sgY2OvpRc02DmWkR5TT97MsD3tYIUQa5MGeEZe3z6ZdUGHGGqawcQah9XBr9gz TygwvtdWrvl+DGC1x3vfjOfCkxBqfU7JhpbY8YQV1BmW45qGRtMWy1NW1ANrRxe6eRRh w9YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AXKbP5NdGEvdDzS4EdNjsMISDWT6wb0Ca2B6UKqLyAI=; b=mP7B5umLqIDJdQrsBHF4llrDJi5WQ4WjGAWDsoR/VWoUbwChKmCY0oETdBczhMUoRp x71EPuM+05J7QVn6UZ8LbAE6I17TnBrEaSqNYCxR8g2ZWq8NHYLfLVUAQB3GADUgK+wU TJjNnW/PLJT2FhhCJQCxCAjMGBPwdqfsv0pUNsZqeWa795544Bg/MeaF2Q14IfFHhTFo Vo6aOljNCtdgK0BmHu3BhU7AetjIxxCA4TmsIvpp2dT8hrKtO2UQsDCztfWFm7200JiA 19zo13PFczTsrKqk8yw+LmhL2yPF46LLvk7rg4fqfIjmF4P/YPTYfqVz/T3d8NTBzxfF 5+7w== X-Gm-Message-State: AO0yUKUfIpEYodB3s3PPxDU4R8vfA2wSt2e97ekTsbas5LN7tdqsCUC2 jYBwSA2PAdF0H3eVVog0UUS4cg== X-Received: by 2002:adf:a1dc:0:b0:2bf:b4ca:6bac with SMTP id v28-20020adfa1dc000000b002bfb4ca6bacmr9237448wrv.59.1674818305849; Fri, 27 Jan 2023 03:18:25 -0800 (PST) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id c13-20020adffb0d000000b002bfd190fd60sm1843314wrr.108.2023.01.27.03.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 03:18:25 -0800 (PST) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Michael Walle <michael@walle.cc>, Peng Fan <peng.fan@nxp.com>, Rob Herring <robh@kernel.org>, Robert Marko <robimarko@gmail.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 34/37] of: property: fix #nvmem-cell-cells parsing Date: Fri, 27 Jan 2023 11:16:02 +0000 Message-Id: <20230127111605.25958-35-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127111605.25958-1-srinivas.kandagatla@linaro.org> References: <20230127111605.25958-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756174696273984670?= X-GMAIL-MSGID: =?utf-8?q?1756174696273984670?= |
Series |
nvmem: patches for 6.3
|
|
Commit Message
Srinivas Kandagatla
Jan. 27, 2023, 11:16 a.m. UTC
From: Michael Walle <michael@walle.cc> Commit 6a80b3e6fb41 ("of: property: make #.*-cells optional for simple props") claims to make the cells-name property optional for simple properties, but changed the code for the wrong property, i.e. for DEFINE_SUFFIX_PROP(). Fix that. Fixes: 6a80b3e6fb41 ("of: property: make #.*-cells optional for simple props") Reported-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Michael Walle <michael@walle.cc> Acked-by: Rob Herring <robh@kernel.org> Tested-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- drivers/of/property.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/of/property.c b/drivers/of/property.c index 8d9ba20a8f90..95b838185b2f 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1202,8 +1202,8 @@ static struct device_node *parse_prop_cells(struct device_node *np, if (strcmp(prop_name, list_name)) return NULL; - if (of_parse_phandle_with_args(np, list_name, cells_name, index, - &sup_args)) + if (__of_parse_phandle_with_args(np, list_name, cells_name, 0, index, + &sup_args)) return NULL; return sup_args.np; @@ -1256,8 +1256,8 @@ static struct device_node *parse_suffix_prop_cells(struct device_node *np, if (strcmp_suffix(prop_name, suffix)) return NULL; - if (__of_parse_phandle_with_args(np, prop_name, cells_name, 0, index, - &sup_args)) + if (of_parse_phandle_with_args(np, prop_name, cells_name, index, + &sup_args)) return NULL; return sup_args.np;