From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 8139too.c patch to allow setting of MAC address to actually work.
Date: Thu, 11 Jan 2001 14:26:06 -0500 [thread overview]
Message-ID: <3A5E08CE.1F67629@mandrakesoft.com> (raw)
In-Reply-To: <3A556E47.522FCE7@candelatech.com>
Ben Greear wrote:
>
> This was gleaned from conversations with Donald Becker w/regard
> to why: ifconfig eth1 hw ether a:b:c:d:e:f
> fails to work with the RTL drivers.
>
> This fixes the problem, at least on my machine:
>
> (The new line has ### in front of it..)
>
> 8139too.c, line 1229, from kernel 2.4.prerelease:
>
> /* Check that the chip has finished the reset. */
> for (i = 1000; i > 0; i--)
> if ((RTL_R8 (ChipCmd) & CmdReset) == 0)
> break;
>
> /* Restore our idea of the MAC address. */
> ### RTL_W8_F (Cfg9346, 0xC0); /* Fix provided by Becker */
> RTL_W32_F (MAC0 + 0, cpu_to_le32 (*(u32 *) (dev->dev_addr + 0)));
> RTL_W32_F (MAC0 + 4, cpu_to_le32 (*(u32 *) (dev->dev_addr + 4)));
>
> The 2.2.18 driver is broken too, but I think Donald is going to send
> the fixes for it.
I have updated 8139too to include this and other changes. The new
version can be downloaded from the SourceForge project page
(http://sourceforge.net/projects/gkernel/), and hopefully it should show
up in a release kernel eventually...
Jeff
--
Jeff Garzik | "You see, in this world there's two kinds of
Building 1024 | people, my friend: Those with loaded guns
MandrakeSoft | and those who dig. You dig." --Blondie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2001-01-11 19:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-05 6:48 [PATCH] 8139too.c patch to allow setting of MAC address to actually work Ben Greear
2001-01-11 19:26 ` Jeff Garzik [this message]
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=3A5E08CE.1F67629@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
/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