Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp255853rwb; Fri, 2 Sep 2022 13:38:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4u3aHK+S489HhZji/5yRYnOye9FK+mPUfuBlQn71MYW0Z/f0RtPs3pR9eNBrHf4YeTgx5I X-Received: by 2002:a17:907:9607:b0:741:7926:a64c with SMTP id gb7-20020a170907960700b007417926a64cmr19368539ejc.718.1662151125606; Fri, 02 Sep 2022 13:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662151125; cv=none; d=google.com; s=arc-20160816; b=l3jvvvj0x+wJaV0K1NYTNkKGJhU87XZiIgrXBAQhpavFg5w440xonzKvndmCDij13I oS1Wis84d9xtgI+ftszSy0Iru7tdrZovlEnVkQ27nKv+tfRkjdZH7T82oYqJUluchMJc E9vpoHAPUtHCcI7A1ypPbF6kqIt/LlmncWIrnPgixP757X7hxGfIxx7FF7WtrJK/8CaL PORNSqlKYjxty21521VxD8aYII9/ShVQE4tphCPTCtSPRMEH4tJN1oU8//CvLL3iuJWB 0Xlp3u1JfgDAo4UPzn8MNrGVYlW0tvXVVgrgyUUPpqtk5g1u4EpiOs9iw+6C+broHupu 7PpQ== 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=6jN31VgQCCRw0E2mRT8jomR23ac2A5p7CJG0IlzW8UU=; b=iw6kLvcvJ677sD/D10vHonUUNmAmOT6jCrr16RnvjpWxMSBBCdkvbI86gNq8jUuoxi YRC31QR8tUg1a1QL8Xx6Qo7wOyKqkMlgVBm59WGUeCB1656LeGyjhx/FvBnrWPBHoVeh q432ei3VtUU4l7cIlOzQ+NmvZ+JZNPWEeq7+D1qmqlGlW9rzt+b8FHU6xc7aK32TfytG eUTiinchq9GWSlaS8yQ54bwQ8BA9PkbZmQiC+CIwKol20zbid2PjdxJcIsRWiW+EF45E XSfRKbGGqL3SZb4n6uPy6ezWWRcynxbbj/N3uhU/F6hHGDfggbW3o8g82MyTo7XpSCwZ +o0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Y/50yDLE"; 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 ho41-20020a1709070ea900b00741a0bcbd5dsi2651675ejc.356.2022.09.02.13.38.19; Fri, 02 Sep 2022 13:38:45 -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="Y/50yDLE"; 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 S229786AbiIBUaX (ORCPT + 99 others); Fri, 2 Sep 2022 16:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiIBUaT (ORCPT ); Fri, 2 Sep 2022 16:30:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A7C63F24; Fri, 2 Sep 2022 13:30:17 -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=6jN31VgQCCRw0E2mRT8jomR23ac2A5p7CJG0IlzW8UU=; b=Y/50yDLE6u8Ow435onwJCh+W40 P/1T+18ej3hVxzr+xXrhq90lL9CBKEo6IacYzj51L8O5Z4xCyfy6SGViQnQH2RTPJPAfDDEvQKLY3 TDFdgIC/hdFwI+FfrpkdKwRci+sHnB2cfZnc4nS+fltjA9eomaCRzDqhTEQpaySjQnQE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oUDIZ-00FR3g-JQ; Fri, 02 Sep 2022 22:29:55 +0200 Date: Fri, 2 Sep 2022 22:29:55 +0200 From: Andrew Lunn To: Jerry.Ray@microchip.com Cc: vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] net: dsa: LAN9303: Add basic support for LAN9354 Message-ID: References: <20220829180037.31078-1-jerry.ray@microchip.com> <20220829180037.31078-2-jerry.ray@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > >Please validate that what you find on the board actually is what the compatible says it should be. If you don't validate it, there will be some DT blobs that have the wrong value, but probe fine. But then you cannot actually make use of the compatible string in the driver to do something different between the 9303 and the 9354 because some boards have the wrong compatible.... Please configure your mail client to stop corrupting emails. My reply definitely did not have lines this long. > > > > Andrew > > > > At this time, the driver is meant to support both devices equally. In the future, I will be adding content that only applies to the LAN9354. That is when I'm planning to add .data to the .compatible entries. Which makes it even more important to validate the compatible against what is actually on the board. As i said, in its current state, people are going to get it wrong, and your .data won't work, since it will be for a different chip to which is actually on the board. Andrew