Message ID | 20240229-mbly-i2c-v2-2-b32ed18c098c@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-87243-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp586445dyb; Thu, 29 Feb 2024 10:12:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWf5yu7Q5yYQ7GPLrHRr95LE+Elr1UjafnJ+jeXcFdgM+dafcdNbXAsJ4EzVjm9RvbuNnTYEmX7eXE61suvCaoUsCzGMw== X-Google-Smtp-Source: AGHT+IEqw2LWoeFLJ84lDx78jTExCOHJcQ/K6MO0LWgGGt9/2TlIXn2Uhde8re5Q7KHK+EFdcTZO X-Received: by 2002:a05:6402:22da:b0:566:414d:d70a with SMTP id dm26-20020a05640222da00b00566414dd70amr2040265edb.23.1709230325961; Thu, 29 Feb 2024 10:12:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709230325; cv=pass; d=google.com; s=arc-20160816; b=Qw7RdYHfc8IAjaRZRb4z9jHrAB2oV+WJadaruIzpvxxxub+oTC7NB2xLC60nwfB+Pw nkz9pNcb0N7ESEeb4u2o4wZKQSEs50Bq4CZEpinHb3TB/FllbwtQAqa8bZSwEobTx6Az cIlmK8/D7KD6oUF93435sCRRGpD7wdxZjkwt4AB07/ROFxHi91X+8nDN1KHC8ERScYfP JEQhc8hlSjCgLO/RrwKgILdR66Y/5a3G4MK1hzHi7ovOrzCVozIls1AvpEgi8SqPklGo 03AdnQp7VRGZiaxHX52ql3kCPnBk5qhPtugrVzMRTOmQZ7a9Xjok6y1NJwTCfDcgAxzD QGDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=4fOFj5dg3K7TaQX64fGwyCGx+GtP1xlvjO5rwEKu6Ic=; fh=31k+45L1SwEhGwS8rEjMWL8LSxFM138EMuFf+H9IW98=; b=i3eADvFvz0O1Dstv9OKDGgkTAUEOVuj/GC3OlGyrMhKgPS3+4I+5leqky9JJBTd8GP 0X7Xll8k/cwRag/HpPqizqo3GrvMXT1e1iAm1Saw8uDZ/U84qpmnZYMj9P9epMadTrQv 86gHZDQAJylOcVskglKI+K439gxVn8CRcqWBD+aRpr9xsWRYoZuScyMVK0bdUEpfYMlV i0k8EJyQ823RYBcs6u2QjnKEPehVpYnqrkbe0nIwAb/Ll/kyYtH1CUHaXKJFhPyV5E4D Pn8VDrTOMHHu5rpp/Aa4VFznn4VO0yWT7pU9A2k9uxc2xKQYfd7kvLN2sqmXL47Jwy47 z0Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eMuCMAFg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-87243-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87243-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r11-20020aa7d14b000000b0056617d528edsi733127edo.499.2024.02.29.10.12.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:12:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87243-ouuuleilei=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=@bootlin.com header.s=gm1 header.b=eMuCMAFg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-87243-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87243-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 0C1B11F2465A for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 18:12:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3541C134430; Thu, 29 Feb 2024 18:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="eMuCMAFg" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 9308B70AE4; Thu, 29 Feb 2024 18:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230258; cv=none; b=equwyvw3GpItlNYBfLGLnLzZPri9l+gXlOhOfNth8Tvw4rhsOrZB/ZkExnhNtybadSe7cgKFeHYNUN69E+MYIoRYXdYN+PCWf0IDrQxHj1GXFkxcZGysOidl1hTN8MssQvJHTHMSjYIwtuRLrsebqWRpcprgbNf/khzliFggSCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709230258; c=relaxed/simple; bh=miJJTTkCiPwGMNDF2KARqHikECescd5oBPrYE3A6WQk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mJPbbukeC+MbXyCCX/m5/RCwhbUypt1ekzapLknHbFWeiMt/qsbN623csTqF+Hjm2nASHSAU+Mbwn2jCr7V4TpCuGK2dlzSxexLRfn6LqR9xLfKMSJdqzRU2X+Ib+a4nLoJzy0GfUMRRi53BdLz2mzmBhLvCa9aZueAE+yQ183g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=eMuCMAFg; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id F1D0860006; Thu, 29 Feb 2024 18:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709230253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4fOFj5dg3K7TaQX64fGwyCGx+GtP1xlvjO5rwEKu6Ic=; b=eMuCMAFgafsfwxncHS+aZQYb277Ijt6BWHsbu4zyWZyARHQTCi+3AeaodO9iC0+fi4pNIS dD0CiWXjwEy/qQyPZrvLG/tdHyEFw2B54c8PwDhiAd7fEuhNpFwvMBJmHlyVc7ZbcGAMPl QLVgN/5YRxCz+kxpoX04mQo+B9m+vgnPUdJ9i3gzZ9mx101MgOvMW+5I8kPceElAG6g3f5 RojWpqWe8s5aXI1K0TpnueUCFVgklQzR3A9uLfOa9a+JNQY607m9qI57zu6S8RUlJZFUiu icZEz643p5Aq+kAGuJUaZRYLHE8a85OQJ0r3d8vUFfR8ApUyyqlsiXGtHEGbuA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> Date: Thu, 29 Feb 2024 19:10:50 +0100 Subject: [PATCH v2 02/11] dt-bindings: hwmon: lm75: use common hwmon schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240229-mbly-i2c-v2-2-b32ed18c098c@bootlin.com> References: <20240229-mbly-i2c-v2-0-b32ed18c098c@bootlin.com> In-Reply-To: <20240229-mbly-i2c-v2-0-b32ed18c098c@bootlin.com> To: Linus Walleij <linus.walleij@linaro.org>, Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement <gregory.clement@bootlin.com>, Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, linux-hwmon@vger.kernel.org X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792257898211667538 X-GMAIL-MSGID: 1792257898211667538 |
Series |
Add Mobileye EyeQ5 support to the Nomadik I2C controller & use hrtimers for timeouts
|
|
Commit Message
Théo Lebrun
Feb. 29, 2024, 6:10 p.m. UTC
Reference common hwmon schema which has the generic "label" property,
parsed by Linux hwmon subsystem.
To: Jean Delvare <jdelvare@suse.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
Documentation/devicetree/bindings/hwmon/lm75.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Thu, 29 Feb 2024 19:10:50 +0100, Théo Lebrun wrote: > Reference common hwmon schema which has the generic "label" property, > parsed by Linux hwmon subsystem. > > To: Jean Delvare <jdelvare@suse.com> > To: Guenter Roeck <linux@roeck-us.net> > Cc: linux-hwmon@vger.kernel.org > Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > --- > Documentation/devicetree/bindings/hwmon/lm75.yaml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm75.yaml: Error in referenced schema matching $id: http://devicetree.org/schemas/hwmon/hwmon-common.yaml /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm75.example.dtb: sensor@48: False schema does not allow {'compatible': ['st,stlm75'], 'reg': [[72]], 'vs-supply': [[4294967295]], '$nodename': ['sensor@48']} from schema $id: http://devicetree.org/schemas/hwmon/lm75.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm75.example.dtb: temperature-sensor@48: False schema does not allow {'compatible': ['ams,as6200'], 'reg': [[72]], 'vs-supply': [[4294967295]], 'interrupts': [[17, 3]], '$nodename': ['temperature-sensor@48']} from schema $id: http://devicetree.org/schemas/hwmon/lm75.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240229-mbly-i2c-v2-2-b32ed18c098c@bootlin.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 29/02/2024 19:10, Théo Lebrun wrote: > Reference common hwmon schema which has the generic "label" property, > parsed by Linux hwmon subsystem. > Please do not mix independent patchsets. You create unneeded dependencies blocking this patch. This patch depends on hwmon work, so it cannot go through different tree. If you insist to combine independent patches, then at least clearly express merging strategy or dependency in patch changelog --- . > To: Jean Delvare <jdelvare@suse.com> > To: Guenter Roeck <linux@roeck-us.net> > Cc: linux-hwmon@vger.kernel.org > Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > --- Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On 2/29/24 22:37, Krzysztof Kozlowski wrote: > On 29/02/2024 19:10, Théo Lebrun wrote: >> Reference common hwmon schema which has the generic "label" property, >> parsed by Linux hwmon subsystem. >> > > Please do not mix independent patchsets. You create unneeded > dependencies blocking this patch. This patch depends on hwmon work, so > it cannot go through different tree. > > If you insist to combine independent patches, then at least clearly > express merging strategy or dependency in patch changelog --- . > For my part I have to say that I don't know what to do with it. Rob's robot reported errors, so I won't apply it, and I don't feel comfortable giving it an ack either because of those errors. Guenter > >> To: Jean Delvare <jdelvare@suse.com> >> To: Guenter Roeck <linux@roeck-us.net> >> Cc: linux-hwmon@vger.kernel.org >> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> >> --- > > > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > Best regards, > Krzysztof >
Hello, On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: > On 2/29/24 22:37, Krzysztof Kozlowski wrote: > > On 29/02/2024 19:10, Théo Lebrun wrote: > >> Reference common hwmon schema which has the generic "label" property, > >> parsed by Linux hwmon subsystem. > >> > > > > Please do not mix independent patchsets. You create unneeded > > dependencies blocking this patch. This patch depends on hwmon work, so > > it cannot go through different tree. I had to pick between this or dtbs_check failing on my DTS that uses a label on temperature-sensor@48. > > If you insist to combine independent patches, then at least clearly > > express merging strategy or dependency in patch changelog --- . I do not know how such indirect conflicts are usually resolved. Hwmon can take it but MIPS might want to also take it to have valid DTS. Any advice? > For my part I have to say that I don't know what to do with it. > Rob's robot reported errors, so I won't apply it, and I don't > feel comfortable giving it an ack either because of those errors. Can reproduce the error when patch "dt-bindings: hwmon: add common properties" is not applied. Cannot reproduce when patch is applied. Commit d590900b62f0 on hwmon-next. Cannot reproduce with hwmon-next as parent. Regards, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
On 01/03/2024 10:41, Théo Lebrun wrote: > Hello, > > On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: >> On 2/29/24 22:37, Krzysztof Kozlowski wrote: >>> On 29/02/2024 19:10, Théo Lebrun wrote: >>>> Reference common hwmon schema which has the generic "label" property, >>>> parsed by Linux hwmon subsystem. >>>> >>> >>> Please do not mix independent patchsets. You create unneeded >>> dependencies blocking this patch. This patch depends on hwmon work, so >>> it cannot go through different tree. > > I had to pick between this or dtbs_check failing on my DTS that uses a > label on temperature-sensor@48. I don't see how is that relevant. You can organize your branches as you wish, e.g. base one b4 branch on another and you will not have any warnings. > >>> If you insist to combine independent patches, then at least clearly >>> express merging strategy or dependency in patch changelog --- . > > I do not know how such indirect conflicts are usually resolved. Hwmon > can take it but MIPS might want to also take it to have valid DTS. > > Any advice? I don't see any conflict. > >> For my part I have to say that I don't know what to do with it. >> Rob's robot reported errors, so I won't apply it, and I don't >> feel comfortable giving it an ack either because of those errors. > > Can reproduce the error when patch "dt-bindings: hwmon: add common > properties" is not applied. Cannot reproduce when patch is applied. > Commit d590900b62f0 on hwmon-next. Cannot reproduce with hwmon-next as > parent. Yeah, but we see the error reported and it means something is missing. Best regards, Krzysztof
Hello, On Fri Mar 1, 2024 at 11:13 AM CET, Krzysztof Kozlowski wrote: > On 01/03/2024 10:41, Théo Lebrun wrote: > > Hello, > > > > On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: > >> On 2/29/24 22:37, Krzysztof Kozlowski wrote: > >>> On 29/02/2024 19:10, Théo Lebrun wrote: > >>>> Reference common hwmon schema which has the generic "label" property, > >>>> parsed by Linux hwmon subsystem. > >>>> > >>> > >>> Please do not mix independent patchsets. You create unneeded > >>> dependencies blocking this patch. This patch depends on hwmon work, so > >>> it cannot go through different tree. > > > > I had to pick between this or dtbs_check failing on my DTS that uses a > > label on temperature-sensor@48. > > I don't see how is that relevant. You can organize your branches as you > wish, e.g. base one b4 branch on another and you will not have any warnings. That is what I do, I however do not want mips-next to have errors when running dtbs_check. Having dtbs_check return errors is not an issue? > >>> If you insist to combine independent patches, then at least clearly > >>> express merging strategy or dependency in patch changelog --- . > > > > I do not know how such indirect conflicts are usually resolved. Hwmon > > can take it but MIPS might want to also take it to have valid DTS. > > > > Any advice? > > I don't see any conflict. I shouldn't have called that a conflict, more like a dependency. > >> For my part I have to say that I don't know what to do with it. > >> Rob's robot reported errors, so I won't apply it, and I don't > >> feel comfortable giving it an ack either because of those errors. > > > > Can reproduce the error when patch "dt-bindings: hwmon: add common > > properties" is not applied. Cannot reproduce when patch is applied. > > Commit d590900b62f0 on hwmon-next. Cannot reproduce with hwmon-next as > > parent. > > Yeah, but we see the error reported and it means something is missing. Yes, this series depends on "dt-bindings: hwmon: add common properties" which the bot doesn't know it needs to apply. Should I submit this patch independently and have my DTS be broken wrt dtbs_check? Have a nice day, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
On 01/03/2024 11:44, Théo Lebrun wrote: > Hello, > > On Fri Mar 1, 2024 at 11:13 AM CET, Krzysztof Kozlowski wrote: >> On 01/03/2024 10:41, Théo Lebrun wrote: >>> Hello, >>> >>> On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: >>>> On 2/29/24 22:37, Krzysztof Kozlowski wrote: >>>>> On 29/02/2024 19:10, Théo Lebrun wrote: >>>>>> Reference common hwmon schema which has the generic "label" property, >>>>>> parsed by Linux hwmon subsystem. >>>>>> >>>>> >>>>> Please do not mix independent patchsets. You create unneeded >>>>> dependencies blocking this patch. This patch depends on hwmon work, so >>>>> it cannot go through different tree. >>> >>> I had to pick between this or dtbs_check failing on my DTS that uses a >>> label on temperature-sensor@48. >> >> I don't see how is that relevant. You can organize your branches as you >> wish, e.g. base one b4 branch on another and you will not have any warnings. > > That is what I do, I however do not want mips-next to have errors when > running dtbs_check. Having dtbs_check return errors is not an issue? You should ask your maintainer, but I don't understand how this is achievable anyway. Subsystem bindings *should not* go via MIPS-next, so how are you going to solve this? And why MIPS shall be different than all other ARM/RISC-V SoCs? Best regards, Krzysztof
Hello, On Fri Mar 1, 2024 at 12:35 PM CET, Krzysztof Kozlowski wrote: > On 01/03/2024 11:44, Théo Lebrun wrote: > > On Fri Mar 1, 2024 at 11:13 AM CET, Krzysztof Kozlowski wrote: > >> On 01/03/2024 10:41, Théo Lebrun wrote: > >>> On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: > >>>> On 2/29/24 22:37, Krzysztof Kozlowski wrote: > >>>>> On 29/02/2024 19:10, Théo Lebrun wrote: > >>>>>> Reference common hwmon schema which has the generic "label" property, > >>>>>> parsed by Linux hwmon subsystem. > >>>>> > >>>>> Please do not mix independent patchsets. You create unneeded > >>>>> dependencies blocking this patch. This patch depends on hwmon work, so > >>>>> it cannot go through different tree. > >>> > >>> I had to pick between this or dtbs_check failing on my DTS that uses a > >>> label on temperature-sensor@48. > >> > >> I don't see how is that relevant. You can organize your branches as you > >> wish, e.g. base one b4 branch on another and you will not have any warnings. > > > > That is what I do, I however do not want mips-next to have errors when > > running dtbs_check. Having dtbs_check return errors is not an issue? > > You should ask your maintainer, but I don't understand how this is > achievable anyway. Subsystem bindings *should not* go via MIPS-next, so > how are you going to solve this? I thought it'd go in hwmon-next and be picked up by mips-next as well. It's clear now that the right approach is to send the lm75.yaml patch alone. I'll wait some more before sending a new revision that drops this lm75.yaml patch. Have a nice day, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
On 01/03/2024 15:09, Théo Lebrun wrote: >>>> I don't see how is that relevant. You can organize your branches as you >>>> wish, e.g. base one b4 branch on another and you will not have any warnings. >>> >>> That is what I do, I however do not want mips-next to have errors when >>> running dtbs_check. Having dtbs_check return errors is not an issue? >> >> You should ask your maintainer, but I don't understand how this is >> achievable anyway. Subsystem bindings *should not* go via MIPS-next, so >> how are you going to solve this? > > I thought it'd go in hwmon-next and be picked up by mips-next as well. > It's clear now that the right approach is to send the lm75.yaml patch > alone. Then mips-next-dts branch would be based on subsystem branch with driver changes? That violates the policy of not creating dependencies between DTS and drivers. What matters is final or even future release, not intermediate state. Best regards, Krzysztof
On Fri, Mar 01, 2024 at 11:44:37AM +0100, Théo Lebrun wrote: > Hello, > > On Fri Mar 1, 2024 at 11:13 AM CET, Krzysztof Kozlowski wrote: > > On 01/03/2024 10:41, Théo Lebrun wrote: > > > Hello, > > > > > > On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: > > >> On 2/29/24 22:37, Krzysztof Kozlowski wrote: > > >>> On 29/02/2024 19:10, Théo Lebrun wrote: > > >>>> Reference common hwmon schema which has the generic "label" property, > > >>>> parsed by Linux hwmon subsystem. > > >>>> > > >>> > > >>> Please do not mix independent patchsets. You create unneeded > > >>> dependencies blocking this patch. This patch depends on hwmon work, so > > >>> it cannot go through different tree. > > > > > > I had to pick between this or dtbs_check failing on my DTS that uses a > > > label on temperature-sensor@48. > > > > I don't see how is that relevant. You can organize your branches as you > > wish, e.g. base one b4 branch on another and you will not have any warnings. > > That is what I do, I however do not want mips-next to have errors when > running dtbs_check. Having dtbs_check return errors is not an issue? That's a good goal, but difficult to achieve as you can see. Given dtbs_check in general has tons of warnings already, we currently don't worry about more warnings in specific branches. We just look at mainline and linux-next. And for that it's still so many, I'm just looking at general trends. It runs daily here[1]. As we get more platforms trying to stay at zero warnings, then we'll need to revisit this. I imagine that will mean all schemas have to go in 1 branch with acks from subsystem maintainers. That's the opposite of what we do now. And then .dts branches will have to merge in the schema branch as needed. There are some checks (make dt_compatible_check) to for drivers vs. the schemas, so we'd have the same issue with intermittent warnings. But the drivers should be more decoupled from the schemas than the dts files. Rob [1] https://gitlab.com/robherring/linux-dt/-/jobs
On Thu, Feb 29, 2024 at 10:53:07PM -0800, Guenter Roeck wrote: > On 2/29/24 22:37, Krzysztof Kozlowski wrote: > > On 29/02/2024 19:10, Théo Lebrun wrote: > > > Reference common hwmon schema which has the generic "label" property, > > > parsed by Linux hwmon subsystem. > > > > > > > Please do not mix independent patchsets. You create unneeded > > dependencies blocking this patch. This patch depends on hwmon work, so > > it cannot go through different tree. > > > > If you insist to combine independent patches, then at least clearly > > express merging strategy or dependency in patch changelog --- . > > > > For my part I have to say that I don't know what to do with it. > Rob's robot reported errors, so I won't apply it, and I don't > feel comfortable giving it an ack either because of those errors. You can apply it. Those are just related to not finding hwmon-common.yaml which you have, and Théo confirmed it works on hwmon-next. Rob
Hello, On Fri Mar 1, 2024 at 4:35 PM CET, Rob Herring wrote: > On Fri, Mar 01, 2024 at 11:44:37AM +0100, Théo Lebrun wrote: > > Hello, > > > > On Fri Mar 1, 2024 at 11:13 AM CET, Krzysztof Kozlowski wrote: > > > On 01/03/2024 10:41, Théo Lebrun wrote: > > > > Hello, > > > > > > > > On Fri Mar 1, 2024 at 7:53 AM CET, Guenter Roeck wrote: > > > >> On 2/29/24 22:37, Krzysztof Kozlowski wrote: > > > >>> On 29/02/2024 19:10, Théo Lebrun wrote: > > > >>>> Reference common hwmon schema which has the generic "label" property, > > > >>>> parsed by Linux hwmon subsystem. > > > >>>> > > > >>> > > > >>> Please do not mix independent patchsets. You create unneeded > > > >>> dependencies blocking this patch. This patch depends on hwmon work, so > > > >>> it cannot go through different tree. > > > > > > > > I had to pick between this or dtbs_check failing on my DTS that uses a > > > > label on temperature-sensor@48. > > > > > > I don't see how is that relevant. You can organize your branches as you > > > wish, e.g. base one b4 branch on another and you will not have any warnings. > > > > That is what I do, I however do not want mips-next to have errors when > > running dtbs_check. Having dtbs_check return errors is not an issue? > > That's a good goal, but difficult to achieve as you can see. Given > dtbs_check in general has tons of warnings already, we currently don't > worry about more warnings in specific branches. We just look at mainline > and linux-next. And for that it's still so many, I'm just looking at > general trends. It runs daily here[1]. Here's my opportunity to ask a question I've had for a while: do you have a way to filter out dtbs that are known to be bad actors (ie have many many warnings)? Maybe a list of platforms you talk about below that aim at zero warnings? Another way to ask this: what would be a good default DT_SCHEMA_FILES value? Not filtering leads to way too many errors. Regards, -- Théo Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
On Thu, Feb 29, 2024 at 07:10:50PM +0100, Théo Lebrun wrote: > Reference common hwmon schema which has the generic "label" property, > parsed by Linux hwmon subsystem. > > To: Jean Delvare <jdelvare@suse.com> > To: Guenter Roeck <linux@roeck-us.net> > Cc: linux-hwmon@vger.kernel.org > Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Applied to hwmon-next. Thanks, Guenter
diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml index ed269e428a3d..29bd7460cc26 100644 --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml @@ -57,6 +57,7 @@ required: - reg allOf: + - $ref: hwmon-common.yaml# - if: not: properties: @@ -71,7 +72,7 @@ allOf: properties: interrupts: false -additionalProperties: false +unevaluatedProperties: false examples: - |