Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp575310lqp; Sat, 13 Apr 2024 09:12:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdgyB6IP5kdrmi0Jh4OmN3WaC6BR0hw5BSNEbnFzSiqsFh1CPPQnlAWtws8hmZXMjiDPQfG0GyAPC+l7+3r7ZSWMg7g1XxH/F8XF+xpA== X-Google-Smtp-Source: AGHT+IFnD4kOVSN7xBYGNVlopb6mnBr1Q3Wv10oVQHwuvhfyQJmeqalgLnIY2SPz6adHcfYGJiYY X-Received: by 2002:a17:902:7603:b0:1e1:a54:1e44 with SMTP id k3-20020a170902760300b001e10a541e44mr4579408pll.16.1713024756841; Sat, 13 Apr 2024 09:12:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713024756; cv=pass; d=google.com; s=arc-20160816; b=uoTeuoOgZ+xpyeRVqMt2KSDVa2FxsFS2+Li3KQl0NQbBE5s6aSQS84ifIoAtIL7R9p FWwZWnaKAyZLPfnKKOfAypirCKBfwsxSHM6w5i5Ysm3GZEgOO0H97xlqPxT1d9rcVJSc 68/vnJX0EswLTh/hkLwf9C/87D70PgGfvKHW3RWqOcA+YWTvrK6I5BQEWKQTG/fE9zxM EpkGtyGHidX8f7r4sxGIM+SN7Lst1A4T9Jre0XoDGsc4QC4lcPZbmIHXCjy1DzApYDR0 N/gScKbYDm5qSeMqSbnaC4YRdghAjeIPYwKCxTCAfI7DcnuOhezVX65g9S+BHMHJhpA/ Aqtw== 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=/TqiQYvQtaAWJrlmKdPjCIdhGWR1T61s3laJi5/3WAE=; fh=g30T3EQDlf+wsQLcWqyCXg240wWEzfk6Tq+Nxk0yHxQ=; b=MW3hFz41hrTMxwkWUhAcXCTbzGWY6gzv40EfJpN5gqxeHzEZrPgoCARl1uhfGSmy7H 0OmX+4tu6ULVuW34yQKpxFuOflnznBA6tftWCqwDQhJRMZcN2wfVNkEtJWCTRABJLckd D6+s8S8AQao1Gf0RQ4VQwqQAG1BGskZJ2fpwLljFFh2vXK/15vUVfkLtIDyREU9KwOwy c9IZqNBaYDxbDP9XLwsMvpwViuO5R0ZeQh1RBQCmBvr6yTCBcz3KNlj4NNGtDAhtwVhK NsItl4443ieU3jigv3TUWq4Zx4i7SHG9UhgYzTFNt84goT5gLikEHeWL28GGcXVoU4B7 z5/w==; 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-143801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k12-20020a170902d58c00b001e226dec5bfsi5099708plh.486.2024.04.13.09.12.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 09:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-143801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143801-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 808A3281FAA for ; Sat, 13 Apr 2024 16:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11E244CDE7; Sat, 13 Apr 2024 16:12:28 +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 7F7193D977; Sat, 13 Apr 2024 16:12:25 +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=1713024747; cv=none; b=HLNFF5W5uuV8RyVfd9wEWHAH7b4yBcyHGFV5TBM7CZCfQ0Bvpm8sgw622vyifwLdqDObtBplrg/eztNLC/gDSig/xTN827m89kMCf0fbjrsT5gaI6Oi2MRN+j2cpunaDupFxmvSPjatupmvoiYdsgX80m8wtNsn/JEwiOubT3rU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713024747; c=relaxed/simple; bh=x7hnoxzbJJ8qgfqKZBiZef7nuauvPUSisikz1nzB9DU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xp8VJ3m2Wkcl8JcBIaN1qNWl6wz7DyPiLTDQFjPayRlV1dExCz077mQ09N2iuLQw8v9+9XGtjeKnngcqSQ9JSCR8keP2s3CVYNP8JDlBllX6h1aGKNKaVVhAoKDbKKZTMHJ1p+0xx2Csw1w9POEJvvpLbCOGvcLQKy3WYv+1d+E= 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 9046E2003D6; Sat, 13 Apr 2024 18:12:04 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id 9349040039; Sat, 13 Apr 2024 18:11:10 +0200 (CEST) Date: Sat, 13 Apr 2024 18:11:10 +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: <45eea851-ed28-4066-8bc1-d04acf4021f7@linaro.org> 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: <45eea851-ed28-4066-8bc1-d04acf4021f7@linaro.org> On Sat, Apr 13, 2024 at 05:49:13PM +0200, Krzysztof Kozlowski wrote: > On 13/04/2024 17:23, Etienne Buira wrote: > >>> 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. > > Hm, indeed, then I think driver, so > aa1fdda8f7ebf83f678e8d3c2ab4f1638c94195f, should be fixed. Otherwise > please say why binding is not correct and driver is good. I tried fixing the driver first, this was discussed here: https://lore.kernel.org/linux-gpio/ZhptEWb7tD5pummq@Z926fQmE5jqhFMgp6/T/#t you're welcome to comment. I have no strong opinion over what should be fixed, i just wished to shut a spurious error message, that i expected to be straightforward at first (hence good candidate for first kernel patch). Regards