Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp993265rwb; Sat, 13 Aug 2022 13:43:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c2J6pAw8B8Z0KHuovFlYd+FVtdDI7vqd2jq/aJGM3QaGgTyLnhP+t2yl8xL0ByL2xC3Q3 X-Received: by 2002:a17:90b:b13:b0:1f3:7ab:35b2 with SMTP id bf19-20020a17090b0b1300b001f307ab35b2mr20451490pjb.118.1660423397125; Sat, 13 Aug 2022 13:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660423397; cv=none; d=google.com; s=arc-20160816; b=UtfDoHMkjd3T0MYC/Z2B/gcihkAbLWLUQNh9cOaWYrovuO+nYxjS8/pb3rbapqpHJK i/A7V0yd717IBwvGFPftIulY/+DjERlqx7saLXHSoANh4sbmjAKFnrpL4FQJ6eKj/D5v pMaod7qg/My+qwWb+YRQQz16hyGMjnv/AuLGM6IwpZDSFlKRcvrUed3DwkN11k/pqoc7 wXTrL7vfTbZBpACYId4NWzCG3HWzVJooDEyqhDHUjsAKmdFNyi6191J7ZvCp09Qk6oiT 7H6bnBNwhir3cEyvzryJCePqizvb8HmrsuNAOQ2Dj1vjsx4pLdNQTz4WWT01ZqsKPEyZ tN6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uYG/3bvDD/aIehieTFZ6RQ90evcA+hq/P9eGFj7ektU=; b=z+Jtfp4EfGVfSLbQyW0GejAKQadofZ8a28swzAppCGUuZTJvom8KpkFPk9HncmdD27 E47NSSVZFA/bEXNICUOtMq51AgMNjQSb384tLQhqVTgmqw0rsLeSHY09lDM9/QXJBDp4 jZRQKVc6dryNi4GlCu4sVhWaP4vTgHidlGYbkDep4TiwjgQ4Sk8W6/+TcI7+iANY1/PQ zmM6eVPvgUtsMY8LPdLXxEiSjouusTPnzUee10w/nceK58uxqsecjmodUMlPlZar227i g9t7/Pkhu1LNUl7baJw6buUFG4aRy6jKFmlgU32ymrevlJxAof7X+OCMmgNSsHVYI7es x3Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sPT9KSEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y187-20020a638ac4000000b004231ae0167dsi3584705pgd.69.2022.08.13.13.43.00; Sat, 13 Aug 2022 13:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sPT9KSEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237399AbiHMUmP (ORCPT + 99 others); Sat, 13 Aug 2022 16:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233786AbiHMUmO (ORCPT ); Sat, 13 Aug 2022 16:42:14 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8E5DF7; Sat, 13 Aug 2022 13:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=uYG/3bvDD/aIehieTFZ6RQ90evcA+hq/P9eGFj7ektU=; b=sPT9KSEuVrHDMAVEIZtCH3z/ea Efhhe9C5+KN+bkt1/UMwIznj6BAn/49heyXOtd4dUDjjtlNtO9sJG+AeeAsW3bG/cmKIKfn43Buay yTD2cfuGzTxl3Qu3Ir5JJ9YKTiH+DUzi0vVJrXYzmbIt5530viG0BMEzYWFOVdklzKDQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oMxxN-00DFHc-NK; Sat, 13 Aug 2022 22:42:05 +0200 Date: Sat, 13 Aug 2022 22:42:05 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Woojung Huh , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vivien Didelot , UNGLinuxDriver@microchip.com, Eric Dumazet , Paolo Abeni , kernel@pengutronix.de, Jakub Kicinski , Vladimir Oltean , "David S. Miller" Subject: Re: [PATCH net-next v1 07/10] net: dsa: microchip: warn about not supported synclko properties on KSZ9893 chips Message-ID: References: <20220729130346.2961889-1-o.rempel@pengutronix.de> <20220729130346.2961889-8-o.rempel@pengutronix.de> <20220802113633.73rxlb2kmihivwpx@skbuf> <20220805115601.GB10667@pengutronix.de> <20220805134234.ps4qfjiachzm7jv4@skbuf> <20220813143215.GA12534@pengutronix.de> <20220813161850.GB12534@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220813161850.GB12534@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 13, 2022 at 06:18:50PM +0200, Oleksij Rempel wrote: > On Sat, Aug 13, 2022 at 05:11:45PM +0200, Andrew Lunn wrote: > > On Sat, Aug 13, 2022 at 04:32:15PM +0200, Oleksij Rempel wrote: > > > On Fri, Aug 05, 2022 at 04:42:34PM +0300, Vladimir Oltean wrote: > > > > On Fri, Aug 05, 2022 at 01:56:01PM +0200, Oleksij Rempel wrote: > > > > > Hm, if we will have any random not support OF property in the switch > > > > > node. We won't be able to warn about it anyway. So, if it is present > > > > > but not supported, we will just ignore it. > > > > > > > > > > I'll drop this patch. > > > > > > > > To continue, I think the right way to go about this is to edit the > > > > dt-schema to say that these properties are only applicable to certain > > > > compatible strings, rather than for all. Then due to the > > > > "unevaluatedProperties: false", you'd get the warnings you want, at > > > > validation time. > > > > > > Hm, with "unevaluatedProperties: false" i have no warnings. Even if I > > > create examples with random strings as properties. Are there some new > > > json libraries i should use? > > > > Try > > > > additionalProperties: False > > Yes, it works. But in this case I'll do more changes. Just wont to make > sure I do not fix not broken things. I've been working on converting some old SoCs bindings from .txt to .yaml. My observations is that the yaml is sometimes more restrictive than what the drivers actually imposes. So you might need to change perfectly working .dts files to get it warning free. Or you just accept the warnings and move on. At lot will depend on the number of warnings and how easy it is to see real problems mixed in with warnings you never intend to fix. Andrew