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 D406DC433FE for ; Tue, 8 Nov 2022 15:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234408AbiKHPoS (ORCPT ); Tue, 8 Nov 2022 10:44:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234116AbiKHPoO (ORCPT ); Tue, 8 Nov 2022 10:44:14 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C73646C; Tue, 8 Nov 2022 07:44:13 -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=8TqbaU07aclaomhChPLaLFd7kSDN7P7+FmqiwxgjVgI=; b=R514F4pQyViqLQ2jiq8GIh3fqK +NjNt+Sc2YLEPOnL3WhncT9XkdhyQpiyPjDF+8u3H8QYWGUY+AbGs+JfJR1r1xZaXaMGI2/bHCxqI mtBswEA3BzjYjnLAEzj7dTD6xwwRQ7DO+ySy6YEZaw48IpRBbOUYCe6P+toAuYR6pT2s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1osQlf-001pox-Tf; Tue, 08 Nov 2022 16:44:03 +0100 Date: Tue, 8 Nov 2022 16:44:03 +0100 From: Andrew Lunn To: Michael Sit Wei Hong Cc: Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tan Tee Min , Looi Hong Aun , Voon Weifeng , Zulkifli Muhammad Husaini , Gan Yi Fang Subject: Re: [PATCH net-next 1/1] net: phy: dp83867: add TI PHY loopback Message-ID: References: <20221108101527.612723-1-michael.wei.hong.sit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108101527.612723-1-michael.wei.hong.sit@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2022 at 06:15:27PM +0800, Michael Sit Wei Hong wrote: > From: Tan Tee Min > > The existing genphy_loopback() is not working for TI DP83867 PHY as it > will disable autoneg support while another side is still enabling autoneg. > This is causing the link is not established and results in timeout error > in genphy_loopback() function. > > Thus, based on TI PHY datasheet, introduce a TI PHY loopback function by > just configuring BMCR_LOOPBACK(Bit-9) in MII_BMCR register (0x0). > > Tested working on TI DP83867 PHY for all speeds (10/100/1000Mbps). > > Signed-off-by: Tan Tee Min Reviewed-by: Andrew Lunn Andrew