Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2275596lqo; Mon, 13 May 2024 13:08:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlHzQeJBkNvpeCqR6ixrWsx1T7y7auUYQ4PLHIFGNtDo/CF4TCeXrwWHG9Kux0CMm8KxKHFn9nBKA/Dkv9MfKvw5VMaNRGwEqZv1qFNw== X-Google-Smtp-Source: AGHT+IFH7ThDP+mgb70lcelTMWu+j4KTkh85DM8XjDQnRXb8nJr8W5ZkryIA4GSE1sex9En45tvc X-Received: by 2002:a17:906:1d59:b0:a59:bf27:5f2e with SMTP id a640c23a62f3a-a5a11682723mr1105980666b.20.1715630934714; Mon, 13 May 2024 13:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715630934; cv=pass; d=google.com; s=arc-20160816; b=vk7y5VSyGRlpV0LjykABqWYdwNSLP1+kc3vkljGc60X9rdz1tWqCI7Trfbz22nuSiS fX0roCfSJk95AvGrCQ9EFqwUVIOgx/bBBVLmKUQ+lEeNnszs48OOY+bFMIZarUQMgKfE j3NfMF5UJezKPrLcYMqbxvrOQ0T/Jx8/HcKlQLiYGLJ01OticA+yuw2FjGgWR3jVYhC9 3Xwq9KwnnOrJt5ORAvuJs+3o39YRpiU5p7DCE3ijZlGQWFHQx6DVQeqtwaQMIMA3Dan0 fs+tF3oOQoxIghdZp7omZlJwU3I9Pdu/oueNw3rlKm4gw++YVTV1rETF2KLs9Vf3pFsz UfjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=g5A1GoMGEwyA2ur0YkX2d7Zm3EGSPcQafJ+kxduRrTg=; fh=0s3iR7O4j2YN/+mY9RImSUiG0V8+DF773KnpFFhsYlA=; b=Q75QkPwkg67KvDnm8XpC71JM2/Kj77Cqyvz00a6LM/maS0mvtkOMFAo4Mb9lmx6pGz EXg4PFyDdlc08nQ6hF3zYO8pRC6kO/VBqWkIUaBF9ooMxnZSJN4uWVyNHbj8zBFZUUhg 1EqZUklLWkMnPKHcaBVahT3VmaHvzGoBhFUgZ7R9S0TnGma4zxAsr2z6lr6lZojAe6p3 Rgn/hnUM/q4WGMzXkNUT6rbusH5bHpIaFqdK9AZibJKStPSn9mAjviAhjuUPNwoC2iiY wo+9CFHWuyN4/a7zfilEq0XlKQpo0LZCGMxQNUlc1jz2QkeFWkip3Uu0ncHGNNqBA2FE Ld0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xhFE4XTS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b3673fsi516083466b.445.2024.05.13.13.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 13:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xhFE4XTS; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 72F6D1F22C14 for ; Mon, 13 May 2024 20:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C90E47E56C; Mon, 13 May 2024 20:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xhFE4XTS" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 82C867CF25 for ; Mon, 13 May 2024 20:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715630924; cv=none; b=Crl4Gaqt669Sbl0knUYSD43GE5XkqXT3E4XyBYPXa7ikCmEd5TjrLGN51pVzuZrSaVIkVH5m8Kjjq5jn1xXxKsT/GtPIPG1dMxZ+hvkDiBhxRHKGYDobpt9pqMDoSLB0TCRdpBNOpIvNCOXlkbmqCj8VcxXgVLvBdcdS78hTRxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715630924; c=relaxed/simple; bh=h++qaq6zP9e9LxDlnuAEc9H3qFDQRQ6CLNWg+o080RM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bztQgTnjtOtg2+2X54pAYl4gwcvGmo/tT/KsCbJjKJ9BkYMAOQxp6kiRyglmRiEjSA8IzuOVbm8EsiB/N/xetJB+GtL7MmvjMNf8givH9RV/1I/aBc6WfxdOolSLTRZe3e7or1ncmgHRhAt7B07fIsZdDPr29pgCLY4ifUkWrUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xhFE4XTS; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-deb5f006019so5177274276.0 for ; Mon, 13 May 2024 13:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715630921; x=1716235721; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g5A1GoMGEwyA2ur0YkX2d7Zm3EGSPcQafJ+kxduRrTg=; b=xhFE4XTSVGIPB7F5o9ruoD2TkPg8Wapvtiyg6ceDzXX/Z4LfHip5eAPQ54jpO0WGAo Zz/BifMuILb3m7o8xNWq/khukXD/li8i9MQBxqXQKk6fGBIeDu1Mgoc45DJq71WeA5NU 5TCHiqsBJV3HULLZQhIRWR2c+B/QBRbFKYEeLXLjHNAQ666FuzcX6vq4g6fabRWyWDzt 7ms8KoQ39ZMhWe4fdsA7+4rKMKFNYLp5boqVbiYeZ0KJ5ONbVft0c34iuw514faYHvVv iDoCLPGphxJrfnqWA7tI/cSXjodqliBB81KmxO1TPJc+nxrgWWoIDny0zPOctgzd1qVH u/gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715630921; x=1716235721; h=content-transfer-encoding:cc: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=g5A1GoMGEwyA2ur0YkX2d7Zm3EGSPcQafJ+kxduRrTg=; b=UXKXxWOuvjC3CGvELPtamX9hGcd0bu0qT66YytK2jEKnXNmIfz6ca32/2PJZySSk0K HwLmY41/byRsTc3dIw+pFTFcyZQnH3Tcrp9+hv0L41FcmnqJ7DfaXLbfPbE25wf00v0D iE8uiMXAQMMU5iwppN8TpM0fcY6IVrl+WLh8oDk3FJFBArdDp0c5e6U8oB5mWG0+NIZ9 H9LUan5rxk4QNIX3KfjIDnSPOLdiGG4O8B/OsU5N+RuUPPWlUP+gwkvKKKXhAbe5yqvh h26tmaT8/CuH09ViTrzn+n4BcIpBIBdnUC9YcpIhdog+AGVfVV5TuVCKZtoomuuw5KK0 S1/A== X-Forwarded-Encrypted: i=1; AJvYcCUrIP+QNgvTB7/x3B/gG2z3dcg/J3zAFDI0Bh4JlEM49dDilayTy+muuOfMS63u8vacmGjnyVqyPMPatEGM28oU3gyvL7BdGnX7tbeO X-Gm-Message-State: AOJu0YztRB4ukzH0d5SeCKcI7h2MUr8Lxg3OQUPIC+p23xf/yPdDP7io Fhz1oHuwW/3WZ2r9X1jIxDDz/JlCfKhI69s+Lm612Up0k9ttLY9mazvKTccUNAnBiQ+ttE7hEps wSxhZKNBuVx2yenM6pduNMbyIwJG7XW7L7cVzGKYy1l1oQTrFGQzUmQ== X-Received: by 2002:a25:dcc9:0:b0:deb:42d2:c299 with SMTP id 3f1490d57ef6-dee4f37b967mr10928052276.55.1715630921527; Mon, 13 May 2024 13:08:41 -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: Linus Walleij Date: Mon, 13 May 2024 22:08:30 +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 Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Krzysztof Kozlowski , Conor Dooley , Rob Herring 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: > 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. Now the DTSI does have all these gpio,syscon-dev pointers so this is just a theoretical problem, right? The fact that someone can write a DTS to shoot themselves in the foot doesn't concern me so much, there are many ways to do that if one wants to. > It has been tried to mandate use of gpio,syscon-dev, but that raised > objection. I don't get it. In the example you mention it is already mandated: Look in Documentation/devicetree/bindings/gpio/gpio-dsp-keystone.txt Required properties: (...) - ti,syscon-dev: phandle/offset pair. The phandle to syscon used to access device state control registers and the offset of device's specific registers within device state control registers range. Apart from the obvious spelling error (should be gpio,syscon-dev) it is right there. (The spelling error is a binding bug, patches welcome.) If this binding is converted to YAML and the property renamed properly to what is actually used in the device tree then the schema check will even yell about it. I don't see what the problem is to let the driver just look for a parent if gpio,syscon-dev is not set. Yours, Linus Walleij