[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d62710c3-7813-7506-f209-fcfa65931778@huawei.com>
Date: Wed, 25 Nov 2020 23:03:46 +0800
From: Yonglong Liu <liuyonglong@...wei.com>
To: Antonio Borneo <antonio.borneo@...com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, <netdev@...r.kernel.org>,
Willy Liu <willy.liu@...ltek.com>
CC: <linuxarm@...wei.com>, Salil Mehta <salil.mehta@...wei.com>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 net-next] net: phy: realtek: read actual speed on
rtl8211f to detect downshift
Tested-by: Yonglong Liu <liuyonglong@...wei.com>
On 2020/11/25 7:07, Antonio Borneo wrote:
> The rtl8211f supports downshift and before commit 5502b218e001
> ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status")
> the read-back of register MII_CTRL1000 was used to detect the
> negotiated link speed.
> The code added in commit d445dff2df60 ("net: phy: realtek: read
> actual speed to detect downshift") is working fine also for this
> phy and it's trivial re-using it to restore the downshift
> detection on rtl8211f.
>
> Add the phy specific read_status() pointing to the existing
> function rtlgen_read_status().
>
> Signed-off-by: Antonio Borneo <antonio.borneo@...com>
> Link: https://lore.kernel.org/r/478f871a-583d-01f1-9cc5-2eea56d8c2a7@huawei.com
> ---
> To: Andrew Lunn <andrew@...n.ch>
> To: Heiner Kallweit <hkallweit1@...il.com>
> To: Russell King <linux@...linux.org.uk>
> To: "David S. Miller" <davem@...emloft.net>
> To: Jakub Kicinski <kuba@...nel.org>
> To: netdev@...r.kernel.org
> To: Yonglong Liu <liuyonglong@...wei.com>
> To: Willy Liu <willy.liu@...ltek.com>
> Cc: linuxarm@...wei.com
> Cc: Salil Mehta <salil.mehta@...wei.com>
> Cc: linux-stm32@...md-mailman.stormreply.com
> Cc: linux-kernel@...r.kernel.org
> In-Reply-To: <20201124143848.874894-1-antonio.borneo@...com>
>
> V1 => V2
> move from a generic implementation affecting every phy
> to a rtl8211f specific implementation
> V2 => V3
> rebase on netdev-next, resolving minor conflict after
> merge of 8b43357fff61
> ---
> drivers/net/phy/realtek.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
> index f71eda945c6a..99ecd6c4c15a 100644
> --- a/drivers/net/phy/realtek.c
> +++ b/drivers/net/phy/realtek.c
> @@ -729,6 +729,7 @@ static struct phy_driver realtek_drvs[] = {
> PHY_ID_MATCH_EXACT(0x001cc916),
> .name = "RTL8211F Gigabit Ethernet",
> .config_init = &rtl8211f_config_init,
> + .read_status = rtlgen_read_status,
> .config_intr = &rtl8211f_config_intr,
> .handle_interrupt = rtl8211f_handle_interrupt,
> .suspend = genphy_suspend,
>
> base-commit: 1d155dfdf50efc2b0793bce93c06d1a5b23d0877
Powered by blists - more mailing lists