Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp556095lqp; Sat, 13 Apr 2024 08:25:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMlTugYjKnsluZmtTVFEfq1g95MIxo4gb1hDgg6jXd5P+DOHkiU6SYC7FTqT5+zWzpUSOGUPPBTaNqQ2Siw/QHTJsC6vixZ+RKi0YJHA== X-Google-Smtp-Source: AGHT+IGKwzgMU7BAZ6Bs7HwqVEIuEf1+TltlDXk1dryQeAf8pPYl82/0iD1vtTDlumtCBQIk1JMX X-Received: by 2002:a05:620a:450c:b0:78d:4c91:55c9 with SMTP id t12-20020a05620a450c00b0078d4c9155c9mr15907402qkp.31.1713021917857; Sat, 13 Apr 2024 08:25:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713021917; cv=pass; d=google.com; s=arc-20160816; b=dB7z29dCHSJ7DdBimQx+mdSiL+YpZgfaqgVeAdqazcy26MrLaGzcuLYI0OZ/+ODoEw x2elMxQOCVv/+T5yMc+U5PtTEHvh/Lgg7+IQjPEwrozr4XVzBYZ0aQm2/zuyostJO8l2 NHREAlr1Ut+J+Zj4zbOJWcw+lJySNvAyja9lef3043xUCPDDbaDRvRUowQtKrSoclCce kb22yzwSgrv9KtXfuMbHyzmZptFME6cPjxU0u3qZTWw1+EnaQULLoPtHPcWzAziGBTA7 y7LlrclDProesOJChGGLeHP/NrQAuheGkIJf3vRaMqjeqHnsO9cDq50k+6nIA4TNrtfO yQYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=9sBA6OSL4OE4ADcAh7BPzLglM2ERuROzObHBuaJw5b4=; fh=g30T3EQDlf+wsQLcWqyCXg240wWEzfk6Tq+Nxk0yHxQ=; b=QXYI4DWzs2o/sq4DewkeuXUNJVG52RaFiqF+86gWjZR2WGQkll0TncAfisPI4KAo8D bNXlSXJEyB1Ovs2eI8GSozRe75AlaHPhvieRpgwD+L0zPTxpTipfnK5pjuqqwvupF/4v M5yKKis2rkt42CXSLTrE1VHBCHn5Tvkn4n0cYbxqFgxGfVeL1Di7Y50I7LXbCNM3VvOS WTnTlpOnr0XJHQe9nKvzcmlJJrMzDtYhZimA3zDWE3ERIeIvFpAovEbc0camikL1PWGG 5d5zl8FOdKDsz+Exy7Vpv2pa3sLFpH7x1xtKXw29rUFqlUpVZr6LGxSSRZdZTH9cxSTa 9QUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=free.fr dmarc=pass fromdomain=free.fr); spf=pass (google.com: domain of linux-kernel+bounces-143780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d21-20020a05620a137500b0078ebd9460d4si6026568qkl.297.2024.04.13.08.25.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 08:25:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=free.fr dmarc=pass fromdomain=free.fr); spf=pass (google.com: domain of linux-kernel+bounces-143780-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=free.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 41A061C20B50 for ; Sat, 13 Apr 2024 15:25:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08AAC47768; Sat, 13 Apr 2024 15:25:08 +0000 (UTC) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75FE545C1C; Sat, 13 Apr 2024 15:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.27.42.2 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713021907; cv=none; b=YRzmApCbiNCp7kAYMCDcSMBMNjis5mb5ut6LTq8hAw5R+9kK5zLar0nlf/DqtpXNssy2nmfmQZd3cdCGFxfPFul+xvG5G0Ywm1z5e2uZZFY5RjHCwUcfxCGWvVNae2j/uHx4M/UCJSH7RdrpwQx+SVOV3CdeqbO6OXq9oVT0R0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713021907; c=relaxed/simple; bh=c7ntYBHFF2eWlWyEZXlqIrZDYsmFA2CHB5sWZvsVvAQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HLOSfDjRE7MPxpDK72fnJO78iK0E88w234KQUQzvf4ORVb611LKICx55J88Xfe4dTv7cHhtQwllshv7vFihQxs+fy+Dtttt+UoQlfMhLEHkt5abtt9aT9yaCu6JNzyze5prvNEKwj8Md5LItjgtLTwJz/mSfM+9XreH8+qzUMU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=free.fr; spf=pass smtp.mailfrom=free.fr; arc=none smtp.client-ip=212.27.42.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=free.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=free.fr Received: from localhost.localdomain (unknown [82.64.135.138]) by smtp2-g21.free.fr (Postfix) with ESMTPS id 7E63920039F; Sat, 13 Apr 2024 17:24:44 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id DA82C40039; Sat, 13 Apr 2024 17:23:50 +0200 (CEST) Date: Sat, 13 Apr 2024 17:23:50 +0200 From: Etienne Buira To: Krzysztof Kozlowski Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Dragan Simic , shironeko , Etienne Buira , Jonas Karlman , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Avoid error message on rk3328 use Message-ID: Mail-Followup-To: Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Dragan Simic , shironeko , Etienne Buira , Jonas Karlman , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Krzysztof, On Sat, Apr 13, 2024 at 05:09:33PM +0200, Krzysztof Kozlowski wrote: > On 13/04/2024 15:56, Etienne Buira wrote: > > rockchip,rk3328-grf-gpio is handled as syscon, but syscon mandates > > syscon does not need such property. I see it in gpio-syscon, but not in > syscon. gpio-syscon, indeed. > > presence of gpio,syscon-dev node (or it will call dev_err() when probed). > > Correct rk3328.dtsi and related documentation to follow syscon's > > expectations. > > No, look at gpio-syscon driver. Parent is used. Parent is used, but the next lines are: ret = of_property_read_u32_index(np, "gpio,syscon-dev", 1, &priv->dreg_offset); if (ret) dev_err(...) So if gpio,syscon-dev does not have at least 2 items (or is missing), dev_err will be called, 3 items for dev_dbg. Current tree displays a spurious "can't read the data register offset" message. > > > > Signed-off-by: Etienne Buira > > --- > > .../devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml | 2 ++ > > Please run scripts/checkpatch.pl and fix reported warnings. Then please > run `scripts/checkpatch.pl --strict` and (probably) fix more warnings. > Some warnings can be ignored, especially from --strict run, but the code > here looks like it needs a fix. Feel free to get in touch if the warning > is not clear. Will do, if we agree on the interest of patch. > > arch/arm64/boot/dts/rockchip/rk3328.dtsi | 1 + > > 2 files changed, 3 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml b/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml > > index d8cce73ea0ae..2c878e7db900 100644 > > --- a/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml > > +++ b/Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml > > @@ -38,6 +38,7 @@ required: > > - compatible > > - gpio-controller > > - "#gpio-cells" > > + - gpio,syscon-dev > > No, not needed. And also incomplete - where is the property defined? > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. ditto Regards