net driver updates
Subsystems (11)
PATCH 1/1 net driver updates
Various minor updates. The only thing of note is sk98lin driver removal.
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus
to receive the following updates:
Documentation/feature-removal-schedule.txt | 8 - Documentation/networking/00-INDEX | 3 - Documentation/networking/sk98lin.txt | 568 -- MAINTAINERS | 7 + drivers/misc/eeprom_93cx6.c | 6 +- drivers/net/3c59x.c | 2 +- drivers/net/8390.h | 11 + drivers/net/Kconfig | 116 +- drivers/net/Makefile | 4 +- drivers/net/atari_pamsnet.c | 62 +- drivers/net/atl1/atl1_main.c | 3 +- drivers/net/ax88796.c | 952 ++++ drivers/net/bonding/bond_main.c | 16 +- drivers/net/bonding/bonding.h | 2 - drivers/net/cxgb3/cxgb3_main.c | 5 +- drivers/net/e100.c | 12 +- drivers/net/ehea/ehea.h | 8 +- drivers/net/ehea/ehea_main.c | 23 +- drivers/net/ioc3-eth.c | 41 +- drivers/net/macmace.c | 2 +- drivers/net/myri10ge/myri10ge.c | 3 +- drivers/net/netxen/netxen_nic.h | 103 - drivers/net/netxen/netxen_nic_main.c | 97 + drivers/net/pcmcia/pcnet_cs.c | 1 + drivers/net/phy/marvell.c | 123 +- drivers/net/ps3_gelic_net.c | 1576 ++++++ drivers/net/ps3_gelic_net.h | 239 + drivers/net/rrunner.c | 2 +- drivers/net/s2io.c | 2 +- drivers/net/sis900.c | 2 +- drivers/net/sk98lin/Makefile | 87 - drivers/net/sk98lin/h/lm80.h | 179 - drivers/net/sk98lin/h/skaddr.h | 285 - drivers/net/sk98lin/h/skcsum.h | 213 - drivers/net/sk98lin/h/skdebug.h | 74 - drivers/net/sk98lin/h/skdrv1st.h | 188 - drivers/net/sk98lin/h/skdrv2nd.h | 447 -- drivers/net/sk98lin/h/skerror.h | 55 - drivers/net/sk98lin/h/skgedrv.h | 51 - drivers/net/sk98lin/h/skgehw.h | 2126 ------- drivers/net/sk98lin/h/skgehwt.h | 48 - drivers/net/sk98lin/h/skgei2c.h | 210 - drivers/net/sk98lin/h/skgeinit.h | 797 --- drivers/net/sk98lin/h/skgepnm2.h | 334 -- drivers/net/sk98lin/h/skgepnmi.h | 962 ---- drivers/net/sk98lin/h/skgesirq.h | 110 - drivers/net/sk98lin/h/ski2c.h | 174 - drivers/net/sk98lin/h/skqueue.h | 94 - drivers/net/sk98lin/h/skrlmt.h | 438 -- drivers/net/sk98lin/h/sktimer.h | 63 - drivers/net/sk98lin/h/sktypes.h | 69 - drivers/net/sk98lin/h/skversion.h | 38 - drivers/net/sk98lin/h/skvpd.h | 248 - drivers/net/sk98lin/h/xmac_ii.h | 1579 ------ drivers/net/sk98lin/skaddr.c | 1788 ------ drivers/net/sk98lin/skdim.c | 742 --- drivers/net/sk98lin/skethtool.c | 628 --- drivers/net/sk98lin/skge.c | 5211 ------------------ drivers/net/sk98lin/skgehwt.c | 171 - drivers/net/sk98lin/skgeinit.c | 2005 ------- drivers/net/sk98lin/skgemib.c | 1075 ---- drivers/net/sk98lin/skgepnmi.c | 8210 ---------------------------- drivers/net/sk98lin/skgesirq.c | 2229 -------- drivers/net/sk98lin/ski2c.c | 1296 ----- drivers/net/sk98lin/sklm80.c | 141 - drivers/net/sk98lin/skqueue.c | 179 - drivers/net/sk98lin/skrlmt.c | 3257 ----------- drivers/net/sk98lin/sktimer.c | 250 - drivers/net/sk98lin/skvpd.c | 1091 ---- drivers/net/sk98lin/skxmac2.c | 4160 -------------- drivers/net/sky2.c | 449 ++- drivers/net/sky2.h | 4 + drivers/net/spider_net.c | 59 +- drivers/net/sunhme.c | 2 +- drivers/net/tokenring/3c359.c | 2 +- drivers/net/ucc_geth.c | 2 +- drivers/net/usb/usbnet.c | 2 +- include/net/ax88796.h | 27 + net/ipv6/addrconf.c | 3 + 79 files changed, 3531 insertions(+), 42320 deletions(-) delete mode 100644 Documentation/networking/sk98lin.txt create mode 100644 drivers/net/ax88796.c create mode 100644 drivers/net/ps3_gelic_net.c create mode 100644 drivers/net/ps3_gelic_net.h delete mode 100644 drivers/net/sk98lin/Makefile delete mode 100644 drivers/net/sk98lin/h/lm80.h delete mode 100644 drivers/net/sk98lin/h/skaddr.h delete mode 100644 drivers/net/sk98lin/h/skcsum.h delete mode 100644 drivers/net/sk98lin/h/skdebug.h delete mode 100644 drivers/net/sk98lin/h/skdrv1st.h delete mode 100644 drivers/net/sk98lin/h/skdrv2nd.h delete mode 100644 drivers/net/sk98lin/h/skerror.h delete mode 100644 drivers/net/sk98lin/h/skgedrv.h delete mode 100644 drivers/net/sk98lin/h/skgehw.h delete mode 100644 drivers/net/sk98lin/h/skgehwt.h delete mode 100644 drivers/net/sk98lin/h/skgei2c.h delete mode 100644 drivers/net/sk98lin/h/skgeinit.h delete mode 100644 drivers/net/sk98lin/h/skgepnm2.h delete mode 100644 drivers/net/sk98lin/h/skgepnmi.h delete mode 100644 drivers/net/sk98lin/h/skgesirq.h delete mode 100644 drivers/net/sk98lin/h/ski2c.h delete mode 100644 drivers/net/sk98lin/h/skqueue.h delete mode 100644 drivers/net/sk98lin/h/skrlmt.h delete mode 100644 drivers/net/sk98lin/h/sktimer.h delete mode 100644 drivers/net/sk98lin/h/sktypes.h delete mode 100644 drivers/net/sk98lin/h/skversion.h delete mode 100644 drivers/net/sk98lin/h/skvpd.h delete mode 100644 drivers/net/sk98lin/h/xmac_ii.h delete mode 100644 drivers/net/sk98lin/skaddr.c delete mode 100644 drivers/net/sk98lin/skdim.c delete mode 100644 drivers/net/sk98lin/skethtool.c delete mode 100644 drivers/net/sk98lin/skge.c delete mode 100644 drivers/net/sk98lin/skgehwt.c delete mode 100644 drivers/net/sk98lin/skgeinit.c delete mode 100644 drivers/net/sk98lin/skgemib.c delete mode 100644 drivers/net/sk98lin/skgepnmi.c delete mode 100644 drivers/net/sk98lin/skgesirq.c delete mode 100644 drivers/net/sk98lin/ski2c.c delete mode 100644 drivers/net/sk98lin/sklm80.c delete mode 100644 drivers/net/sk98lin/skqueue.c delete mode 100644 drivers/net/sk98lin/skrlmt.c delete mode 100644 drivers/net/sk98lin/sktimer.c delete mode 100644 drivers/net/sk98lin/skvpd.c delete mode 100644 drivers/net/sk98lin/skxmac2.c create mode 100644 include/net/ax88796.h
Adrian Bunk (5):
sis900_mii_probe() must be __devinit tokenring/3c359.c:xl_init() must be __devinit rrunner.c:rr_init() must be __devinit sunhme.c:quattro_pci_find() must be __devinit bonding/bond_main.c: make 2 functions static
Alan Cox (1):
IOC3: Switch to pci refcounting safe APIs
Alexey Dobriyan (2):
macmace: use "unsigned long flags;"
atl1: remove write-only var in tx handler
Ben Dooks (1):
AX88796 network driver
David Graham (1):
e100: Fix Tyan motherboard e100 not receiving IPMI commands
Francois Romieu (1):
eeprom_93cx6: shorten pulse timing to match spec (bis)
Ishizaki Kou (1):
spidernet: improve interrupt handling
Jan-Bernd Themann (1):
eHEA: Capability flag for DLPAR support
Jay Vosburgh (1):
bonding / ipv6: no addrconf for slaves separately from master
Jeff Garzik (2):
Remove sk98lin ethernet driver.
[netdrvr] Fix dependencies for ax88796 ne2k clone driver
Marcin Juszkiewicz (1):
PCMCIA: add Socket Ethernet card into pcnet_cs
Masakazu Mokuno (1):
ps3: gigabit ethernet driver for PS3, take3
Olof Johansson (2):
phylib: cleanup marvell.c a bit
phylib: Add Marvell 88E1112 phy id
Peter Korsgaard (1):
Cleanup usbnet_probe() return value handling
Rolf Eike Beer (1):
Fix typo in drivers/net/s2io.c
Steffen Klassert (1):
3cSOHO100-TX needs EXTRA_PREAMBLE
Stephen Hemminger (13):
sky2: restore workarounds for lost interrupts
sky2: carrier management
sky2: debug interface
sky2: check for more work before leaving NAPI
sky2: receive fill
sky2: unmark as EXPERIMENTAL
sky2: add support for read/write of EEPROM
sky2: check drop truncated packets
sky2: use roundup() macro
sky2: use upper_32_bits() macro
sky2: remove some leftover debug messages
sky2: 1.16 version
netxen: deinline and sparse fix
Timur Tabi (1):
QE Ethernet driver writes to wrong register to mask interrupts
Yoann Padioleau (1):
atari_pamsnet.c: old declaration ritchie style fix
vignesh babu (2):
use is_power_of_2() in cxgb3/cxgb3_main.c
Use is_power_of_2() in myri10ge/myri10ge.cDocumentation/feature-removal-schedule.txt +0 -8
@@ -248,14 +248,6 @@ Who: Len Brown <[email protected]> --------------------------- -What: sk98lin network driver -When: July 2007 -Why: In kernel tree version of driver is unmaintained. Sk98lin driver - replaced by the skge driver. -Who: Stephen Hemminger <[email protected]> - ---------------------------- - What: Compaq touchscreen device emulation When: Oct 2007 Files: drivers/input/tsdev.c
Documentation/networking/00-INDEX +0 -3
@@ -96,9 +96,6 @@ routing.txt - the new routing mechanism shaper.txt - info on the module that can shape/limit transmitted traffic. -sk98lin.txt - - Marvell Yukon Chipset / SysKonnect SK-98xx compliant Gigabit - Ethernet Adapter family driver info skfp.txt - SysKonnect FDDI (SK-5xxx, Compaq Netelligent) driver info. smc9.txt
Documentation/networking/sk98lin.txt deleted +0 -568
568 lines not on this page · raw message
MAINTAINERS +7 -0
@@ -2930,6 +2930,13 @@ M: [email protected] L: [email protected] S: Maintained +PS3 NETWORK SUPPORT +P: Masakazu Mokuno +M: [email protected] +L: [email protected] +L: [email protected] +S: Supported + PS3 PLATFORM SUPPORT P: Geoff Levand M: [email protected]
drivers/misc/eeprom_93cx6.c +3 -3
@@ -55,10 +55,10 @@ static inline void eeprom_93cx6_pulse_low(struct eeprom_93cx6 *eeprom)/* * Add a short delay for the pulse to work. -* According to the specifications the minimal time -* should be 450ns so a 1us delay is sufficient. +* According to the specifications the "maximum minimum" +* time should be 450ns. */ -udelay (1 ); +ndelay (450 ); }static void eeprom_93cx6_startup (struct eeprom_93cx6 *eeprom)
drivers/net/3c59x.c +1 -1
@@ -324,7 +324,7 @@ static struct vortex_chip_info { {"3c980C Python-T" , PCI_USES_MASTER, IS_CYCLONE|HAS_NWAY|HAS_HWCKSM, 128, }, {"3cSOHO100-TX Hurricane", - PCI_USES_MASTER, IS_CYCLONE|HAS_NWAY|HAS_HWCKSM, 128, }, + PCI_USES_MASTER, IS_CYCLONE|HAS_NWAY|HAS_HWCKSM|EXTRA_PREAMBLE, 128, }, {"3c555 Laptop Hurricane", PCI_USES_MASTER, IS_CYCLONE|EEPROM_8BIT|HAS_HWCKSM, 128, }, {"3c556 Laptop Tornado",
drivers/net/8390.h +11 -0
@@ -73,6 +73,9 @@ struct ei_device {u32 *reg_offset;/* Register mapping table */ spinlock_t page_lock;/* Page register locks */ unsigned long priv;/* Private field to store bus IDs etc. */ +#ifdef AX88796_PLATFORM +unsigned char rxcr_base;/* default value for RXCR */ +#endif };/* The maximum number of 8390 interrupt service routines called per IRQ. */
@@ -86,11 +89,19 @@ struct ei_device {/* Some generic ethernet register configurations. */ #define E8390_TX_IRQ_MASK 0xa/* For register EN0_ISR */ #define E8390_RX_IRQ_MASK 0x5 + +#ifdef AX88796_PLATFORM +#define E8390_RXCONFIG (ei_status.rxcr_base | 0x04) +#define E8390_RXOFF (ei_status.rxcr_base | 0x20) +#else #define E8390_RXCONFIG 0x4/* EN0_RXCR: broadcasts, no multicast,errors */ #define E8390_RXOFF 0x20/* EN0_RXCR: Accept no packets */ +#endif +#define E8390_TXCONFIG 0x00/* EN0_TXCR: Normal transmit mode */ #define E8390_TXOFF 0x02/* EN0_TXCR: Transmitter off */ +/* Register accessed at EN_CMD, the 8390 base addr. */ #define E8390_STOP 0x01/* Stop and reset the chip */ #define E8390_START 0x02/* Start the chip, clear reset */
drivers/net/Kconfig +29 -87
147 lines not on this page · raw message
drivers/net/Makefile +3 -1
@@ -60,10 +60,11 @@ obj-$(CONFIG_TIGON3) += tg3.o obj-$(CONFIG_BNX2) += bnx2.o spidernet-y += spider_net.o spider_net_ethtool.o obj-$(CONFIG_SPIDER_NET) += spidernet.o sungem_phy.o +obj-$(CONFIG_GELIC_NET) += ps3_gelic.o +ps3_gelic-objs += ps3_gelic_net.o obj-$(CONFIG_TC35815) += tc35815.o obj-$(CONFIG_SKGE) += skge.o obj-$(CONFIG_SKY2) += sky2.o -obj-$(CONFIG_SK98LIN) += sk98lin/ obj-$(CONFIG_SKFP) += skfp/ obj-$(CONFIG_VIA_RHINE) += via-rhine.o obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
@@ -107,6 +108,7 @@ obj-$(CONFIG_NET_SB1250_MAC) += sb1250-mac.o obj-$(CONFIG_B44) += b44.o obj-$(CONFIG_FORCEDETH) += forcedeth.o obj-$(CONFIG_NE_H8300) += ne-h8300.o +obj-$(CONFIG_AX88796) += ax88796.o obj-$(CONFIG_TSI108_ETH) += tsi108_eth.o obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o
drivers/net/atari_pamsnet.c +22 -40
164 lines not on this page · raw message
drivers/net/atl1/atl1_main.c +1 -2
@@ -634,14 +634,13 @@ static void atl1_intr_tx(struct atl1_adapter *adapter)struct atl1_buffer *buffer_info;u16 sw_tpd_next_to_clean;u16 cmb_tpd_next_to_clean; -u8 update =0 ; sw_tpd_next_to_clean =atomic_read (&tpd_ring->next_to_clean); cmb_tpd_next_to_clean =le16_to_cpu (adapter->cmb.cmb->tpd_cons_idx);while (cmb_tpd_next_to_clean != sw_tpd_next_to_clean) {struct tx_packet_desc *tpd; - update =1 ; + tpd =ATL1_TPD_DESC (tpd_ring, sw_tpd_next_to_clean); buffer_info = &tpd_ring->buffer_info[sw_tpd_next_to_clean];if (buffer_info->dma) {
drivers/net/ax88796.c new file +952 -0
952 lines not on this page · raw message
drivers/net/bonding/bond_main.c +8 -8
@@ -187,7 +187,7 @@ static void bond_send_gratuitous_arp(struct bonding *bond);/*---------------------------- General routines -----------------------------*/ -const char *bond_mode_name (int mode) +static const char *bond_mode_name (int mode) {switch (mode) {case BOND_MODE_ROUNDROBIN :
@@ -1224,7 +1224,8 @@ static void bond_detach_slave(struct bonding *bond, struct slave *slave)/*---------------------------------- IOCTL ----------------------------------*/ -int bond_sethwaddr (struct net_device *bond_dev,struct net_device *slave_dev) +static int bond_sethwaddr (struct net_device *bond_dev, +struct net_device *slave_dev) {dprintk ("bond_dev=%p\n" , bond_dev);dprintk ("slave_dev=%p\n" , slave_dev);
@@ -1390,6 +1391,11 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) goto err_free; } + res =netdev_set_master (slave_dev, bond_dev); +if (res) { +dprintk ("Error %d calling netdev_set_master\n" , res); + goto err_close; + }/* open the slave since the application closed it */ res =dev_open (slave_dev);if (res) {
@@ -1397,12 +1403,6 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) goto err_restore_mac; } - res =netdev_set_master (slave_dev, bond_dev); -if (res) { -dprintk ("Error %d calling netdev_set_master\n" , res); - goto err_close; - } - new_slave->dev = slave_dev; slave_dev->priv_flags |=IFF_BONDING ;
drivers/net/bonding/bonding.h +0 -2
@@ -301,13 +301,11 @@ int bond_create_slave_symlinks(struct net_device *master, struct net_device *slavoid bond_destroy_slave_symlinks (struct net_device *master,struct net_device *slave);int bond_enslave (struct net_device *bond_dev,struct net_device *slave_dev);int bond_release (struct net_device *bond_dev,struct net_device *slave_dev); -int bond_sethwaddr (struct net_device *bond_dev,struct net_device *slave_dev);void bond_mii_monitor (struct net_device *bond_dev);void bond_loadbalance_arp_mon (struct net_device *bond_dev);void bond_activebackup_arp_mon (struct net_device *bond_dev);void bond_set_mode_ops (struct bonding *bond,int mode);int bond_parse_parm (char *mode_arg,struct bond_parm_tbl *tbl); -const char *bond_mode_name (int mode);void bond_select_active_slave (struct bonding *bond);void bond_change_active_slave (struct bonding *bond,struct slave *new_active);void bond_register_arp (struct bonding *);
drivers/net/cxgb3/cxgb3_main.c +3 -2
@@ -43,6 +43,7 @@#include <linux/proc_fs.h> #include <linux/rtnetlink.h> #include <linux/firmware.h> +#include <linux/log2.h> #include <asm/uaccess.h> #include "common.h"
@@ -1818,8 +1819,8 @@ static int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr)return -EBUSY ;if (copy_from_user (&m, useraddr,sizeof (m)))return -EFAULT ; -if (!m.rx_pg_sz || (m.rx_pg_sz & (m.rx_pg_sz -1 )) || - !m.tx_pg_sz || (m.tx_pg_sz & (m.tx_pg_sz -1 ))) +if (!is_power_of_2 (m.rx_pg_sz) || + !is_power_of_2 (m.tx_pg_sz))return -EINVAL ;/* not power of 2 */ if (!(m.rx_pg_sz &0x14000 ))return -EINVAL ;/* not 16KB or 64KB */
drivers/net/e100.c +9 -3
@@ -159,7 +159,7 @@#define DRV_NAME "e100"#define DRV_EXT "-NAPI" -#define DRV_VERSION "3.5.17-k4"DRV_EXT +#define DRV_VERSION "3.5.23-k4"DRV_EXT#define DRV_DESCRIPTION "Intel(R) PRO/100 Network Driver"#define DRV_COPYRIGHT "Copyright(c) 1999-2006 Intel Corporation"#define PFX DRV_NAME ": "
@@ -1024,10 +1024,16 @@ static void e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb) config->mwi_enable =0x1 ;/* 1=enable, 0=disable */ config->standard_tcb =0x0 ;/* 1=standard, 0=extended */ config->rx_long_ok =0x1 ;/* 1=VLANs ok, 0=standard */ -if (nic->mac >= mac_82559_D101M) +if (nic->mac >= mac_82559_D101M) { config->tno_intr =0x1 ;/* TCO stats enable */ -else +/* Enable TCO in extended config */ +if (nic->mac >= mac_82551_10) { + config->byte_count =0x20 ;/* extended bytes */ + config->rx_d102_mode =0x1 ;/* GMRC for TCO */ + } + }else { config->standard_stat_counter =0x0 ; + } } DPRINTK(HW, DEBUG, "[00-07]=%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X\n",
drivers/net/ehea/ehea.h +7 -1
@@ -39,7 +39,13 @@#include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0065" +#define DRV_VERSION "EHEA_0067" + +/* EHEA capability flags */ +#define DLPAR_PORT_ADD_REM 1 +#define DLPAR_MEM_ADD 2 +#define DLPAR_MEM_REM 4 +#define EHEA_CAPABILITIES (DLPAR_PORT_ADD_REM)#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
drivers/net/ehea/ehea_main.c +22 -1
@@ -2923,6 +2923,15 @@ static int check_module_parm(void)return ret; } +static ssize_t ehea_show_capabilities (struct device_driver *drv, +char *buf) +{ +return sprintf (buf,"%d" ,EHEA_CAPABILITIES ); +} + +static DRIVER_ATTR(capabilities, S_IRUSR | S_IRGRP | S_IROTH, + ehea_show_capabilities, NULL); +int __init ehea_module_init (void ) {int ret;
@@ -2934,8 +2943,19 @@ int __init ehea_module_init(void)if (ret) goto out; ret =ibmebus_register_driver (&ehea_driver); -if (ret) +if (ret) {ehea_error ("failed registering eHEA device driver on ebus" ); + goto out; + } + + ret =driver_create_file (&ehea_driver.driver, + &driver_attr_capabilities); +if (ret) { +ehea_error ("failed to register capabilities attribute, ret=%d" , + ret); +ibmebus_unregister_driver (&ehea_driver); + goto out; + } out:return ret;
@@ -2943,6 +2963,7 @@ out: static void __exit ehea_module_exit(void) { +driver_remove_file (&ehea_driver.driver, &driver_attr_capabilities);ibmebus_unregister_driver (&ehea_driver); }
drivers/net/ioc3-eth.c +24 -17
64 lines not on this page · raw message
drivers/net/macmace.c +1 -1
@@ -577,7 +577,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id)struct mace_data *mp =netdev_priv (dev);volatile struct mace *mb = mp->mace;int intr, fs; -unsigned int flags; +unsigned long flags;/* don't want the dma interrupt handler to fire */ local_irq_save (flags);
drivers/net/myri10ge/myri10ge.c +2 -1
@@ -60,6 +60,7 @@#include <linux/crc32.h> #include <linux/moduleparam.h> #include <linux/io.h> +#include <linux/log2.h> #include <net/checksum.h> #include <asm/byteorder.h> #include <asm/io.h>
@@ -1804,7 +1805,7 @@ static int myri10ge_open(struct net_device *dev)*/ big_pow2 = dev->mtu +ETH_HLEN +VLAN_HLEN +MXGEFW_PAD ;if (big_pow2 <MYRI10GE_ALLOC_SIZE /2 ) { -while ((big_pow2 & (big_pow2 -1 )) !=0 ) +while (!is_power_of_2 (big_pow2)) big_pow2++; mgp->big_bytes = dev->mtu +ETH_HLEN +VLAN_HLEN +MXGEFW_PAD ; }else {
drivers/net/netxen/netxen_nic.h +0 -103
109 lines not on this page · raw message
drivers/net/netxen/netxen_nic_main.c +97 -0
103 lines not on this page · raw message
drivers/net/pcmcia/pcnet_cs.c +1 -0
@@ -1581,6 +1581,7 @@ static struct pcmcia_device_id pcnet_ids[] = {PCMCIA_DEVICE_MANF_CARD (0x0274 ,0x1103 ),PCMCIA_DEVICE_MANF_CARD (0x0274 ,0x1121 ),PCMCIA_DEVICE_PROD_ID12 ("2408LAN" ,"Ethernet" ,0x352fff7f ,0x00b2e941 ), +PCMCIA_DEVICE_PROD_ID1234 ("Socket" ,"CF 10/100 Ethernet Card" ,"Revision B" ,"05/11/06" ,0xb38bcc2e ,0x4de88352 ,0xeaca6c8d ,0x7e57c22e ),PCMCIA_DEVICE_PROD_ID123 ("Cardwell" ,"PCMCIA" ,"ETHERNET" ,0x9533672e ,0x281f1c5d ,0x3ff7175b ),PCMCIA_DEVICE_PROD_ID123 ("CNet " ,"CN30BC" ,"ETHERNET" ,0x9fe55d3d ,0x85601198 ,0x3ff7175b ), PCMCIA_DEVICE_PROD_ID123("Digital", "Ethernet", "Adapter", 0x9999ab35, 0x00b2e941, 0x4b0d829e),
drivers/net/phy/marvell.c +65 -58
142 lines not on this page · raw message
drivers/net/ps3_gelic_net.c new file +1576 -0
450 lines not on this page · raw message
drivers/net/ps3_gelic_net.h new file +239 -0
239 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
=======================================================================
SNIP snip obvious sk98lin driver removal patches snip SNIP
=======================================================================
drivers/net/sky2.c +362 -87
449 lines not on this page · raw message
drivers/net/spider_net.c +45 -14
59 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 3 lines · Jeff Garzik
Various minor updates. The only thing of note is sk98lin driver removal. Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus
This is probably going to cause a new entry in regressions list, as at least Chris Stromsoe has reported bonding-related problems with skge that don't happen with sklin -
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0707.1/1158.html
Signature · 1 line
Jiri Kosina
Quoted 5 lines · Jiri Kosina
Quoted 1 line · Jeff Garzik
Various minor updates. The only thing of note is sk98lin driver removal. Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus
This is probably going to cause a new entry in regressions list, as at least Chris Stromsoe has reported bonding-related problems with skge that don't happen with sklin - http://www.uwsg.indiana.edu/hypermail/linux/kernel/0707.1/1158.html
It's worse than just bonding related. This also causes a reliable hard lockup with skge:
fresno:~# modprobe skge fresno:~# ip li set eth2 up fresno:~# ip li set eth2 down fresno:~# ip li set eth3 up
The server locks up there. Nothing is printed to console and it takes a power cycle to fix the problem.
eth2 and eth3 are both ports on an SK-9844 dual-port card. The test above is with 2.6.22. I've also had it fail with .21.*, .20.*, and several other kernels.
fresno:~# uname -a Linux fresno 2.6.22 #4 SMP Tue Jul 10 11:38:19 PDT 2007 i686 GNU/Linux
fresno:~# dmesg | grep skge skge 1.11 addr 0xfebfc000 irq 22 chip Genesis rev 0 skge eth2: addr 00:00:5a:98:ac:8c skge eth3: addr 00:00:5a:98:ac:8d
fresno:~# lspci -v -s 02:01
02:01.0 Ethernet controller: SysKonnect SK-9872 Gigabit Ethernet Server Adapter (SK-NET GE-ZX dual link) (rev 11)
Subsystem: SysKonnect SK-9844 Gigabit Ethernet Server Adapter (SK-NET GE-SX dual link)
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 22
Memory at febfc000 (32-bit, non-prefetchable) [size=16K]
I/O ports at e800 [size=256]
Expansion ROM at febc0000 [disabled] [size=128K]
Capabilities: [48] Power Management version 1
Capabilities: [50] Vital Product Data-Chris
[RFT] skge: fiber carrier handling
Does this fix your problems? I don't have dual port boards but have an old SK-9843 fiber board.
====
The XM PHY can give IRQ on lost carrier, which is better than polling. This version also solves an number of bonding/carrier related bugs.
drivers/net/skge.c +27 -40
@@ -1091,13 +1091,7 @@ static void xm_link_down(struct skge_hw {struct net_device *dev = hw->dev[port];struct skge_port *skge =netdev_priv (dev); -u16 cmd, msk; - -if (hw->phy_type ==SK_PHY_XMAC ) { - msk =xm_read16 (hw, port,XM_IMSK ); - msk |=XM_IS_INP_ASS |XM_IS_LIPA_RC |XM_IS_RX_PAGE |XM_IS_AND ; -xm_write16 (hw, port,XM_IMSK , msk); - } +u16 cmd; cmd =xm_read16 (hw, port,XM_MMU_CMD ); cmd &= ~(XM_MMU_ENA_RX |XM_MMU_ENA_TX );
@@ -1107,6 +1101,10 @@ static void xm_link_down(struct skge_hwif (netif_carrier_ok (dev))skge_link_down (skge); + +/* If needed start polling for link to come up */ +if (netif_running (dev) && hw->phy_type ==SK_PHY_XMAC ) +mod_timer (&skge->link_timer, jiffies +LINK_HZ ); }static int __xm_phy_read (struct skge_hw *hw,int port,u16 reg,u16 *val)
@@ -1434,30 +1432,25 @@ static void xm_phy_init(struct skge_portxm_phy_write (hw, port,PHY_XMAC_CTRL , ctrl); -/* Poll PHY for status changes */ -mod_timer (&skge->link_timer, jiffies +LINK_HZ ); +/* Poll for link coming up */ +mod_timer (&skge->link_timer, jiffies); } -static void xm_check_link (struct net_device *dev) +/* Check status of link and change state */ +static void xm_link_up (struct skge_port *skge) { -struct skge_port *skge =netdev_priv (dev); +struct net_device *dev = skge->netdev;struct skge_hw *hw = skge->hw;int port = skge->port; -u16 status; - -/* read twice because of latch */ - (void )xm_phy_read (hw, port,PHY_XMAC_STAT ); - status =xm_phy_read (hw, port,PHY_XMAC_STAT ); +u16 isrc =xm_read16 (hw, port,XM_ISRC ); -if ((status &PHY_ST_LSYNC ) ==0 ) { -xm_link_down (hw, port); -return ; - } +if (netif_msg_intr (skge)) + printk(KERN_DEBUG PFX "%s: fiber status %#x\n", dev->name, isrc);if (skge->autoneg ==AUTONEG_ENABLE ) {u16 lpa, res; -if (!(status &PHY_ST_AN_OVER )) +if (!(isrc &XM_IS_AND ))return ; lpa =xm_phy_read (hw, port,PHY_XMAC_AUNE_LP );
@@ -1506,10 +1499,7 @@ static void xm_check_link(struct net_devgenesis_link_up (skge); } -/* Poll to check for link coming up. -* Since internal PHY is wired to a level triggered pin, can't -* get an interrupt when carrier is detected. -*/ +/* Poll to check for link coming up. */ static void xm_link_timer (unsigned long arg) {struct skge_port *skge = (struct skge_port *) arg;
@@ -1520,23 +1510,18 @@ static void xm_link_timer(unsigned longif (!netif_running (dev))return ; -if (netif_carrier_ok (dev)) { -xm_read16 (hw, port,XM_ISRC ); -if (!(xm_read16 (hw, port,XM_ISRC ) &XM_IS_INP_ASS )) - goto nochange; - }else { -if (xm_read32 (hw, port,XM_GP_PORT ) &XM_GP_INP_ASS ) - goto nochange; -xm_read16 (hw, port,XM_ISRC ); -if (xm_read16 (hw, port,XM_ISRC ) &XM_IS_INP_ASS ) - goto nochange; - } +if (xm_read32 (hw, port,XM_GP_PORT ) &XM_GP_INP_ASS ) + goto resync;spin_lock (&hw->phy_lock); -xm_check_link (dev); +xm_link_up (skge);spin_unlock (&hw->phy_lock); -nochange: +/* Link up, timer no longer needed */ +if (netif_carrier_ok (dev)) +return ; + +resync:if (netif_running (dev))mod_timer (&skge->link_timer, jiffies +LINK_HZ ); }
@@ -1593,6 +1578,9 @@ static void genesis_mac_init(struct skgebcom_check_link (hw, port); } +/* Clear any irq */ +xm_read16 (hw, port,XM_ISRC ); +/* Set Station Address */ xm_outaddr (hw, port,XM_SA , dev->dev_addr);
@@ -1782,8 +1770,7 @@ static void genesis_mac_intr(struct skge printk(KERN_DEBUG PFX "%s: mac interrupt status 0x%x\n", skge->netdev->name, status); -if (hw->phy_type ==SK_PHY_XMAC && - (status & (XM_IS_INP_ASS |XM_IS_LIPA_RC ))) +if (hw->phy_type ==SK_PHY_XMAC && (status &XM_IS_INP_ASS ))xm_link_down (hw, port);if (status &XM_IS_TXF_UR ) {
Re: [RFT] skge: fiber carrier handling
Quoted 1 line · Stephen Hemminger
Does this fix your problems? I don't have dual port boards but have an old SK-9843 fiber board.
Nope. It still hangs with:
fresno:~# ip li set eth2 up fresno:~# ip li set eth2 down fresno:~# ip li set eth3 up
This is with 2.6.22.1
If I load the sk98lin driver, I don't have any problems changing link state on both ports:
fresno:~# rmmod skge fresno:~# modprobe sk98lin RlmtMode=DualNet fresno:~# ip li set eth2 up fresno:~# ip li set eth2 down fresno:~# ip li set eth3 up fresno:~# ip li set eth3 down
-Chris