net driver updates
Subsystems (7)
PATCH 1/1 net driver updates
Still working through the queue... here's the first part
Please pull from 'upstream-davem' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-davem
to receive the following updates:
arch/arm/mach-kirkwood/rd88f6281-setup.c | 3 + arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c | 3 + arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | 3 + arch/arm/mach-orion5x/wnr854t-setup.c | 3 + arch/arm/mach-orion5x/wrt350n-v2-setup.c | 3 + drivers/net/Kconfig | 4 +- drivers/net/bfin_mac.c | 111 +++++-- drivers/net/cxgb3/t3_hw.c | 2 +- drivers/net/ehea/ehea_main.c | 4 +- drivers/net/enc28j60.c | 6 +- drivers/net/forcedeth.c | 64 ++++- drivers/net/mv643xx_eth.c | 358 ++++++++++++++-------- drivers/net/ne.c | 6 +- drivers/net/s2io.c | 29 ++- drivers/net/sh_eth.c | 202 ++++++++++--- drivers/net/sh_eth.h | 426 +++++++++++++++++++------- drivers/net/usb/dm9601.c | 52 +++- drivers/net/wd.c | 2 +- 18 files changed, 948 insertions(+), 333 deletions(-)
Alan Cox (1):
[netdrvr] wd: fix build breakage with new NS8390p API
Ayaz Abdulla (1):
forcedeth bug fix: realtek phy 8211c errata
Breno Leitao (1):
S2io: fix statistics flush after a MTU change
Bryan Wu (1):
Blackfin EMAC Driver: enable TXDWA new feature for new silicon (rev > 0.2)
David Brownell (1):
enc28j60: don't specify (wrong) IRQ type
Julia Lawall (1):
drivers/net/ehea/ehea_main.c: Release mutex in error handling code
Lennert Buytenhek (12):
mv643xx_eth: fix TX hang erratum workaround
mv643xx_eth: prevent breakage when link goes down during transmit
mv643xx_eth: fix transmit-reclaim-in-napi-poll
mv643xx_eth: don't fiddle with maximum receive packet size setting
mv643xx_eth: also check TX_IN_PROGRESS when disabling transmit path
mv643xx_eth: use longer DMA bursts
mv643xx_eth: use symbolic MII register addresses and values
mv643xx_eth: print driver version on init
mv643xx_eth: use auto phy polling for configuring (R)(G)MII interface
mv643xx_eth: print message on link status change
mv643xx_eth: enable hardware TX checksumming with vlan tags
mv643xx_eth: bump version to 1.2
Michael Hennerich (1):
Blackfin EMAC Driver: Functional power management support
Mikael Pettersson (1):
fix NE2000 linkage error
Mike Frysinger (1):
Blackfin EMAC Driver: add proper __devinit/__devexit markings
Nobuhiro Iwamatsu (1):
sh_eth: Add support of SH7763 to sh_eth
Peter Korsgaard (1):
dm9601: don't do usb transfers of data on stack
Stephen Hemminger (1):
blackfin_mac: unneeded assignment
Steve Wise (1):
cxgb3: Allow 64KB firmware images.
arch/arm/mach-kirkwood/rd88f6281-setup.c +3 -0
@@ -18,6 +18,7 @@#include <linux/timer.h> #include <linux/ata_platform.h> #include <linux/mv643xx_eth.h> +#include <linux/ethtool.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/pci.h>
@@ -69,6 +70,8 @@ static struct platform_device rd88f6281_nand_flash = {static struct mv643xx_eth_platform_data rd88f6281_ge00_data = { .phy_addr =-1 , + .speed =SPEED_1000 , + .duplex =DUPLEX_FULL , };static struct mv_sata_platform_data rd88f6281_sata_data = {
arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c +3 -0
@@ -15,6 +15,7 @@#include <linux/irq.h> #include <linux/mtd/physmap.h> #include <linux/mv643xx_eth.h> +#include <linux/ethtool.h> #include <asm/mach-types.h> #include <asm/gpio.h> #include <asm/leds.h>
@@ -88,6 +89,8 @@ static struct orion5x_mpp_mode rd88f5181l_fxo_mpp_modes[] __initdata = {static struct mv643xx_eth_platform_data rd88f5181l_fxo_eth_data = { .phy_addr =-1 , + .speed =SPEED_1000 , + .duplex =DUPLEX_FULL , };static void __init rd88f5181l_fxo_init (void )
arch/arm/mach-orion5x/rd88f5181l-ge-setup.c +3 -0
@@ -15,6 +15,7 @@#include <linux/irq.h> #include <linux/mtd/physmap.h> #include <linux/mv643xx_eth.h> +#include <linux/ethtool.h> #include <linux/i2c.h> #include <asm/mach-types.h> #include <asm/gpio.h>
@@ -89,6 +90,8 @@ static struct orion5x_mpp_mode rd88f5181l_ge_mpp_modes[] __initdata = {static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = { .phy_addr =-1 , + .speed =SPEED_1000 , + .duplex =DUPLEX_FULL , };static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = {
arch/arm/mach-orion5x/wnr854t-setup.c +3 -0
@@ -14,6 +14,7 @@#include <linux/delay.h> #include <linux/mtd/physmap.h> #include <linux/mv643xx_eth.h> +#include <linux/ethtool.h> #include <asm/mach-types.h> #include <asm/gpio.h> #include <asm/mach/arch.h>
@@ -92,6 +93,8 @@ static struct platform_device wnr854t_nor_flash = {static struct mv643xx_eth_platform_data wnr854t_eth_data = { .phy_addr =-1 , + .speed =SPEED_1000 , + .duplex =DUPLEX_FULL , };static void __init wnr854t_init (void )
arch/arm/mach-orion5x/wrt350n-v2-setup.c +3 -0
@@ -14,6 +14,7 @@#include <linux/delay.h> #include <linux/mtd/physmap.h> #include <linux/mv643xx_eth.h> +#include <linux/ethtool.h> #include <asm/mach-types.h> #include <asm/gpio.h> #include <asm/mach/arch.h>
@@ -100,6 +101,8 @@ static struct platform_device wrt350n_v2_nor_flash = {static struct mv643xx_eth_platform_data wrt350n_v2_eth_data = { .phy_addr =-1 , + .speed =SPEED_1000 , + .duplex =DUPLEX_FULL , };static void __init wrt350n_v2_init (void )
drivers/net/Kconfig +2 -2
@@ -510,14 +510,14 @@ config STNIC config SH_ETH tristate "Renesas SuperH Ethernet support" depends on SUPERH && \ - (CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712) + (CPU_SUBTYPE_SH7710 || CPU_SUBTYPE_SH7712 || CPU_SUBTYPE_SH7763) select CRC32 select MII select MDIO_BITBANG select PHYLIB help Renesas SuperH Ethernet device driver. - This driver support SH7710 and SH7712. + This driver support SH7710, SH7712 and SH7763. config SUNLANCE tristate "Sun LANCE support"
drivers/net/bfin_mac.c +81 -30
151 lines not on this page · raw message
drivers/net/cxgb3/t3_hw.c +1 -1
@@ -683,7 +683,7 @@ enum {SF_ERASE_SECTOR =0xd8 ,/* erase sector */ FW_FLASH_BOOT_ADDR =0x70000 ,/* start address of FW in flash */ -FW_VERS_ADDR =0x77ffc ,/* flash address holding FW version */ +FW_VERS_ADDR =0x7fffc ,/* flash address holding FW version */ FW_MIN_SIZE = 8 /* at least version and csum */ };
drivers/net/ehea/ehea_main.c +2 -2
@@ -2937,9 +2937,9 @@ static void ehea_rereg_mrs(struct work_struct *work) } } } -mutex_unlock (&dlpar_mem_lock); -ehea_info ("re-initializing driver complete" ); +ehea_info ("re-initializing driver complete" ); out: +mutex_unlock (&dlpar_mem_lock);return ; }
drivers/net/enc28j60.c +4 -2
@@ -1547,8 +1547,10 @@ static int __devinit enc28j60_probe(struct spi_device *spi)random_ether_addr (dev->dev_addr);enc28j60_set_hw_macaddr (dev); - ret =request_irq (spi->irq, enc28j60_irq,IRQF_TRIGGER_FALLING , -DRV_NAME , priv); +/* Board setup must set the relevant edge trigger type; +* level triggers won't currently work. +*/ + ret =request_irq (spi->irq, enc28j60_irq,0 ,DRV_NAME , priv);if (ret <0 ) {if (netif_msg_probe (priv)) dev_err(&spi->dev, DRV_NAME ": request irq %d failed "
drivers/net/forcedeth.c +58 -6
94 lines not on this page · raw message
drivers/net/mv643xx_eth.c +236 -122
589 lines not on this page · raw message
drivers/net/ne.c +3 -3
@@ -536,7 +536,7 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr)#ifdef CONFIG_NET_POLL_CONTROLLER dev->poll_controller = eip_poll;#endif -NS8390_init (dev,0 ); +NS8390p_init (dev,0 ); ret =register_netdev (dev);if (ret)
@@ -794,7 +794,7 @@ retry:if (time_after (jiffies, dma_start +2 *HZ /100 )) {/* 20ms */ printk (KERN_WARNING "%s: timeout waiting for Tx RDC.\n" , dev->name);ne_reset_8390 (dev); -NS8390_init (dev,1 ); +NS8390p_init (dev,1 );break ; }
@@ -855,7 +855,7 @@ static int ne_drv_resume(struct platform_device *pdev)if (netif_running (dev)) {ne_reset_8390 (dev); -NS8390_init (dev,1 ); +NS8390p_init (dev,1 );netif_device_attach (dev); }return 0 ;
drivers/net/s2io.c +23 -6
@@ -3143,7 +3143,7 @@ static void tx_intr_handler(struct fifo_info *fifo_data) pkt_cnt++;/* Updating the statistics block */ - nic->stats.tx_bytes += skb->len; + nic->dev->stats.tx_bytes += skb->len; nic->mac_control.stats_info->sw_stat.mem_freed += skb->truesize;dev_kfree_skb_irq (skb);
@@ -4896,25 +4896,42 @@ static struct net_device_stats *s2io_get_stats(struct net_device *dev)/* Configure Stats for immediate updt */ s2io_updt_stats (sp); +/* Using sp->stats as a staging area, because reset (due to mtu +change, for example) will clear some hardware counters */ + dev->stats.tx_packets += +le32_to_cpu (mac_control->stats_info->tmac_frms) - + sp->stats.tx_packets; sp->stats.tx_packets =le32_to_cpu (mac_control->stats_info->tmac_frms); + dev->stats.tx_errors += +le32_to_cpu (mac_control->stats_info->tmac_any_err_frms) - + sp->stats.tx_errors; sp->stats.tx_errors =le32_to_cpu (mac_control->stats_info->tmac_any_err_frms); + dev->stats.rx_errors += +le64_to_cpu (mac_control->stats_info->rmac_drop_frms) - + sp->stats.rx_errors; sp->stats.rx_errors =le64_to_cpu (mac_control->stats_info->rmac_drop_frms); + dev->stats.multicast = +le32_to_cpu (mac_control->stats_info->rmac_vld_mcst_frms) - + sp->stats.multicast; sp->stats.multicast =le32_to_cpu (mac_control->stats_info->rmac_vld_mcst_frms); + dev->stats.rx_length_errors = +le64_to_cpu (mac_control->stats_info->rmac_long_frms) - + sp->stats.rx_length_errors; sp->stats.rx_length_errors =le64_to_cpu (mac_control->stats_info->rmac_long_frms);/* collect per-ring rx_packets and rx_bytes */ - sp->stats.rx_packets = sp->stats.rx_bytes =0 ; + dev->stats.rx_packets = dev->stats.rx_bytes =0 ;for (i =0 ; i < config->rx_ring_num; i++) { - sp->stats.rx_packets += mac_control->rings[i].rx_packets; - sp->stats.rx_bytes += mac_control->rings[i].rx_bytes; + dev->stats.rx_packets += mac_control->rings[i].rx_packets; + dev->stats.rx_bytes += mac_control->rings[i].rx_bytes; } -return (&sp->stats); +return (&dev->stats); }/**
@@ -7419,7 +7436,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)if (err_mask !=0x5 ) {DBG_PRINT (ERR_DBG ,"%s: Rx error Value: 0x%x\n" , dev->name, err_mask); - sp->stats.rx_crc_errors++; + dev->stats.rx_crc_errors++; sp->mac_control.stats_info->sw_stat.mem_freed += skb->truesize;dev_kfree_skb (skb);
drivers/net/sh_eth.c +166 -36
403 lines not on this page · raw message
drivers/net/sh_eth.h +314 -112
525 lines not on this page · raw message
drivers/net/usb/dm9601.c +42 -10
66 lines not on this page · raw message
drivers/net/wd.c +1 -1
@@ -337,7 +337,7 @@ static int __init wd_probe1(struct net_device *dev, int ioaddr)#ifdef CONFIG_NET_POLL_CONTROLLER dev->poll_controller = ei_poll;#endif -NS8390_init (dev,0 ); +NS8390p_init (dev,0 );#if 1 /* Enable interrupt generation on softconfig cards -- M.U */
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Wed, 30 Jul 2008 17:41:21 -0400
Quoted 4 lines
Still working through the queue... here's the first part
Please pull from 'upstream-davem' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-davem
Pulled and pushed back out to net-2.6 on kernel.org, thanks Jeff!