net driver updates for 2.6.29
Subsystems (6)
PATCH 1/1 net driver updates for 2.6.29
We'll see if eepro100 removal sticks, this time...
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Documentation/feature-removal-schedule.txt | 7 - MAINTAINERS | 5 - drivers/net/Kconfig | 13 - drivers/net/Makefile | 1 - drivers/net/bnx2x_main.c | 3 +- drivers/net/cxgb3/cxgb3_main.c | 69 +- drivers/net/e100.c | 16 +- drivers/net/e1000/e1000_main.c | 7 +- drivers/net/eepro100.c | 2400 ---------------------------- drivers/net/epic100.c | 2 +- drivers/net/ixgb/ixgb_main.c | 3 +- drivers/net/qla3xxx.c | 4 +- drivers/net/s2io.c | 6 +- drivers/net/skge.c | 38 +- drivers/net/tc35815.c | 5 +- drivers/net/wan/dscc4.c | 3 +- drivers/net/wan/pc300too.c | 2 +- drivers/net/wan/pci200syn.c | 2 +- drivers/net/wireless/hostap/hostap_pci.c | 2 +- drivers/net/wireless/ipw2200.c | 2 +- drivers/net/wireless/rt2x00/rt2x00pci.c | 3 +- 21 files changed, 95 insertions(+), 2498 deletions(-) delete mode 100644 drivers/net/eepro100.c
Adrian Bunk (1):
The overdue eepro100 removal.
Arjan van de Ven (1):
pci: use pci_ioremap_bar() in drivers/net
Atsushi Nemoto (1):
tc35815: Define more Rx status bits
Divy Le Ray (1):
cxgb3 - enable lro control through ethtool
Rafael J. Wysocki (2):
skge: adapt skge to use reworked PCI PM
e100: adapt to the reworked PCI PM
Documentation/feature-removal-schedule.txt +0 -7
@@ -144,13 +144,6 @@ Who: Christoph Hellwig <[email protected]> --------------------------- -What: eepro100 network driver -When: January 2007 -Why: replaced by the e100 driver -Who: Adrian Bunk <[email protected]> - ---------------------------- - What: Unused EXPORT_SYMBOL/EXPORT_SYMBOL_GPL exports (temporary transition config option provided until then) The transition config option will also be removed at the same time.
MAINTAINERS +0 -5
@@ -1599,11 +1599,6 @@ L: [email protected] W: http://sourceforge.net/projects/acpi4asus S: Maintained -EEPRO100 NETWORK DRIVER -P: Andrey V. Savochkin -M: [email protected] -S: Maintained - EFS FILESYSTEM W: http://aeschi.ch.eu.org/efs/ S: Orphan
drivers/net/Kconfig +0 -13
@@ -1414,19 +1414,6 @@ config TC35815 depends on NET_PCI && PCI && MIPS select PHYLIB -config EEPRO100 - tristate "EtherExpressPro/100 support (eepro100, original Becker driver)" - depends on NET_PCI && PCI - select MII - help - If you have an Intel EtherExpress PRO/100 PCI network (Ethernet) - card, say Y and read the Ethernet-HOWTO, available from - <http://www.tldp.org/docs.html#howto>. - - To compile this driver as a module, choose M here. The module - will be called eepro100. - - config E100 tristate "Intel(R) PRO/100+ support" depends on NET_PCI && PCI
drivers/net/Makefile +0 -1
@@ -53,7 +53,6 @@ obj-$(CONFIG_VORTEX) += 3c59x.o obj-$(CONFIG_TYPHOON) += typhoon.o obj-$(CONFIG_NE2K_PCI) += ne2k-pci.o 8390.o obj-$(CONFIG_PCNET32) += pcnet32.o -obj-$(CONFIG_EEPRO100) += eepro100.o obj-$(CONFIG_E100) += e100.o obj-$(CONFIG_TLAN) += tlan.o obj-$(CONFIG_EPIC100) += epic100.o
drivers/net/bnx2x_main.c +1 -2
@@ -10087,8 +10087,7 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev, dev->irq = pdev->irq; - bp->regview =ioremap_nocache (dev->base_addr, -pci_resource_len (pdev,0 )); + bp->regview =pci_ioremap_bar (pdev,0 );if (!bp->regview) { printk(KERN_ERR PFX "Cannot map register space, aborting\n"); rc = -ENOMEM ;
drivers/net/cxgb3/cxgb3_main.c +57 -12
107 lines not on this page · raw message
drivers/net/e100.c +10 -6
@@ -2322,7 +2322,8 @@ static int e100_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) {struct nic *nic =netdev_priv (netdev); -if (wol->wolopts !=WAKE_MAGIC && wol->wolopts !=0 ) +if ((wol->wolopts && wol->wolopts !=WAKE_MAGIC ) || + !device_can_wakeup (&nic->pdev->dev))return -EOPNOTSUPP ;if (wol->wolopts)
@@ -2330,6 +2331,8 @@ static int e100_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)else nic->flags &= ~wol_magic; +device_set_wakeup_enable (&nic->pdev->dev, wol->wolopts); +e100_exec_cb (nic,NULL , e100_configure);return 0 ;
@@ -2733,8 +2736,10 @@ static int __devinit e100_probe(struct pci_dev *pdev,/* Wol magic packet can be enabled from eeprom */ if ((nic->mac >= mac_82558_D101_A4) && - (nic->eeprom[eeprom_id] & eeprom_id_wol)) + (nic->eeprom[eeprom_id] & eeprom_id_wol)) { nic->flags |= wol_magic; +device_set_wakeup_enable (&pdev->dev, true); + }/* ack any pending wake events, disable PME */ pci_pme_active (pdev, false);
@@ -2793,11 +2798,10 @@ static int e100_suspend(struct pci_dev *pdev, pm_message_t state)pci_save_state (pdev);if ((nic->flags & wol_magic) |e100_asf (nic)) { -pci_enable_wake (pdev, PCI_D3hot,1 ); -pci_enable_wake (pdev, PCI_D3cold,1 ); +if (pci_enable_wake (pdev, PCI_D3cold, true)) +pci_enable_wake (pdev, PCI_D3hot, true); }else { -pci_enable_wake (pdev, PCI_D3hot,0 ); -pci_enable_wake (pdev, PCI_D3cold,0 ); +pci_enable_wake (pdev, PCI_D3hot, false); }pci_disable_device (pdev);
drivers/net/e1000/e1000_main.c +2 -5
@@ -966,8 +966,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev, hw->back = adapter; err = -EIO ; - hw->hw_addr =ioremap (pci_resource_start (pdev,BAR_0 ), -pci_resource_len (pdev,BAR_0 )); + hw->hw_addr =pci_ioremap_bar (pdev,BAR_0 );if (!hw->hw_addr) goto err_ioremap;
@@ -1015,9 +1014,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,* because it depends on mac_type */ if ((hw->mac_type == e1000_ich8lan) && (pci_resource_flags (pdev,1 ) &IORESOURCE_MEM )) { - hw->flash_address = -ioremap (pci_resource_start (pdev,1 ), -pci_resource_len (pdev,1 )); + hw->flash_address =pci_ioremap_bar (pdev,1 );if (!hw->flash_address) goto err_flashmap; }
drivers/net/eepro100.c deleted +0 -2400
2,400 lines not on this page · raw message
drivers/net/epic100.c +1 -1
@@ -363,7 +363,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev, ioaddr =pci_resource_start (pdev,0 );#else ioaddr =pci_resource_start (pdev,1 ); - ioaddr = (long )ioremap (ioaddr,pci_resource_len (pdev,1 )); + ioaddr = (long )pci_ioremap_bar (pdev,1 );if (!ioaddr) {dev_err (&pdev->dev,"ioremap failed\n" ); goto err_out_free_netdev;
drivers/net/ixgb/ixgb_main.c +1 -2
@@ -381,8 +381,7 @@ ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) adapter->hw.back = adapter; adapter->msg_enable =netif_msg_init (debug,DEFAULT_DEBUG_LEVEL_SHIFT ); - adapter->hw.hw_addr =ioremap (pci_resource_start (pdev,BAR_0 ), -pci_resource_len (pdev,BAR_0 )); + adapter->hw.hw_addr =pci_ioremap_bar (pdev,BAR_0 );if (!adapter->hw.hw_addr) { err = -EIO ; goto err_ioremap;
drivers/net/qla3xxx.c +1 -3
@@ -3977,9 +3977,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,if (qdev->device_id ==QL3032_DEVICE_ID ) ndev->features |=NETIF_F_IP_CSUM |NETIF_F_SG ; - qdev->mem_map_registers = -ioremap_nocache (pci_resource_start (pdev,1 ), -pci_resource_len (qdev->pdev,1 )); + qdev->mem_map_registers =pci_ioremap_bar (pdev,1 );if (!qdev->mem_map_registers) { printk(KERN_ERR PFX "%s: cannot map device registers\n", pci_name(pdev));
drivers/net/s2io.c +2 -4
@@ -7917,8 +7917,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) goto mem_alloc_failed; } - sp->bar0 =ioremap (pci_resource_start (pdev,0 ), -pci_resource_len (pdev,0 )); + sp->bar0 =pci_ioremap_bar (pdev,0 );if (!sp->bar0) {DBG_PRINT (ERR_DBG ,"%s: Neterion: cannot remap io mem1\n" , dev->name);
@@ -7926,8 +7925,7 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre) goto bar0_remap_failed; } - sp->bar1 =ioremap (pci_resource_start (pdev,2 ), -pci_resource_len (pdev,2 )); + sp->bar1 =pci_ioremap_bar (pdev,2 );if (!sp->bar1) {DBG_PRINT (ERR_DBG ,"%s: Neterion: cannot remap io mem2\n" , dev->name);
drivers/net/skge.c +11 -27
@@ -149,24 +149,6 @@ static u32 wol_supported(const struct skge_hw *hw)return WAKE_MAGIC |WAKE_PHY ; } -static u32 pci_wake_enabled (struct pci_dev *dev) -{ -int pm =pci_find_capability (dev,PCI_CAP_ID_PM ); -u16 value; - -/* If device doesn't support PM Capabilities, but request is to disable -* wake events, it's a nop; otherwise fail */ -if (!pm) -return 0 ; - -pci_read_config_word (dev, pm +PCI_PM_PMC , &value); - - value &=PCI_PM_CAP_PME_MASK ; - value >>=ffs (PCI_PM_CAP_PME_MASK ) -1 ;/* First bit of mask */ - -return value !=0 ; -} -static void skge_wol_init (struct skge_port *skge) {struct skge_hw *hw = skge->hw;
@@ -254,10 +236,14 @@ static int skge_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)struct skge_port *skge =netdev_priv (dev);struct skge_hw *hw = skge->hw; -if (wol->wolopts & ~wol_supported (hw)) +if ((wol->wolopts & ~wol_supported (hw)) + || !device_can_wakeup (&hw->pdev->dev))return -EOPNOTSUPP ; skge->wol = wol->wolopts; + +device_set_wakeup_enable (&hw->pdev->dev, skge->wol); +return 0 ; }
@@ -3856,7 +3842,7 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port, skge->speed =-1 ; skge->advertising =skge_supported_modes (hw); -if (pci_wake_enabled (hw->pdev)) +if (device_may_wakeup (&hw->pdev->dev)) skge->wol =wol_supported (hw) &WAKE_MAGIC ; hw->dev[port] = dev;
@@ -4081,8 +4067,8 @@ static int skge_suspend(struct pci_dev *pdev, pm_message_t state) }skge_write32 (hw,B0_IMSK ,0 ); -pci_enable_wake (pdev,pci_choose_state (pdev, state), wol); -pci_set_power_state (pdev,pci_choose_state (pdev, state)); + +pci_prepare_to_sleep (pdev);return 0 ; }
@@ -4095,7 +4081,7 @@ static int skge_resume(struct pci_dev *pdev)if (!hw)return 0 ; - err =pci_set_power_state (pdev,PCI_D0 ); + err =pci_back_from_sleep (pdev);if (err) goto out;
@@ -4103,8 +4089,6 @@ static int skge_resume(struct pci_dev *pdev)if (err) goto out; -pci_enable_wake (pdev,PCI_D0 ,0 ); - err =skge_reset (hw);if (err) goto out;
@@ -4145,8 +4129,8 @@ static void skge_shutdown(struct pci_dev *pdev) wol |= skge->wol; } -pci_enable_wake (pdev, PCI_D3hot, wol); -pci_enable_wake (pdev, PCI_D3cold, wol); +if (pci_enable_wake (pdev, PCI_D3cold, wol)) +pci_enable_wake (pdev, PCI_D3hot, wol);pci_disable_device (pdev);pci_set_power_state (pdev, PCI_D3hot);
drivers/net/tc35815.c +3 -2
@@ -236,7 +236,7 @@ struct tc35815_regs {#define Rx_Halted 0x00008000/* Rx Halted */ #define Rx_Good 0x00004000/* Rx Good */ #define Rx_RxPar 0x00002000/* Rx Parity Error */ -/* 0x00001000 not use */ +#define Rx_TypePkt 0x00001000/* Rx Type Packet */ #define Rx_LongErr 0x00000800/* Rx Long Error */ #define Rx_Over 0x00000400/* Rx Overflow */ #define Rx_CRCErr 0x00000200/* Rx CRC Error */
@@ -244,8 +244,9 @@ struct tc35815_regs {#define Rx_10Stat 0x00000080/* Rx 10Mbps Status */ #define Rx_IntRx 0x00000040/* Rx Interrupt */ #define Rx_CtlRecd 0x00000020/* Rx Control Receive */ +#define Rx_InLenErr 0x00000010/* Rx In Range Frame Length Error */ -#define Rx_Stat_Mask 0x0000EFC0/* Rx All Status Mask */ +#define Rx_Stat_Mask 0x0000FFF0/* Rx All Status Mask */ /* Int_En bit asign -------------------------------------------------------- */ #define Int_NRAbtEn 0x00000800/* 1:Non-recoverable Abort Enable */
drivers/net/wan/dscc4.c +1 -2
@@ -730,8 +730,7 @@ static int __devinit dscc4_init_one(struct pci_dev *pdev, goto err_free_mmio_region_1; } - ioaddr =ioremap (pci_resource_start (pdev,0 ), -pci_resource_len (pdev,0 )); + ioaddr =pci_ioremap_bar (pdev,0 );if (!ioaddr) { printk(KERN_ERR "%s: cannot remap MMIO region %llx @ %llx\n", DRV_NAME, (unsigned long long)pci_resource_len(pdev, 0),
drivers/net/wan/pc300too.c +1 -1
@@ -379,7 +379,7 @@ static int __devinit pc300_pci_init_one(struct pci_dev *pdev, card->scabase =ioremap (scaphys,PC300_SCA_SIZE ); ramphys =pci_resource_start (pdev,3 ) &PCI_BASE_ADDRESS_MEM_MASK ; - card->rambase =ioremap (ramphys,pci_resource_len (pdev,3 )); + card->rambase =pci_ioremap_bar (pdev,3 ); if (card->plxbase == NULL || card->scabase == NULL ||
drivers/net/wan/pci200syn.c +1 -1
@@ -343,7 +343,7 @@ static int __devinit pci200_pci_init_one(struct pci_dev *pdev, card->scabase =ioremap (scaphys,PCI200SYN_SCA_SIZE ); ramphys =pci_resource_start (pdev,3 ) &PCI_BASE_ADDRESS_MEM_MASK ; - card->rambase =ioremap (ramphys,pci_resource_len (pdev,3 )); + card->rambase =pci_ioremap_bar (pdev,3 ); if (card->plxbase == NULL || card->scabase == NULL ||
drivers/net/wireless/hostap/hostap_pci.c +1 -1
@@ -312,7 +312,7 @@ static int prism2_pci_probe(struct pci_dev *pdev, goto err_out_disable; } - mem =ioremap (phymem,pci_resource_len (pdev,0 )); + mem =pci_ioremap_bar (pdev,0 );if (mem ==NULL ) {printk (KERN_ERR "prism2: Cannot remap PCI memory region\n" ) ; goto fail;
drivers/net/wireless/ipw2200.c +1 -1
@@ -11621,7 +11621,7 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, length =pci_resource_len (pdev,0 ); priv->hw_len = length; - base =ioremap_nocache (pci_resource_start (pdev,0 ), length); + base =pci_ioremap_bar (pdev,0 );if (!base) { err = -ENODEV ; goto out_pci_release_regions;
drivers/net/wireless/rt2x00/rt2x00pci.c +1 -2
@@ -222,8 +222,7 @@ static int rt2x00pci_alloc_reg(struct rt2x00_dev *rt2x00dev) {struct pci_dev *pci_dev =to_pci_dev (rt2x00dev->dev); - rt2x00dev->csr.base =ioremap (pci_resource_start (pci_dev,0 ), -pci_resource_len (pci_dev,0 )); + rt2x00dev->csr.base =pci_ioremap_bar (pci_dev,0 );if (!rt2x00dev->csr.base) goto exit;
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Fri, 31 Oct 2008 01:09:38 -0400
Quoted 1 line
We'll see if eepro100 removal sticks, this time...
Let's hope :)
Quoted 4 lines
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Pulled, thanks a lot Jeff.