[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8906876a59cfd1db917953fbf49475c9efc67023.camel@perches.com>
Date: Sat, 21 Mar 2020 11:55:08 -0700
From: Joe Perches <joe@...ches.com>
To: Heiner Kallweit <hkallweit1@...il.com>,
Realtek linux nic maintainers <nic_swsd@...ltek.com>,
David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] r8169: add new helper rtl8168g_enable_gphy_10m
On Sat, 2020-03-21 at 19:08 +0100, Heiner Kallweit wrote:
> Factor out setting GPHY 10M to new helper rtl8168g_enable_gphy_10m.
[]
> diff --git a/drivers/net/ethernet/realtek/r8169_phy_config.c b/drivers/net/ethernet/realtek/r8169_phy_config.c
[]
> @@ -796,6 +796,11 @@ static void rtl8168g_disable_aldps(struct phy_device *phydev)
> phy_modify_paged(phydev, 0x0a43, 0x10, BIT(2), 0);
> }
>
> +static void rtl8168g_enable_gphy_10m(struct phy_device *phydev)
> +{
> + phy_modify_paged(phydev, 0x0a44, 0x11, 0, BIT(11));
> +}
Perhaps this should be some generic to set characteristics like:
enum rtl8168g_char {
...
}
static void rtl8168g_enable_char(struct phy_device *phydev,
enum rtl8168g_char type)
{
switch (type) {
case FOO:
etc...
}
Powered by blists - more mailing lists