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 9B26DEB64DC for ; Wed, 19 Jul 2023 00:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjGSAE0 (ORCPT ); Tue, 18 Jul 2023 20:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGSAEZ (ORCPT ); Tue, 18 Jul 2023 20:04:25 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719E01BE2; Tue, 18 Jul 2023 17:03:59 -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=qKSs/GhjDKvKDvpu4wuEhgU/FW9hGWlYn3svaB7ZpIE=; b=1RWmYl7YH83beIFBTnXhfUo3Tc cUMePwzNLiMq0qMU1AngQfw6UIrbPwYnKVwGd+KVVZeGBRSEjsBIpKp5CopzpOaV+UocUNipUkZ/V 6Oe0VU3pMnWPyUPKur2DXnLmKrxrE36KpwjZXyZQBi7TLWE43/EnihU8ujGDWugX+vo8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qLufK-001fwb-PP; Wed, 19 Jul 2023 02:03:38 +0200 Date: Wed, 19 Jul 2023 02:03:38 +0200 From: Andrew Lunn To: Michael Walle 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 , Marek =?iso-8859-1?Q?Beh=FAn?= , 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() Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230620-feature-c45-over-c22-v3-10-9eb37edf7be0@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. "ethernet-phy-ieee802.3-c45" should be about how to read the ID registers, if ethernet-phy-idNNNN.NNNN is not present. Andrew