Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp999975rwb; Thu, 10 Nov 2022 09:53:54 -0800 (PST) X-Google-Smtp-Source: AMsMyM5p4ZLUyOt3SGc9gfhD86UBnuEDotumqOYqWVP9/qGPmes7B3t+MLH8IeeTjX7graiUUcaE X-Received: by 2002:a17:902:edc3:b0:172:8ae3:9778 with SMTP id q3-20020a170902edc300b001728ae39778mr64859129plk.72.1668102833870; Thu, 10 Nov 2022 09:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668102833; cv=none; d=google.com; s=arc-20160816; b=o/0fG0KaPTUjKC+4Bb08Px1TMmBCSmoEc0Jo/B6a5CJBWUINVADgLlIYdzJ51GlhJZ Mrk4lPAa5C+9qn8uUlbyhISvvfXhgWMyRe/5jxq32eq4mPYn2+7VQY8rAk/bXp0jUwa5 NoxVeKHS+piyvbOqZWkdgwuXZFQ13JQQcVkpN7Y6yo/30FXVzZ4orE0gCdOVr/y5S5m8 Up3+i3EjdIyHZtwPX4lgcTfThbf2sZXbbDiwL10Zy3KyS4ZLvcIp8xCvlNhCTuPP4f4J egiBADFI0c/Ncgu+ux0emknDkDMzzyPthsXM1h8xeuS/3Fg2h3aFaTu5jBfwVZDbWvrz r/dw== 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=D8Um2SWESyWwAoQ0Hp9/x5Na8vtfvbENXwnpCxX3ROY=; b=XWD0b9f0aOM6Dv0HqoTjMRnqQy8ZChUBdkULnnqXtIztHidv7iV7ppyXCvFRQZkoej iub7F7HcnoxgpZBTZ4ci3+0OETWHGYaWl8Y457K5p31tKs1okzwjz4xXoR+2wLR2LuO0 taVu2/DsUf8gJPl6CfUw2SF78W68H9++vbxESUaTGno8lJvsY+/CuEX7S2FgD56VGDCz L1uBbdzFgx6ka/7HFhVqCskf6sF+ht1/ycDVMXPqjJ5FjmxPJkf319VVS9W/zO4mN6nr OWK34wLFUFUmVf6yWNRy3RP9y1epqubay2+IWRFXrV076F+wC1LVzTcq/JV3pPApuJBt Zs5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=prm2DHsV; 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=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gd16-20020a17090b0fd000b00213213d63bbsi184790pjb.41.2022.11.10.09.53.39; Thu, 10 Nov 2022 09:53:53 -0800 (PST) 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=prm2DHsV; 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=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbiKJQCu (ORCPT + 92 others); Thu, 10 Nov 2022 11:02:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiKJQCs (ORCPT ); Thu, 10 Nov 2022 11:02:48 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B42392F64E; Thu, 10 Nov 2022 08:02:47 -0800 (PST) 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=D8Um2SWESyWwAoQ0Hp9/x5Na8vtfvbENXwnpCxX3ROY=; b=prm2DHsV5YAlzHXZNaeodoW5qC KVVvbi+niGkOnDkEvts551Z+HwtHFPgpmktCmgRrcb0AlY/sV9SjYkuMr7//dCosqX+cHwzBAcIl8 51BgYUtbIUd847zJCt9gtMNirT5IcN7UXZGK2iU+5LK8KT+fnoZAvqaRT2ddP2LCgJ9Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ot9zi-0022yz-Er; Thu, 10 Nov 2022 17:01:34 +0100 Date: Thu, 10 Nov 2022 17:01:34 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Sean Anderson , Vladimir Oltean , Heiner Kallweit , Russell King , "netdev@vger.kernel.org" , Eric Dumazet , Paolo Abeni , Jakub Kicinski , "linux-kernel@vger.kernel.org" , Ioana Ciornei , Madalin Bucur , "David S . Miller" , Alexandre Belloni , Benjamin Herrenschmidt , Claudiu Manoil , Florian Fainelli , Frank Rowand , Krzysztof Kozlowski , Leo Li , Michael Ellerman , Paul Mackerras , Rob Herring , Saravana Kannan , Shawn Guo , "UNGLinuxDriver@microchip.com" , Vivien Didelot , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH net-next v2 00/11] net: pcs: Add support for devices probed in the "usual" manner Message-ID: References: <20221103210650.2325784-1-sean.anderson@seco.com> <20221109224110.erfaftzja4fybdbc@skbuf> <20221110152925.3gkkp5opf74oqrxb@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110152925.3gkkp5opf74oqrxb@skbuf> 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 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 Thu, Nov 10, 2022 at 03:29:26PM +0000, Vladimir Oltean wrote: > On Thu, Nov 10, 2022 at 09:55:32AM -0500, Sean Anderson wrote: > > On 11/9/22 17:41, Vladimir Oltean wrote: > > > On Thu, Nov 03, 2022 at 05:06:39PM -0400, Sean Anderson wrote: > > >> Several (later) patches in this series cannot be applied until a stable > > >> release has occured containing the dts updates. > > > > > > New kernels must remain compatible with old device trees. > > > > Well, this binding is not present in older device trees, so it needs to > > be added before these patches can be applied. It also could be possible > > to manually bind the driver using e.g. a helper function (like what is > > done with lynx_pcs_create_on_bus). Of course this would be tricky, > > because we would need to unbind any generic phy driver attached, but > > avoid unbinding an existing Lynx PCS driver. > > If you know the value of the MII_PHYSID1 and MII_PHYSID2 registers for > these PCS devices, would it be possible to probe them in a generic way > as MDIO devices, if they lack a compatible string? That is not how it currently works. If a device on an MDIO bus has a compatible, it is assumed to be an mdio device, and it is probed in a generic way as an sort of mdio device. It could be an Ethernet switch, or Broadcom has some generic PHYs which are mdio devices, etc. If there is no compatible, the ID registers are read and it is assumed to be a PHY. It will be probed as a PHY. The probe() function will be given a phydev etc. It will need some core changes to allow an mdio device to be probed via the ID registers. Andrew