]> git.baikalelectronics.ru Git - kernel.git/commit
[netdrvr] au1000_eth: Spinlock initialisation fix
authorMartin Gebert <martin.gebert@alpha-bit.de>
Wed, 23 Jul 2008 07:40:09 +0000 (09:40 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:48:58 +0000 (18:48 -0400)
commit7c1f1a012875b93aacedd72e523e830519740afb
tree516d09b5cd590c27f4a15f7740a617265ac143e7
parentf04d49e76fbf24e7aaeb7a977f02bb5bd046d1a0
[netdrvr] au1000_eth: Spinlock initialisation fix

Seems like the spinlock for the AU1x00 ethernet device is initialised too
late, as it is already used in enable_mac(), which is called via
mii_probe() before the init takes place.

The attached patch is working here for a Linux Au1100 2.6.22.6 kernel,
and as far as I checked should also be applicable to the current head
(just line numbers differ).

Signed-off-by: Martin Gebert <Martin.Gebert@alpha-bit.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/au1000_eth.c