Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1717294rwb; Fri, 5 Aug 2022 06:47:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wUf8Ut6YzPAn4TrayrffviTPV0jr2buiTMxTRUAOZjIbnyicWW6Ui+NYEhd35Mqhf3wks X-Received: by 2002:a05:6a00:1d9e:b0:52d:aa13:67fc with SMTP id z30-20020a056a001d9e00b0052daa1367fcmr6893180pfw.73.1659707253946; Fri, 05 Aug 2022 06:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659707253; cv=none; d=google.com; s=arc-20160816; b=pVjOhHp3DMQa5sN31BVcNmgNaFwoCjr7r22QOxdR0APubYoyh8EhwTtuAzy0nhwKIV BneTSXZQWgj5UHSs0Y+AVDsNXSft/qBDVhOpF61Ac3wZKAJ+Siv+DFaosMNduVPsh0rz xvs3Zxeg9Fpk6x3Srpc8EUbdRB9oeVbLCsXBM/E1vUu2vV2So7JPmuXYGcVwj7vNyfEm YzIwVMShjUt2dqy286Xd6hiQblFZqVKBe/2VOqP+CQ5/zfRpNS8tVJHNwwHGX/0Xl32f 1Op97TGyVv9Ab7CMFxdTxGcw2iHyKpMk3wzYgNI5pjwcyueyXFNsMDbUAHIz8enbG75O AM1g== 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=zR8kV+Ky5vMH8Hg8w39JvJp5Ei2dq8QJt1JHJ8EJ8nQ=; b=hMHN5yCSqh4i3MuEstXJN54lPOK4wZgff3bpXYCoqq9zoxA510DmecYH7EY/vvBG/X kD6Vwu9ba2ko+ksLOFAh+dJc4C/k7JpCBDzma/zeCEhicwctR9t/HylUd4ZPTFbFsjqd oq3RE/RaUoxRAsveLAqIb6jf8X6iTAn8/9Ed7gS7TJrLtG1bRSpauSxBZNL1HqXbktAo AABbXk5ExHlhWyZBCD+28yCfjf7rTw2yNLuKYe/TKS26QhQk0cY3+3USmRUgBaPRAfTp M5wMnRCIeJEC7Kh3Crgi007J+2ufcmj/MM7MvAQcQUrHQW52mEhtH93aGDE0e1yDs7TF F0Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jKoXyh6n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a62ab12000000b0050dfc3c58fbsi4428093pff.5.2022.08.05.06.47.18; Fri, 05 Aug 2022 06:47:33 -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=@gmail.com header.s=20210112 header.b=jKoXyh6n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240565AbiHENmp (ORCPT + 99 others); Fri, 5 Aug 2022 09:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbiHENmn (ORCPT ); Fri, 5 Aug 2022 09:42:43 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B02C7DF44; Fri, 5 Aug 2022 06:42:42 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id x21so3464617edd.3; Fri, 05 Aug 2022 06:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zR8kV+Ky5vMH8Hg8w39JvJp5Ei2dq8QJt1JHJ8EJ8nQ=; b=jKoXyh6nzm1JwAImGdyzJn1CbSx2EzKCsuCF7s+dz16FQbpN6zXz+aT4vQgqtZc/Gj +bmg+DRVCm9CSAcghRU7DM0KQ1QKctX1bsYuwWWH9UAeJmXUCepQQOtgrNEEV5pzKhUq vHXFmJthphoODQicEHrmjuhlohpev3cZ+lfOhrBRZCRSaGbfkzikuxNdp4oI9kMmoRJk l1SNquPDUflXKfnr06KcD7SnyeVu4yVSyP3jCY+rHCILv/ObtcA4h1wul+118HPmyJQU h0U7HutY8Ln0tn8Gwh4N5gH8XFdFeUATfG75KxRA59HIEVgTWZDvfzYjchy4hGwrb1Tc /lvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zR8kV+Ky5vMH8Hg8w39JvJp5Ei2dq8QJt1JHJ8EJ8nQ=; b=Bau6Nwl0GZpWfyjDiR5SPxaIQS4t5yTpuX6p2RGMrdKIWaUlDzKT+cVT/Jeo/jgE9f TDK1YQX1kEBFyBX3jVBee+tVLyzaeOUBGk2FbaKDUD7eeouqR9l51Amp7YPF1gzdL/Qi 1WE6Ez1O0eyl707E8UDAemBsDU3VLVWw+ycVwDdniRqjMRLdCYrMZFqX/3Q18N99Tx3T wSy9Payg32SS2ndIs8W9l8VAZ3jTzR2w15gJiFqLV0mkR63uJtPXHdjGUOzo0aWjNe7g 4EWQJjOKc4odxv1xeP4rSCDWGth68wGF/8ma+PKpz9s1uQrIDaIpeZSHTYR6XYpyGtnU zR2Q== X-Gm-Message-State: ACgBeo3px+azOzAZRW+5AKYbHBHOGSKSiFGpx+696/gY642Nz89bVKW+ 3OD0BwdU4S63NZ75/BgLKyQ= X-Received: by 2002:a05:6402:42d5:b0:43b:5cbc:eeba with SMTP id i21-20020a05640242d500b0043b5cbceebamr6592407edc.3.1659706961219; Fri, 05 Aug 2022 06:42:41 -0700 (PDT) Received: from skbuf ([188.26.185.84]) by smtp.gmail.com with ESMTPSA id f17-20020a056402005100b0043ceb444515sm2131357edu.5.2022.08.05.06.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 06:42:38 -0700 (PDT) Date: Fri, 5 Aug 2022 16:42:34 +0300 From: Vladimir Oltean To: Oleksij Rempel Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v1 07/10] net: dsa: microchip: warn about not supported synclko properties on KSZ9893 chips Message-ID: <20220805134234.ps4qfjiachzm7jv4@skbuf> References: <20220729130346.2961889-1-o.rempel@pengutronix.de> <20220729130346.2961889-8-o.rempel@pengutronix.de> <20220802113633.73rxlb2kmihivwpx@skbuf> <20220805115601.GB10667@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220805115601.GB10667@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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 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.