From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E6A1CBA26 for ; Wed, 19 Jul 2023 07:32:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 508D6C433C7; Wed, 19 Jul 2023 07:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689751945; bh=LjK7+/aqSFBrBrXXXxem4dM/R5AvRUDJ78gWaQxHllM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XmmUp9TMbDTxSU6x46xBk4xBOr5FT8wz58CmMeWy38dwSzy0GtfB2AW58e10jMf/t UuA01wVDGsmS2Gkiz4oaBwbFs5Px1F0NcwhKlfd1iN2ct7kLEB7CHsufDv8zz6QOdF Rl/524wx3rMmKF+jEsFVmX9wySwDdAoFFvy4gw0XfmQz2qpI+rv87dPoqxNXEXrtGH bDyQYUIz58sBkecswsGJFQrgf9BKyN1tYJoerWiSB21Wl9HKT/aY8PK1UhUvVnQass UkMluW756ZhYqIFnaevcDk/OKyg2YXjhZ+z0gczWfdKHwNDeiWTCxWxhEn0xhOM/7L heVp1l2FOO1mA== Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 19 Jul 2023 09:32:19 +0200 From: Michael Walle To: Andrew Lunn Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yisen Zhuang , Salil Mehta , Florian Fainelli , Broadcom internal kernel review list , =?UTF-8?Q?Marek_Beh=C3=BAn?= , Xu Liang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman Subject: Re: [PATCH net-next v3 10/11] net: mdio: add C45-over-C22 fallback to fwnode_mdiobus_register_phy() In-Reply-To: <4b31b4d0-e327-4ee5-a887-a5c35d51b2af@lunn.ch> References: <20230620-feature-c45-over-c22-v3-0-9eb37edf7be0@kernel.org> <20230620-feature-c45-over-c22-v3-10-9eb37edf7be0@kernel.org> <4b31b4d0-e327-4ee5-a887-a5c35d51b2af@lunn.ch> Message-ID: <3fd646ef7c4f92187a2d44af6d1c9a03@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Am 2023-07-19 02:03, schrieb Andrew Lunn: >> Please note, that both with the old and the new code compatible = >> "ethernet-phy-idNNNN.NNNN" only works for the C22 case. I'm wondering >> if >> compatible = "ethernet-phy-idNNNN.NNNN", "ethernet-phy-ieee802.3-c45 >> even makes sense because there might be multiple C45 ids. At least it >> is >> an allowed pattern according to the device tree bindings. But with the >> current code, the ethernet-phy-idNNNN.NNNN is ignored in the c45 case. > > I think these two should be orthogonal. > > ethernet-phy-idNNNN.NNNN should be used to load the driver. The driver > has a list of IDs it can drive, and we want the module loading > machinery to load a module which can driver this ID. See [1]. It is used to overwrite the PHY ID. Which I think works in the c22 case. > "ethernet-phy-ieee802.3-c45" should be about how to read the ID > registers, if ethernet-phy-idNNNN.NNNN is not present. And if it's present? See [2]. -michael [1] https://elixir.bootlin.com/linux/v6.4.3/source/Documentation/devicetree/bindings/net/ethernet-phy.yaml#L38 [2] https://elixir.bootlin.com/linux/v6.4.3/source/Documentation/devicetree/bindings/net/ethernet-phy.yaml#L50