Re: via-rhine breaks with recent Linus kernels : probe of 0000:00:09.0 failed with error -5

From: Roger Luethi
Date: Mon Jul 12 2004 - 03:11:47 EST


[ removed Donald Becker from Cc: -- I doubt he has much interest in
the mainline via-rhine ]

On Mon, 12 Jul 2004 03:49:35 +0200, Jesper Juhl wrote:
> I've noticed that with recent kernels from Linus' tree the via-rhine
> driver that I use for my NIC seems to have broken.
>
> I don't recall any problems with kernels prior to 2.6.7
> 2.6.7 vanilla - works.
> 2.6.7-BK20 - breaks
> 2.6.8-rc1 - breaks
> 2.6.7-mm1,-mm2,-mm3,-mm6,-mm7 all work
> I haven't tested earlier BK snapshots, but I'm willing to do so if wanted.
>
> I get the following from the kernels that break:
> Invalid MAC address for card #0
> via-rhine: probe of 0000:00:09.0 failed with error -5

I had this happen recently when I moved from rc3-bk6 to bk20. When I
started to look into it, the problem went away and never came back.

There are some subtle timing issues with chip resets and reloading the
EEPROM. So far, it was the Rhine-I which has been more sensitive, but
when I hit this problem Rhine-I was fine while Rhine-II and Rhine-III
were not.

You can try adding an msleep(5) before and after reload_eeprom (make
sure you get the right one, mainline still has two ifdef'ed calls),
or you can try switching drivers between mainline and -mm.

I'd be happy to tell people to just go with the latest driver which
is the one in -mm, but I'm afraid mainline might be exposing a problem
that still lingers in -mm.

Roger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/