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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE097C388F7 for ; Mon, 9 Nov 2020 13:33:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92A262065D for ; Mon, 9 Nov 2020 13:33:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732756AbgKINdC (ORCPT ); Mon, 9 Nov 2020 08:33:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:42850 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732249AbgKINdA (ORCPT ); Mon, 9 Nov 2020 08:33:00 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kc7Hq-0065hb-8j; Mon, 09 Nov 2020 14:32:46 +0100 Date: Mon, 9 Nov 2020 14:32:46 +0100 From: Andrew Lunn To: Wong Vee Khee Cc: Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ong Boon Leong , Voon Wei Feng Subject: Re: [PATCH net-next 1/1] net: phy: Allow mdio buses to probe C45 before falling back to C22 Message-ID: <20201109133246.GC1429655@lunn.ch> References: <20201109124347.13087-1-vee.khee.wong@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201109124347.13087-1-vee.khee.wong@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 08:43:47PM +0800, Wong Vee Khee wrote: > This patch makes mdiobus_scan() to try on C45 first as C45 can access > all devices. This allows the function available for the PHY that > supports for both C45 and C22. > > Reviewed-by: Voon Weifeng > Reviewed-by: Ong Boon Leong > Signed-off-by: Wong Vee Khee Hi You need to add a user of this. And i would like to see a more detailed explanation of why it is needed. The PHY driver is free to do either C45 or C22 transfers. Why does it care how the device was found? Plus you can generally access C45 registers via the C45 over C22. If the PHY does not allow C45 over C22, then i expect the driver needs to be aware of if the PHY can be access either way, and it needs to do different things. And there is no PHY driver that i know of which does this. So before this goes any further, we need to see the bigger picture. Andrew