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/depca.c | 3 +- drivers/net/hamradio/baycom_ser_fdx.c | 6 +++- drivers/net/sis900.c | 44 +++++++++++++++------------------ drivers/usb/net/pegasus.c | 17 +++++++++--- drivers/usb/net/pegasus.h | 3 +- 5 files changed, 40 insertions(+), 33 deletions(-)
Andrea Righi (1):
[netdrvr] depca: handle platform_device_add() failure
Andrew Morton (1):
drivers/net/hamradio/baycom_ser_fdx build fix
Dan Williams (1):
usb-net/pegasus: fix pegasus carrier detection
Neil Horman (1):
sis900: Allocate rx replacement buffer before rx operation
drivers/net/depca.c +2 -1
@@ -1491,8 +1491,9 @@ static void __init depca_platform_probe (void) depca_io_ports[i].device = pldev;if (platform_device_add (pldev)) { -platform_device_put (pldev); depca_io_ports[i].device =NULL ; + pldev->dev.platform_data =NULL ; +platform_device_put (pldev);continue ; }
drivers/net/hamradio/baycom_ser_fdx.c +4 -2
@@ -75,12 +75,14 @@#include <linux/ioport.h> #include <linux/string.h> #include <linux/init.h> -#include <asm/uaccess.h> -#include <asm/io.h> #include <linux/hdlcdrv.h> #include <linux/baycom.h> #include <linux/jiffies.h> +#include <asm/uaccess.h> +#include <asm/io.h> +#include <asm/irq.h> +/* --------------------------------------------------------------------- */ #define BAYCOM_DEBUG
drivers/net/sis900.c +20 -24
68 lines not on this page · raw message
drivers/usb/net/pegasus.c +12 -5
@@ -316,6 +316,7 @@ static int update_eth_regs_async(pegasus_t * pegasus)return ret; } +/* Returns 0 on success, error on failure */ static int read_mii_word (pegasus_t * pegasus,__u8 phy,__u8 indx,__u16 * regd) {int i;
@@ -847,10 +848,16 @@ static void intr_callback(struct urb *urb)* d[0].NO_CARRIER kicks in only with failed TX. * ... so monitoring with MII may be safest. */ -if (d[0 ] &NO_CARRIER ) -netif_carrier_off (net); -else -netif_carrier_on (net); +if (pegasus->features &TRUST_LINK_STATUS ) { +if (d[5 ] &LINK_STATUS ) +netif_carrier_on (net); +else +netif_carrier_off (net); + }else { +/* Never set carrier _on_ based on ! NO_CARRIER */ +if (d[0 ] &NO_CARRIER ) +netif_carrier_off (net); + }/* bytes 3-4 == rx_lostpkt, reg 2E/2F */ pegasus->stats.rx_missed_errors += ((d[3 ] &0x7f ) <<8 ) | d[4 ];
@@ -950,7 +957,7 @@ static void set_carrier(struct net_device *net)pegasus_t *pegasus =netdev_priv (net);u16 tmp; -if (!read_mii_word (pegasus, pegasus->phy,MII_BMSR , &tmp)) +if (read_mii_word (pegasus, pegasus->phy,MII_BMSR , &tmp))return ;if (tmp &BMSR_LSTATUS )
drivers/usb/net/pegasus.h +2 -1
@@ -11,6 +11,7 @@#define PEGASUS_II 0x80000000#define HAS_HOME_PNA 0x40000000 +#define TRUST_LINK_STATUS 0x20000000#define PEGASUS_MTU 1536#define RX_SKBS 4
@@ -203,7 +204,7 @@ PEGASUS_DEV( "AEI USB Fast Ethernet Adapter", VENDOR_AEILAB, 0x1701,PEGASUS_DEV ("Allied Telesyn Int. AT-USB100" ,VENDOR_ALLIEDTEL ,0xb100 , DEFAULT_GPIO_RESET | PEGASUS_II )PEGASUS_DEV ("Belkin F5D5050 USB Ethernet" ,VENDOR_BELKIN ,0x0121 , - DEFAULT_GPIO_RESET | PEGASUS_II ) + DEFAULT_GPIO_RESET | PEGASUS_II | TRUST_LINK_STATUS )PEGASUS_DEV ("Billionton USB-100" ,VENDOR_BILLIONTON ,0x0986 , DEFAULT_GPIO_RESET ) PEGASUS_DEV( "Billionton USBLP-100", VENDOR_BILLIONTON, 0x0987,