OpenCloudOS-Kernel/drivers/net/sfc
Ben Hutchings a5211bb5f7 sfc: Move MTD probe after netdev registration and name allocation
The MTD partition is named based on the netdev name, which is set to
'eth%d' before registration.  Also, the MTD partition will currently
be left registered if netdev registration fails.

Fix both these problems by moving the MTD probe after netdev
registration.  Hold the RTNL to serialise this with the netdev
notifier that calls efx_mtd_rename().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-24 04:27:24 -07:00
..
Kconfig sfc: Use generic MDIO functions and definitions 2009-04-29 17:32:30 -07:00
Makefile sfc: Merge sfe4001.c into falcon_boards.c 2009-10-24 04:26:55 -07:00
bitfield.h sfc: Remove versioned bitfield macros 2009-10-24 04:26:56 -07:00
efx.c sfc: Move MTD probe after netdev registration and name allocation 2009-10-24 04:27:24 -07:00
efx.h sfc: Remove pointless abstraction of memory BAR number 2009-10-24 04:27:18 -07:00
enum.h sfc: Add support for Solarflare 10Xpress SFT9001 2008-12-12 22:00:17 -08:00
ethtool.c sfc: Maintain interrupt moderation values in ticks, not microseconds 2009-10-24 04:27:15 -07:00
ethtool.h netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
falcon.c sfc: Merge falcon_probe_phy() into falcon_probe_port() 2009-10-24 04:27:18 -07:00
falcon.h sfc: Remove declarations of nonexistent functions 2009-10-24 04:27:13 -07:00
falcon_boards.c sfc: Merge struct efx_blinker into struct efx_board 2009-10-24 04:27:08 -07:00
falcon_gmac.c sfc: Rename register I/O header and functions used by both Falcon and Siena 2009-10-24 04:27:04 -07:00
falcon_xmac.c sfc: Rename register I/O header and functions used by both Falcon and Siena 2009-10-24 04:27:04 -07:00
io.h sfc: Rename register I/O header and functions used by both Falcon and Siena 2009-10-24 04:27:04 -07:00
mac.h sfc: Add support for sub-10G speeds 2008-12-12 21:58:17 -08:00
mdio_10g.c sfc: Remove boards.h, moving last remaining declaration to falcon.h 2009-10-24 04:26:56 -07:00
mdio_10g.h sfc: Remove boards.h, moving last remaining declaration to falcon.h 2009-10-24 04:26:56 -07:00
mtd.c drivers/net/sfc: fix sparse warnings: Should it be static? 2009-02-18 17:49:50 -08:00
net_driver.h sfc: Removed kernel-doc for nonexistent member of efx_phy_operations 2009-10-24 04:27:17 -07:00
phy.h sfc: Add support for QT2025C PHY 2009-03-02 03:15:04 -08:00
regs.h sfc: Update hardware definitions for Siena 2009-10-24 04:27:03 -07:00
rx.c sfc: Eliminate indirect lookups of queue size constants 2009-10-24 04:27:05 -07:00
rx.h sfc: Replace LRO with GRO 2009-01-21 14:34:06 -08:00
selftest.c sfc: Eliminate indirect lookups of queue size constants 2009-10-24 04:27:05 -07:00
selftest.h sfc: Use generic MDIO functions and definitions 2009-04-29 17:32:30 -07:00
spi.h sfc: Clean up waits for flash/EEPROM operations 2008-12-12 21:57:35 -08:00
tenxpress.c sfc: Update hardware definitions for Siena 2009-10-24 04:27:03 -07:00
tx.c sfc: Move all TX DMA length limiting into tx.c 2009-10-24 04:27:07 -07:00
tx.h netdev: convert bulk of drivers to netdev_tx_t 2009-09-01 01:14:07 -07:00
workarounds.h sfc: Move all TX DMA length limiting into tx.c 2009-10-24 04:27:07 -07:00
xfp_phy.c sfc: QT2025C: Use hard reset only 2009-08-26 17:38:54 -07:00