Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp451252lqp; Sat, 13 Apr 2024 04:32:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWsfZIdZwyQ8142L+3/Ut17NBvh7xOQbt7dqrZVr7y65KfBl2QIrkSb6IS3f97iW5X0JpJe3pjCg0IwQNNJ0tzkrM9Y3/rn16JoNWMOTw== X-Google-Smtp-Source: AGHT+IEK1VXnGzjBKXrxbkcxzVHF8MoirBz+C6IobO6jM4XNqlUZ8oHkjQKezIrOLBau1IwDLI7J X-Received: by 2002:a05:6871:580d:b0:22e:c405:ec76 with SMTP id oj13-20020a056871580d00b0022ec405ec76mr6304240oac.20.1713007964664; Sat, 13 Apr 2024 04:32:44 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bm39-20020a05620a19a700b0078d60c72e8fsi6445522qkb.563.2024.04.13.04.32.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 04:32:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-143722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143722-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 5F3931C20B49 for ; Sat, 13 Apr 2024 11:32:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931FA3FB09; Sat, 13 Apr 2024 11:32:38 +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 78BAA14265; Sat, 13 Apr 2024 11:32:35 +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=1713007958; cv=none; b=Kan3Lj4VOHDxpkKMVitNao/S/5RRm9eMYxK+12BXYnD6NoFgBsAHSMJlUGbD+tAMdvsxkee/BWDn1pldgvobeprg9ZI1S8HbjLmDiM4NBD2AxuwsJmfM8IKvqbmZPadp9hq2t7m2F38yCYOmaT12UmT8rjjGjjHpW47c8f7CR2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713007958; c=relaxed/simple; bh=Z/ckyqGb+pytaMUSxcubIfiijffJM/OYK5XFNgCxCYU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mEgXPAxWZX9N5/UGBkNETk8boqK4/RQKha1WjdbPvmJscrLlM+/W0BM2sp9aug/tshkCmTs/AjhiWzE/PFG52Gt1b40/l4N6lcWKYAVypKsO7xsDh9RFyfot5uuCGSKhRpu3xLzncD1cgJKFttv0YXfbNv0lcQfePjMePZ34J3U= 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 8D48B2003C1; Sat, 13 Apr 2024 13:32:24 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id 35A0D40039; Sat, 13 Apr 2024 13:31:30 +0200 (CEST) Date: Sat, 13 Apr 2024 13:31:29 +0200 From: Etienne Buira To: Linus Walleij Cc: brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][RFC][resend after bogus] gpio-syscon: do not report bogus error Message-ID: Mail-Followup-To: Linus Walleij , brgl@bgdev.pl, linux-gpio@vger.kernel.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Apr 12, 2024 at 12:44:34PM +0200, Linus Walleij wrote: > Hi Etienne, > > thanks for your patch! > > On Thu, Apr 11, 2024 at 5:35 PM Etienne Buira wrote: > > > Do not call dev_err when gpio,syscon-dev is not set albeit unneeded. > > gpio-syscon is used with rk3328 chip, but this iomem region is > > documented in > > Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml and > > does not look like to require gpio,syscon-dev setting. > > > > Signed-off-by: Etienne Buira > > X-Prefers: kind explanations over rotten tomatoes ./.. > So indeed the parent is a sycon, and syscon_node_to_regmap(np->parent) will > be used to populate priv->syscon on RK3328. ./.. > if (!has_parent_syscon) { > (...) > > What do you think about this? ./.. Hi Linus, Thanks for your review. IIUC, that would prevent calling dev_err() if, for example, gpio,syscon-dev were forgotten from arch/arm/boot/dts/ti/keystone/keystone-k2g.dtsi, dspgpio0 node although it is needed and would result in funny things without notice. Thinking twice about it, a cleaner way looks to add gpio,syscon-dev node to rk3328.dtsi. I'll send the one-liner to relevant people (that would be really easier if there were only one repo, with different branches...). Do you agree? Regards. Note: I'm not subscribed to list, so please To or CC me.