From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF8BFC00140 for ; Fri, 5 Aug 2022 13:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239543AbiHENmo (ORCPT ); Fri, 5 Aug 2022 09:42:44 -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-Google-Smtp-Source: AA6agR4mtKE+SpCBscnn3VO5LGsA6rFAtKm12WarCYsCusp7zyqRujQs/lyJRJerTifwX4MLRVCyRA== 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> Precedence: bulk List-ID: X-Mailing-List: netdev@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.