netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "martin capitanio" <martin@capitanio.org>
To: "Cédric Augonnet" <cedric.augonnet@gmail.com>,
	"Francois Romieu" <romieu@fr.zoreil.com>,
	"Mario Limonciello" <Mario_Limonciello@dell.com>
Cc: kernel@vger.kernel.org, netdev@vger.kernel.org, c4p7n1@capitanio.org
Subject: Re: [patch inside] kernel crash, RTL8101E [10ec:8136]
Date: Thu, 24 Jul 2008 22:23:46 +0200 (MEST)	[thread overview]
Message-ID: <200807242023.m6OKNkwL013279@post.webmailer.de> (raw)

----- original message --------

Subject: Re: [patch inside] kernel crash, RTL8101E [10ec:8136]
Sent: Thu, 24 Jul 2008
From: Cédric Augonnet<cedric.augonnet@gmail.com>

> Hi all,
> 
> >        case RTL_GIGA_MAC_VER_04:
> >                rtl8169sb_hw_phy_config(ioaddr);
> >                break;
> > +       case RTL_GIGA_MAC_VER_13:
> > +       case RTL_GIGA_MAC_VER_16:
> > +               rtl8101_hw_phy_config(ioaddr);
> 
> Should not there be a "break;" here or is it intended to go through
> the next case as well?

Good question. If you can read c code and are willing to spend your time,
the answer may be buried here:

LINUX driver for kernel 2.6.X and 2.4.X (Support x86 and x64)
ftp://152.104.238.19/cn/nic/r8101-1.007.00.tar.bz2

> 
> >        case RTL_GIGA_MAC_VER_18:
> >                rtl8168cp_hw_phy_config(ioaddr);
> >                break;
> 
> Perhaps i missed something obvious, sorry if that's the case ...

No, there is nothing obvious, even in the Hsinchu Science Park ;-)

static void rtl8168cp_hw_phy_config(void __iomem *ioaddr)
{
	struct phy_reg phy_reg_init[] = {
		{ 0x1f, 0x0000 },
		{ 0x1d, 0x0f00 },
		{ 0x1f, 0x0002 },
		{ 0x0c, 0x1ec8 },
		{ 0x1f, 0x0000 }
	};

	rtl_phy_write(ioaddr, phy_reg_init, ARRAY_SIZE(phy_reg_init));
}

        Martin Capitanio


             reply	other threads:[~2008-07-24 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 20:23 martin capitanio [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30 18:05 [patch inside] kernel crash, RTL8101E [10ec:8136] c4p7n1
2008-07-28 20:58 martin capitanio
2008-07-27 19:04 c4p7n1
2008-07-28 18:40 ` Francois Romieu
2008-07-24 15:54 c4p7n1
2008-07-24 21:09 ` Francois Romieu
2008-07-24 15:34 martin capitanio
2008-07-24 15:57 ` Cédric Augonnet
2008-07-24 21:02   ` Francois Romieu

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=200807242023.m6OKNkwL013279@post.webmailer.de \
    --to=martin@capitanio.org \
    --cc=Mario_Limonciello@dell.com \
    --cc=c4p7n1@capitanio.org \
    --cc=cedric.augonnet@gmail.com \
    --cc=kernel@vger.kernel.org \
    --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).