linux/drivers/net/arm
Russell King 8cfd9e923b [ARM] RiscPC: Fix etherh oops
The 8390 driver was structured by Al Viro to allow the flexibility
required by platforms.  lib8390.c contains the core code which drivers
explicitly include:
- 8390.c includes lib8390.c to provide the standard ISA based driver.
- etherh.c includes it with the accessors defined for RiscPC platforms,
  where it is addressed via the MMIO accessors with a device dependent
  register spacing.

Other platform drivers do something similar.

However, b9a9b4b caused the kernel to contain not only the etherh
private build of lib8390 (included in etherh.c) but also lib8390.c
itself, and referred the new net_device_ops methods to the ISA version.
The result of this is is not pretty:

Unable to handle kernel paging request at virtual address 12032030
pgd = c8330000
[12032030] *pgd=00000000
Internal error: Oops: 18331805 [#1]
Modules linked in: ipv6
CPU: 0    Not tainted  (2.6.29-rc3 #167)
PC is at do_set_multicast_list+0xd0/0x190
LR is at bitrev32+0x28/0x34
pc : [<c017aab4>]    lr : [<c0139120>]    psr: a0000093
sp : c8321d9c  ip : c8321d84  fp : c8321dbc
r10: c80c6800  r9 : 00000000  r8 : c80c6b60
r7 : c80c6b80  r6 : cc80c800  r5 : c80c6800  r4 : 00000000
r3 : cc80c80c  r2 : 00000004  r1 : 00000007  r0 : e0000000
Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
...

Fix up b9a9b4b by making etherh's net_device_ops refer to the internal
lib8390 functions, and remove the build of the ISA 8390.c driver.

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-02-22 12:40:06 +00:00
..
am79c961a.c [NET] am79c961a: fix spin_lock usage 2009-01-24 23:21:33 +00:00
am79c961a.h
at91_ether.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
at91_ether.h at91_ether: use netstats in net_device structure 2008-07-22 19:45:41 -04:00
ep93xx_eth.c net: Fix more NAPI interface netdev argument drop fallout. 2008-12-29 18:18:24 -08:00
ether1.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
ether1.h
ether3.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
ether3.h
etherh.c [ARM] RiscPC: Fix etherh oops 2009-02-22 12:40:06 +00:00
ixp4xx_eth.c net: Fix more NAPI interface netdev argument drop fallout. 2008-12-29 18:18:24 -08:00
Kconfig IXP4xx: Add PHYLIB support to Ethernet driver. 2008-12-22 00:42:55 +01:00
ks8695net.c netdev: missing validate_address hooks 2009-01-11 00:06:42 -08:00
ks8695net.h net: Add support for the KS8695 ethernet devices. 2008-12-11 21:00:29 -08:00
Makefile [ARM] RiscPC: Fix etherh oops 2009-02-22 12:40:06 +00:00