Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2090860lqo; Mon, 13 May 2024 07:40:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfyOWFSAqzOQq5y/c2e7i60qg4ueyDddXi+nV/9HfqM8EKGXeJFM21WnZMghpVzYsQS0n4SoeeTa66oO0lZQWoFNzLHyOvWlstodlaMQ== X-Google-Smtp-Source: AGHT+IG769zn6DFCXbX8KXGkiW7SXDMlgiXPQ1vxXyaU9tb2M2UW52NUMT9b/5cR27z/2fPLfSvy X-Received: by 2002:a50:d684:0:b0:572:a13c:30ca with SMTP id 4fb4d7f45d1cf-5734d5de823mr7030537a12.20.1715611244282; Mon, 13 May 2024 07:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715611244; cv=pass; d=google.com; s=arc-20160816; b=Pik+3LeST2uJDrM33v8ti/txxZUkP54PPzCJWspkeT39whzkwHYYzYzXSvW8HUwWFe 3QozqXo6oRHrFGQ9O2uL8e0qkapf5jkBqDAQjpOzxFln56vpk6U8SkXCtIJ7rMg02BR0 2XpgsewXxEHtssDLZccAi4cloOdDcIZRzo71WBOeYQ2wypDRjw1lgAIY/sOuVuHq7P2L rkLqz/4n3B6FXcInSgMmbfN3FyXIfFtAq1g8mHrOCmIY2RDkiz9pWOfFMPl148EfGKMm P/ozTqZCWDmjH71yWade6D67x43CCkuMxmRwStINlnJV2JFv0z33aCThXFwpoOUo+ExZ 57bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VJZwp0seGlB/jzhkQ5Y+HidZv7cCxncq0/tJbVWAKEo=; fh=biFKv3oGlh51EPX7TjrvUZBPuuBTO/PC4XnGIwxg0vI=; b=Y4prOUK45MfDLEmol9D6SIUt2oyKcQDIBfs3Tx3X3Y9SgkFUb+MuCoahMKVRIABc6k GQ/jlNJCQk3vsVPbvvoBBjL2OYURSx5qozeICjFSYSsmoAFPROaysW4p7Prwcf+axm6p SqpgAcPCYMwb60BoLt9YvROHr56YWlSATy6gyd3NHDflzUSAaFz7geazDklJjpz3MgyB J+QQJi63JoQZgTyHTUoX7WRjsTpqkfaTF25uyYqEKZfdU9Kd1CUpPx7QZSiHRhykE9os HxkKSu7xv+9t+hdxkhWU6zI934tmnZzNphDuFjT9ubePkbe6RCU6sMh8/0/cxG5m4nqW 1Cyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xAPw15O0; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-177703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177703-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733bec15c8si5220269a12.167.2024.05.13.07.40.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 07:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xAPw15O0; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-177703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177703-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F26C61F21CCF for ; Mon, 13 May 2024 14:40:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 672252594; Mon, 13 May 2024 14:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="xAPw15O0" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B94431865 for ; Mon, 13 May 2024 14:40:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715611236; cv=none; b=X5lNwBuxktPRVVVdXXfpKjvXH/WsBpkWlneSJauwXDCh112jwi10Fy6IBPlpIswSdwNF0q5KbqQRJyFKXMGIfDMp7QLmKisk8a++xdo0BrUyoQq3y1pYBInqROM9ou+IC34z5qMDWMlORtdpX1h1vq3a0k1kk91V5rwOFq8NAo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715611236; c=relaxed/simple; bh=RR+FvSe6PreSIlJJZUiEFi2zgORXY/2RQNOZhVNzURo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=k993xpnjd9FHaipWlhvnzrVEyO8Slr03CBK7VTuQyDhahQdA35ooGyreZeY7VzLpCKL6fomjllhH+e8MUQoL3X1dcqYMDlXOLhNIAWxnFeoOuBssIpvaxcrkLOYB3KpurxU3cLqHqIKK91+Fs+ahn6WMLTBIzpOdeIW1MsD1/3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=xAPw15O0; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52192578b95so5079395e87.2 for ; Mon, 13 May 2024 07:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1715611233; x=1716216033; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VJZwp0seGlB/jzhkQ5Y+HidZv7cCxncq0/tJbVWAKEo=; b=xAPw15O0QUSMYye2skVlocMAQB7F3uTyvqBKsV28QsvvkzO7NNOBk1dntmQOzkzW8k xP3v9KsUd7xR6K4uA/Q3o0k5AUDloe316IPLcknkgx6gwQ3dfrpSd659Mv3Xtredai48 RZjZ10ZKC2C0OF+KV4YmEngIkcO4CL2uxxC/Z3SIrJ2BeIMuRaN/CfACC7h03SpGJfDG tZA/WsSl8fA79RnuEjlnhW+M3cWzqZZXfvS7thKlNQTnbY+rdSinKCOqMjLStDDDfu0O MlZACyxN6jc1FADEgOmQ/nOOZWKJ9r57q7p2XTl2pqjFXOChojktHoVk79M9lkaBNqhU gZ0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715611233; x=1716216033; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VJZwp0seGlB/jzhkQ5Y+HidZv7cCxncq0/tJbVWAKEo=; b=GdP/X0jmnWsgB/P9B5r7qnIXzCB9/UwjpWBopG6st4mRbbezkM9e2edwgHZ5UiRkwh D0vIR4VdZVDgsN85pSiQnZa9R9HGLoIs30uL+CZVE9UkyaTewCc8QxrMdbcIGDwdz7lL hOe2ecRN7YrA+9x3qPFcUtXB8Mev+IEfHoEMl+BKLPFzAyUYwQaDOMSUxAmQNMQxGi4T uDhLw01DDGGPLuD3Ud1tj5BnDQcW1C6P0SKPvwqVyPIrhCP3iSZykW5ON02MVTtuJVJU u3ciuw/fORc+95lycxww49ZQazPj6Xp4Gxoti32Gp3hg8zmN4GSVPV9tP2a2s3CwVUGI NIng== X-Forwarded-Encrypted: i=1; AJvYcCV4hfI9zQb+weP4BudJvVk0HL8GDPl15XKcDqNOjPmBFN6NfAIhWOMm5hLLNrbUptXkW0oz11aKGGK5zUD3qHWzQUiVcALqN1D3nMLv X-Gm-Message-State: AOJu0YwnllbAHFhfeCZE+nkAZVg/kvUfIYyWmdwLsoknyBooTXzaeHyN 3v9IANFrd1kDHNuqshJjilIfe0vr2IR1MaQJkcmmqQxwlOyQ/Jrz1ZaTCzpTEgR5ZMJBxbiD2XD 9ehqeYNAF7k/SsgZNanLSgCydbzPBKuC2gnpf2JIUOWWdGE8LXv0= X-Received: by 2002:a2e:8949:0:b0:2e2:1a8b:e2f with SMTP id 38308e7fff4ca-2e51fd42b4emr64871511fa.2.1715611232847; Mon, 13 May 2024 07:40:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Bartosz Golaszewski Date: Mon, 13 May 2024 16:40:21 +0200 Message-ID: Subject: Re: [PATCH v2] gpio-syscon: do not report bogus error To: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, etienne.buira@free.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 19, 2024 at 2:35=E2=80=AFPM Etienne Buira wrote: > > Do not issue "can't read the data register offset!" 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 require gpio,syscon-dev setting. > > It has been suggested to automatically detect if node has a valid > parent, but that would defeat the purpose of error message, for example > arch/arm/boot/dts/ti/keystone/keystone-k2g.dtsi could then be used > without gpio,syscon-dev, and lead to funny results without error > message. > > It has been tried to mandate use of gpio,syscon-dev, but that raised > objection. > > So while this patch may be kludgy, it looks the less bad to address > the spurious dev_err call. > > v2: > - changed flag name > > Signed-off-by: Etienne Buira > --- Linus, Do you have any objections? If not, I'll pick it up after the merge window. The patch does not look very clean but I cannot find anything obviously wrong. Bartosz