linux/drivers/net/ethernet
Francois Romieu 307723255a e1000: remove dead e1000_init_eeprom_params calls
The device probe method e1000_probe calls e1000_init_eeprom_params
itself so there's no reason to call it again from e1000_do_write_eeprom
or e1000_do_read_eeprom.

The sentence above assumes that e1000_init_eeprom_params is effective.
e1000_init_eeprom_params depends mostly on hw->mac_type and e1000_probe
bails out early if it can't set mac_type (see e1000_init_hw_struct, then
e1000_set_mac_type), qed.

Btw, if effective, the removed paths would had been deadlock prone when
e1000_eeprom_spi was set:
-> e1000_write_eeprom (takes e1000_eeprom_lock)
   -> e1000_do_write_eeprom
      -> e1000_init_eeprom_params
         -> e1000_read_eeprom (takes e1000_eeprom_lock)

(same narrative with e1000_read_eeprom -> e1000_do_read_eeprom etc.)

As a final note, the candidate deadlock above can't happen in e1000_probe
due to the way eeprom->word_size is set / tested.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-09-22 15:58:28 -07:00
..
3com 3c59x: Add BQL support for 3c59x ethernet driver. 2015-08-24 12:20:58 -07:00
8390
adaptec
adi
aeroflex
agere
allwinner net: sun4i-emac: Claim emac sram 2015-08-25 13:48:59 -07:00
alteon
altera net: eth: altera: Fix the initial device operstate 2015-09-09 12:10:15 -07:00
amd treewide: fix typos in comment blocks 2015-08-07 14:46:24 +02:00
apm driver: net: xgene: Add support for 2nd 10GbE port 2015-09-15 12:47:46 -07:00
apple
arc
atheros net: atl1c: add BQL support 2015-08-12 16:27:40 -07:00
broadcom net: bcmgenet: Remove duplicate test for tx_coalesce_usecs_high 2015-09-21 16:26:12 -07:00
brocade bna: fix interrupts storm caused by erroneous packets 2015-08-10 10:58:37 -07:00
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-07-31 23:52:20 -07:00
calxeda
cavium net: cavium: liquidio: use kzalloc in setup_glist() 2015-09-09 17:06:00 -07:00
chelsio cxgb4: changes for new firmware 1.14.4.0 2015-09-09 21:30:18 -07:00
cirrus
cisco flow_dissector: Add flags argument to skb_flow_dissector functions 2015-09-01 15:06:22 -07:00
davicom dm9000: fix a typo 2015-09-08 22:44:42 -07:00
dec
dlink
emulex be2net: Revert "make the RX_FILTER command asynchronous" commit 2015-09-05 22:01:21 -07:00
ezchip NET: nps_enet: minor namespace cleanup 2015-08-23 16:08:54 -07:00
faraday
freescale net: fec: add netif status check before set mac address 2015-09-09 20:30:10 -07:00
fujitsu
hisilicon net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00
hp
i825xx
ibm ibmveth: add support for TSO6 2015-07-15 21:34:56 -07:00
icplus net: icplus: fix typo in constant name 2015-06-29 15:57:50 -07:00
intel e1000: remove dead e1000_init_eeprom_params calls 2015-09-22 15:58:28 -07:00
marvell mv643xx_eth: Neaten mv643xx_eth_program_multicast_filter 2015-09-15 12:49:11 -07:00
mellanox Changes for 4.3 2015-09-09 08:33:31 -07:00
micrel net: ethernet: micrel: fix an error code 2015-08-17 12:23:22 -07:00
microchip
moxa
myricom Minor merge needed, due to function move. 2015-07-01 10:49:25 -07:00
natsemi
neterion neterion: s2io: Use module_pci_driver 2015-07-09 00:19:00 -07:00
nuvoton
nvidia
nxp
octeon
oki-semi
packetengines
pasemi
qlogic net: qlcnic: delete redundant memsets 2015-09-09 17:06:01 -07:00
qualcomm
rdc
realtek r8169: Fix sleeping function called during get_stats64, v2 2015-09-10 10:06:11 -07:00
renesas Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-08-30 21:45:01 -07:00
rocker rocker: use change upper info 2015-08-27 16:28:35 -07:00
samsung
seeq
sfc sfc: Allow driver to cope with a lower number of VIs than it needs for RSS 2015-08-28 13:53:47 -07:00
sgi
silan
sis sis900: Trivial: Fix typos in enums 2015-06-29 12:52:06 -07:00
smsc net: smc91x: convert pxa dma to dmaengine 2015-09-17 13:36:52 -07:00
stmicro stmmac: fix check for phydev being open 2015-09-09 17:07:43 -07:00
sun niu: don't count tx error twice in case of headroom realloc fails 2015-07-26 21:17:54 -07:00
synopsys ethernet: synopsys: SYNOPSYS_DWC_ETH_QOS should depend on HAS_DMA 2015-09-06 19:48:53 -07:00
tehuti
ti drivers: net: cpsw-common: add support for reading mac address for dra7 and am437x platforms 2015-09-21 17:21:46 -07:00
tile nohz: Prevent tilegx network driver interrupts 2015-07-29 15:44:59 +02:00
toshiba
tundra
via net: via: VIA_RHINE and VIA_VELOCITY should depend on HAS_DMA 2015-06-28 20:20:55 -07:00
wiznet
xilinx net: axienet: Fix devm_ioremap_resource return value check 2015-07-09 21:43:16 -07:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c net: ec_bhf: Use module_pci_driver 2015-07-08 16:04:06 -07:00
ethoc.c net: ethoc: Remove unnecessary #ifdef CONFIG_OF 2015-09-09 14:16:05 -07:00
fealnx.c
jme.c net: jme: use kzalloc() instead of kmalloc+memset 2015-09-09 17:06:00 -07:00
jme.h
Kconfig dwc_eth_qos: Add the synopsys folder to the build system. 2015-07-28 23:55:00 -07:00
korina.c
lantiq_etop.c
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-08-27 21:45:31 -07:00
netx-eth.c