Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1310928lqa; Mon, 29 Apr 2024 05:12:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2j6NZ1N+1Bq8aRgkVrQ784tKQgDJgz/kdnpITqa+7IfN3uOjiMlIC/R0zDqvifQYiHXoc+GDCjWgOFARc2hzJa2KrmnNWsVne7G6H5Q== X-Google-Smtp-Source: AGHT+IGxkq2e6T0Zu+woYYRS8d9TebiA7zVBNFSvqTrDVjaZTIAtqlgV2g+2MHgGsL8Vb0cmVqXV X-Received: by 2002:a17:906:494d:b0:a58:ea69:3f4f with SMTP id f13-20020a170906494d00b00a58ea693f4fmr4403562ejt.70.1714392742362; Mon, 29 Apr 2024 05:12:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714392742; cv=pass; d=google.com; s=arc-20160816; b=d656oPgKidX0IW1JrvYDwQESuBFbMeVXaalzrEot9pHZSyWWxtMNsoVgN4A0sJcxaC UXD0a8BZjug9Oi2E9iwR6M2M+e57uOZwK+jIMbWRS3RcBuSJ/tZ+c/jQVceNH0B5vtRU W5MmnJsmx2Wikh8Z0KZUIh9CLFY57YpbIXmO5RVEc9v9XQZxSL3KjeLw3Kn2xKrRtmGd W1ynAOVuv3DN2DqJjfpYns/lidEsUD6cuL3m2d+eFGl0tYyX1nt3ka4EAHuIuTNYtSC5 V3vBj2dm8Suh/EGJCDBnWxP/VPEcECotqZ0x5W/zOJ+sT0oD5c7VLkG3+ngawJphLReV Xcvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h9t4XYnMZ7pWMVqItnio1QT6PeGN1g5MdB6mzR8+nTc=; fh=AtcTOSvyGtFce54xUJPBGzsOWOh/fdN818orP7q/SpA=; b=QRUkwK/KX12obG+WX416i4ID05Mp1MiJb8tD4fZfl8OTFYTtL9T2Umj0R/U/o0X0Sr 5Jy8LTQ9mxc7I0e4bQJVHopT9DPlBwJ2U/Rdlg8zE0AkXmViSHfef+1OwCNlXh+pG6Za uPGThgMSgarpOHSdjW8R+861uzSYPcU31rDDAnmwGpgCt++o6T0FNGIeiCKDHju9apue k5uNfWc5/6xTjb5yjjis/mUy8nVAT8RL90iR3WPeJ5U0xG1VAcwuf4jjm34Fw98CluXu IH5MpszAZ3tmPxaRPg5h1V1LGN4J1hGL5lEKLPU3WzcSRvHY3T2xQM84JgyV766NRgWj FhxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RzZObxK1; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162203-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sa22-20020a1709076d1600b00a58f028c443si2304124ejc.718.2024.04.29.05.12.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162203-linux.lists.archive=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=@lunn.ch header.s=20171124 header.b=RzZObxK1; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-162203-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 2C8811F236B9 for ; Mon, 29 Apr 2024 12:12:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3565C77F3E; Mon, 29 Apr 2024 12:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="RzZObxK1" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 16F8874BEB; Mon, 29 Apr 2024 12:09:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392579; cv=none; b=BNyteOcnaXLG1e1R1LFg28Ge1/gQIeZ0Q7VHEY7BY88DAJ0OezOMbZlh6gyqqbnFW541hIp9tFWi4Kw3l8Rat8n3npr6i9E/mwg1j94QodMTv1h5uaY4uZsmRiHACdXPjuWMRSIUSla3iOQoVq1MRoDQIa2KTXj6ql4Wty63kz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392579; c=relaxed/simple; bh=5rT0MW8a+Q608EQ2WOLBLIOLnw2hvDV6qV7Xa4L4Vvo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NKxUHqN3ftUmL+t014HtoIeDFW+hGzoVefoTekc/520ZAF4JZ4dV2smtVZNNbPA2k90Kn+f+s06O2wWO6nqiZLBv4y8MzU17/q93Mb+SW6AriRy2du9cqoMzm4ZxhGxZJIETXYjctG+aDKFVGUMNjFwbx2vV2Ou868nhiCLAGog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=RzZObxK1; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=h9t4XYnMZ7pWMVqItnio1QT6PeGN1g5MdB6mzR8+nTc=; b=RzZObxK1rl9M7ufGw2N+tp6YzK +qFKeH4uRQ85TfaQzaBViNMA+CX3XUu172Z2q6ZVrkq5Ri+gtgvfZrY4/z0JOI0/19V3B07Ylutge cPHzBbN/A0xqYbqTz1z/QRk4/+HcC1Fx4bOlDEANMrTQxRifPJ4cuurky6xxl829Zp64=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1Poq-00EFGB-Ci; Mon, 29 Apr 2024 14:09:16 +0200 Date: Mon, 29 Apr 2024 14:09:16 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: conor@kernel.org, ramon.nordin.rodriguez@ferroamp.se, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, saeedm@nvidia.com, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, Horatiu.Vultur@microchip.com, ruanjinjie@huawei.com, Steen.Hegelund@microchip.com, vladimir.oltean@nxp.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com, Pier.Beruto@onsemi.com, Selvamani.Rajagopal@onsemi.com, Nicolas.Ferre@microchip.com, benjamin.bigler@bernformulastudent.ch Subject: Re: [PATCH net-next v4 11/12] microchip: lan865x: add driver support for Microchip's LAN865X MAC-PHY Message-ID: <243dab3b-ac07-4d88-8c43-aed53a34cea9@lunn.ch> References: <20240418125648.372526-1-Parthiban.Veerasooran@microchip.com> <20240418125648.372526-12-Parthiban.Veerasooran@microchip.com> <20240427-vaporizer-pencil-be6a25030f08@spud> <1ae4f1d5-140b-41b1-9191-da14fd67d409@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ae4f1d5-140b-41b1-9191-da14fd67d409@microchip.com> > Looks like, the below changes needed to work correctly, > > lan865x.c: > - compatible string to be changed like below as it is a fallback for all > variants, > .compatible = "microchip,lan8650" > - DRV_NAME to be changed like below, > #define DRV_NAME "lan8650" > > microchip,lan865x.example.dts for lan8650: > - compatible string to be changed like below, > .compatible = "microchip,lan8650"; > OR > microchip,lan865x.example.dts for lan8651: > - compatible string to be changed like below, > compatible = "microchip,lan8651", "microchip,lan8650"; > > I tested with the above changes and there was no issues observed. Any > comments on this? Otherwise we can stick with these changes for the next > version. As Conor said, this is probably relying on the fallback mechanism. Please look at other SPI devices, e.g. hwmon, and see how they probe for multiple different devices. Andrew