netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Glen Gray <glen.gray@lincor.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: jgarzik@pobox.com, netdev@vger.kernel.org,
	Edward Hsu <edward_hsu@realtek.com.tw>
Subject: Re: [PATCH 13/13] r8169: more phy init for the 8168
Date: Wed, 24 Oct 2007 10:29:11 +0100	[thread overview]
Message-ID: <471F1067.50403@lincor.com> (raw)
In-Reply-To: <20071018210224.GN31724@electric-eye.fr.zoreil.com>

Are any of these likely to fix the Ethernet multicast issues a few of us 
have seen with 8110sc cards ?

Francois Romieu wrote:
> Realtek's r8168 driver version 8.003.00 adds new init sequences
> (they do not appear in version 8.002.00).
>
> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
> Cc: Edward Hsu <edward_hsu@realtek.com.tw>
> ---
>  drivers/net/r8169.c |   34 ++++++++++++++++++++++++++++++++++
>  1 files changed, 34 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
> index 8ffd573..e8960f2 100644
> --- a/drivers/net/r8169.c
> +++ b/drivers/net/r8169.c
> @@ -1243,6 +1243,16 @@ static void rtl8169sb_hw_phy_config(void __iomem *ioaddr)
>  
>  	rtl_phy_write(ioaddr, phy_reg_init, ARRAY_SIZE(phy_reg_init));
>  }
> +static void rtl8168b_hw_phy_config(void __iomem *ioaddr)
> +{
> +	struct phy_reg phy_reg_init[] = {
> +		{ 0x1f, 0x0000 },
> +		{ 0x10, 0xf41b },
> +		{ 0x1f, 0x0000 }
> +	};
> +
> +	rtl_phy_write(ioaddr, phy_reg_init, ARRAY_SIZE(phy_reg_init));
> +}
>  
>  static void rtl8168cp_hw_phy_config(void __iomem *ioaddr)
>  {
> @@ -1279,6 +1289,22 @@ static void rtl8168c_hw_phy_config(void __iomem *ioaddr)
>  	rtl_phy_write(ioaddr, phy_reg_init, ARRAY_SIZE(phy_reg_init));
>  }
>  
> +static void rtl8168cx_hw_phy_config(void __iomem *ioaddr)
> +{
> +	struct phy_reg phy_reg_init[] = {
> +		{ 0x1f, 0x0000 },
> +		{ 0x12, 0x2300 },
> +		{ 0x1f, 0x0003 },
> +		{ 0x16, 0x0f0a },
> +		{ 0x1f, 0x0000 },
> +		{ 0x1f, 0x0002 },
> +		{ 0x0c, 0x7eb8 },
> +		{ 0x1f, 0x0000 }
> +	};
> +
> +	rtl_phy_write(ioaddr, phy_reg_init, ARRAY_SIZE(phy_reg_init));
> +}
> +
>  static void rtl_hw_phy_config(struct net_device *dev)
>  {
>  	struct rtl8169_private *tp = netdev_priv(dev);
> @@ -1296,12 +1322,20 @@ static void rtl_hw_phy_config(struct net_device *dev)
>  	case RTL_GIGA_MAC_VER_04:
>  		rtl8169sb_hw_phy_config(ioaddr);
>  		break;
> +	case RTL_GIGA_MAC_VER_11:
> +	case RTL_GIGA_MAC_VER_12:
> +	case RTL_GIGA_MAC_VER_17:
> +		rtl8168b_hw_phy_config(ioaddr);
> +		break;
>  	case RTL_GIGA_MAC_VER_18:
>  		rtl8168cp_hw_phy_config(ioaddr);
>  		break;
>  	case RTL_GIGA_MAC_VER_19:
>  		rtl8168c_hw_phy_config(ioaddr);
>  		break;
> +	case RTL_GIGA_MAC_VER_20:
> +		rtl8168cx_hw_phy_config(ioaddr);
> +		break;
>  	default:
>  		break;
>  	}
>   


-- 
Glen Gray <glen@lincor.com>              Digital Depot, Thomas Street
Senior Software Engineer                            Dublin 8, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 4893682


  reply	other threads:[~2007-10-24  9:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18 20:48 [PATCH 00/13] r8169: pull request for 'upstream-jeff' branch Francois Romieu
2007-10-18 20:59 ` [PATCH 01/13] r8169: add KERN_DEBUG to dprintk (trivial) Francois Romieu
2007-10-18 21:01 ` [PATCH 04/13] r8169: MSI support Francois Romieu
2007-10-19  7:59   ` Rolf Eike Beer
2007-10-18 21:01 ` [PATCH 05/13] r8169: remove private net_device_stats structure Francois Romieu
2007-10-18 21:01 ` [PATCH 06/13] r8169: use the existing symbolic name of vendor PCI ID 0x1259 Francois Romieu
2007-10-18 21:01 ` [PATCH 07/13] r8169: add MAC identifiers Francois Romieu
2007-10-18 21:01 ` [PATCH 08/13] r8169: remove dead wood Francois Romieu
2007-10-18 21:01 ` [PATCH 09/13] r8169: make room for more phy init changes Francois Romieu
2007-10-18 21:02 ` [PATCH 10/13] r8169: phy init for the 8168 Francois Romieu
2007-10-18 21:02 ` [PATCH 11/13] r8169: phy init cleanup Francois Romieu
2007-10-18 21:02 ` [PATCH 12/13] r8169: update the phy init for the 8168C Francois Romieu
2007-10-18 21:02 ` [PATCH 13/13] r8169: more phy init for the 8168 Francois Romieu
2007-10-24  9:29   ` Glen Gray [this message]
2007-10-24 22:14     ` Francois Romieu
     [not found]       ` <5B10F916-9877-4954-84E7-7F4FE26875C4@lincor.com>
     [not found]         ` <20071031211006.GA12688@electric-eye.fr.zoreil.com>
2008-03-13 14:20           ` Glen Gray
2008-03-14 12:33             ` Glen Gray
2007-10-24  0:13 ` [PATCH 00/13] r8169: pull request for 'upstream-jeff' branch Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471F1067.50403@lincor.com \
    --to=glen.gray@lincor.com \
    --cc=edward_hsu@realtek.com.tw \
    --cc=jgarzik@pobox.com \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).