Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3207300pxb; Mon, 9 Nov 2020 05:36:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDBZD91Dnv3cBzK8CPl1K0zgwpPs7Yx989DtJTy3iLoQCegEWjwtlUOZz8X9r1pQbOkcAn X-Received: by 2002:a05:6402:1f0:: with SMTP id i16mr15036096edy.122.1604928996572; Mon, 09 Nov 2020 05:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604928996; cv=none; d=google.com; s=arc-20160816; b=Y9RN/oNppV2I17T/Jgn76i75LWr/7mp1Tbc7/2VaMbvYLEu8M080AtG00NwufWK4Jy 3ChZsWSkNJ3kq0A8uKHu7TKFtNo9WPK+NXOZR1RMGjJp6PU9H/VLdAb2OGKKC4ohosxr npgRCoYTosg4j8gxsp4KKHMb7ImLeeaxU1KhgFIsKGWdqfUt4VaagYoTJQ/JU1ReGIRD HwVzAK0drh2JeApjivoXt1k0gEEnsyAdbqLqn9MmnxgL7ynRYngS/oJ5YtT4FNUr6gnI XuDlnCpY67DdKTB3rEeMie9DW0VPd4vCDxtb4KRtIS0rRg+9D344zT4PHJCAfXBAidkC 3EYQ== 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; bh=AzzX2PskrTx4cpnb9kFj+fWcr0CBz2mxvv4ItXl2Bl4=; b=mIaIDjNnJG+cbX/89ceKR9ldpS21rhKXoPExdCg+TySAsVSPB/3q4PZyr+jFUjycha XA7bU1KP68VcijI0cRxskKfUdpkBKCMebfcqO3phSSu5BVABAhkdPOZcOkloSbZwVZvq FZSo/Ewo30NgVPW2iOWAl4xP7UHW4jiEsA5e4enDsVZpnPLJib7es6YdftvTGeirteAm ey5ntAOtqXwCwCxXF9yVlIAnZWoTkNAjhc8Qe3X6ZqsdpB1ccVtv2O4vUhXEYXHAsC+j 1ISDragC2WOAuzrj33nuy37Rtl5Sn+iIU6hIgsXOfekwpWy/5xur1RuMVqCP7nkiyXrl rZTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si7641744edl.557.2020.11.09.05.36.13; Mon, 09 Nov 2020 05:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732021AbgKINdC (ORCPT + 99 others); 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