net driver fixes
Subsystems (3)
PATCH 1/1 net driver fixes
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:
drivers/net/ehea/ehea.h | 2 +- drivers/net/ehea/ehea_main.c | 56 +++++++++++++++++++++------------- drivers/net/ehea/ehea_phyp.c | 10 +++++- drivers/net/netxen/netxen_nic.h | 7 ++-- drivers/net/netxen/netxen_nic_hw.c | 3 +- drivers/net/netxen/netxen_nic_main.c | 2 +- drivers/net/pcmcia/3c589_cs.c | 7 +++- drivers/net/phy/phy.c | 3 +- 8 files changed, 57 insertions(+), 33 deletions(-)
Amit S. Kale (2):
NetXen: Firmware check modifications
NetXen: Use pci_register_driver() instead of pci_module_init() in init_module
Komuro (1):
modify 3c589_cs to be SMP safe
Kumar Gala (1):
PHY: Export phy ethtool helpers
Thomas Klein (7):
ehea: Fixed wrong dereferencation
ehea: Fixing firmware queue config issue
ehea: Modified initial autoneg state determination
ehea: New method to determine number of available ports
ehea: Improved logging of permission issues
ehea: Added logging off associated errors
ehea: Fixed possible nullpointer access
drivers/net/ehea/ehea.h +1 -1
@@ -39,7 +39,7 @@#include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0043" +#define DRV_VERSION "EHEA_0044"#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
drivers/net/ehea/ehea_main.c +35 -21
124 lines not on this page · raw message
drivers/net/ehea/ehea_phyp.c +8 -2
@@ -94,6 +94,7 @@ static long ehea_plpar_hcall9(unsigned long opcode, {long ret;int i, sleep_msecs; +u8 cb_cat;for (i =0 ; i <5 ; i++) { ret = plpar_hcall9(opcode, outs,
@@ -106,7 +107,13 @@ static long ehea_plpar_hcall9(unsigned long opcode,continue ; } -if (ret <H_SUCCESS ) + cb_cat =EHEA_BMASK_GET (H_MEHEAPORT_CAT , arg2); + +if ((ret <H_SUCCESS ) && !(((ret ==H_AUTHORITY ) + && (opcode ==H_MODIFY_HEA_PORT )) + && (((cb_cat ==H_PORT_CB4 ) && ((arg3 ==H_PORT_CB4_JUMBO ) + || (arg3 ==H_PORT_CB4_SPEED ))) || ((cb_cat ==H_PORT_CB7 ) + && (arg3 ==H_PORT_CB7_DUCQPN )))))ehea_error ("opcode=%lx ret=%lx" " arg1=%lx arg2=%lx arg3=%lx arg4=%lx" " arg5=%lx arg6=%lx arg7=%lx arg8=%lx"
@@ -120,7 +127,6 @@ static long ehea_plpar_hcall9(unsigned long opcode, outs[0 ], outs[1 ], outs[2 ], outs[3 ], outs[4 ], outs[5 ], outs[6 ], outs[7 ], outs[8]); -return ret; }
drivers/net/netxen/netxen_nic.h +3 -4
@@ -63,12 +63,11 @@#include "netxen_nic_hw.h" -#define NETXEN_NIC_BUILD_NO "4" +#define NETXEN_NIC_BUILD_NO "2"#define _NETXEN_NIC_LINUX_MAJOR 3#define _NETXEN_NIC_LINUX_MINOR 3 -#define _NETXEN_NIC_LINUX_SUBVERSION 2 -#define NETXEN_NIC_LINUX_VERSIONID "3.3.2" "-" NETXEN_NIC_BUILD_NO -#define NETXEN_NIC_FW_VERSIONID "3.3.2" +#define _NETXEN_NIC_LINUX_SUBVERSION 3 +#define NETXEN_NIC_LINUX_VERSIONID "3.3.3" "-" NETXEN_NIC_BUILD_NO#define RCV_DESC_RINGSIZE \ (sizeof(struct rcv_desc) * adapter->max_rx_desc_count)
drivers/net/netxen/netxen_nic_hw.c +2 -1
@@ -984,7 +984,8 @@ void netxen_nic_flash_print(struct netxen_adapter *adapter) _NETXEN_NIC_LINUX_MAJOR, fw_major); adapter->driver_mismatch =1 ; } -if (fw_minor != _NETXEN_NIC_LINUX_MINOR) { +if (fw_minor != _NETXEN_NIC_LINUX_MINOR && + fw_minor != (_NETXEN_NIC_LINUX_MINOR +1 )) {printk (KERN_ERR "The mismatch in driver version and firmware " "version minor number\n" "Driver version minor number = %d \t"
drivers/net/netxen/netxen_nic_main.c +1 -1
@@ -1144,7 +1144,7 @@ static int __init netxen_init_module(void)if ((netxen_workq =create_singlethread_workqueue ("netxen" )) ==0 )return -ENOMEM ; -return pci_module_init (&netxen_driver); +return pci_register_driver (&netxen_driver); }module_init (netxen_init_module);
drivers/net/pcmcia/3c589_cs.c +5 -2
@@ -606,11 +606,14 @@ static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev) {kio_addr_t ioaddr = dev->base_addr;struct el3_private *priv =netdev_priv (dev); +unsigned long flags;DEBUG (3 ,"%s: el3_start_xmit(length = %ld) called, " "status %4.4x.\n" , dev->name, (long )skb->len,inw (ioaddr +EL3_STATUS )); +spin_lock_irqsave (&priv->lock, flags); + priv->stats.tx_bytes += skb->len;/* Put out the doubleword header... */
@@ -628,6 +631,7 @@ static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev)dev_kfree_skb (skb);pop_tx_status (dev); +spin_unlock_irqrestore (&priv->lock, flags);return 0 ; }
@@ -729,14 +733,13 @@ static void media_check(unsigned long arg)if (!netif_device_present (dev)) goto reschedule; -EL3WINDOW (1 );/* Check for pending interrupt with expired latency timer: with this, we can limp along even if the interrupt is blocked */ if ((inw (ioaddr +EL3_STATUS ) & IntLatch) && (inb (ioaddr +EL3_TIMER ) ==0xff )) {if (!lp->fast_poll)printk (KERN_WARNING "%s: interrupt(s) dropped!\n" , dev->name); -el3_interrupt (dev->irq, lp); +el3_interrupt (dev->irq, dev); lp->fast_poll =HZ ; }if (lp->fast_poll) {
drivers/net/phy/phy.c +2 -1
@@ -286,6 +286,7 @@ int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd)return 0 ; } +EXPORT_SYMBOL (phy_ethtool_sset);int phy_ethtool_gset (struct phy_device *phydev,struct ethtool_cmd *cmd) {
@@ -302,7 +303,7 @@ int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd)return 0 ; } - +EXPORT_SYMBOL (phy_ethtool_gset);/* Note that this function is currently incompatible with the * PHYCONTROL layer. It changes registers without regard to