android_kernel_motorola_sm6225/drivers/net/ibm_newemac
Benjamin Herrenschmidt 937f1ba56b net: Add init_dummy_netdev() and fix EMAC driver using it
This adds an init_dummy_netdev() function that gets a network device
structure (allocation and lifetime entirely under caller's control) and
initialize the minimum amount of fields so it can be used to schedule
NAPI polls without registering a full blown interface. This is to be
used by drivers that need to tie several hardware interfaces to a single
NAPI poll scheduler due to HW limitations.

It also updates the ibm_newemac driver to use that, this fixing the
oops on 2.6.29 due to passing NULL as "dev" to netif_napi_add()

Symbol is exported GPL only a I don't think we want binary drivers doing
that sort of acrobatics (if we want them at all).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-01-14 21:05:05 -08:00
..
core.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-10-31 00:17:34 -07:00
core.h ibm_newemac: Fix EMAC soft reset on 460EX/GT 2008-10-08 15:27:14 -07:00
debug.c ibm_newemac: Parameterize EMAC Multicast Match Handling 2008-07-09 16:30:46 +10:00
debug.h ibm_newemac: Update file headers copyright notices 2007-12-07 15:09:06 -05:00
emac.h ibm_newemac: Parameterize EMAC Multicast Match Handling 2008-07-09 16:30:46 +10:00
Kconfig Merge commit 'origin' 2008-10-15 11:31:54 +11:00
Makefile
mal.c net: Add init_dummy_netdev() and fix EMAC driver using it 2009-01-14 21:05:05 -08:00
mal.h net: Add init_dummy_netdev() and fix EMAC driver using it 2009-01-14 21:05:05 -08:00
phy.c Merge commit 'origin' 2008-10-15 11:31:54 +11:00
phy.h ibm_newemac: Add support for GPCS, SGMII and M88E1112 PHY 2008-10-02 13:06:42 -04:00
rgmii.c ibm_newemac: Add MII mode support to the EMAC RGMII bridge. 2008-07-15 12:39:05 +10:00
rgmii.h ibm_newemac: Update file headers copyright notices 2007-12-07 15:09:06 -05:00
tah.c ibm_newemac: Fix section mismatch warnings 2008-04-25 02:08:06 -04:00
tah.h ibm_newemac: Update file headers copyright notices 2007-12-07 15:09:06 -05:00
zmii.c ibm_newemac: Fix section mismatch warnings 2008-04-25 02:08:06 -04:00
zmii.h ibm_newemac: Update file headers copyright notices 2007-12-07 15:09:06 -05:00