diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 17:55:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 17:55:50 -0400 |
commit | 61cca8c72eb284e80876bafdea057055f6e793e4 (patch) | |
tree | 5bb92477b811e64e88c9f0c119acb2c9e9804c91 /drivers/usb | |
parent | e494f6333bef20fd9d8689062260c5d0136a3ea0 (diff) | |
parent | e254e9bff5283aad1af6d74d2a312ee011b84d61 (diff) |
Merge 'upstream' branch of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/net/pegasus.c | 2 | ||||
-rw-r--r-- | drivers/usb/net/pegasus.h | 2 | ||||
-rw-r--r-- | drivers/usb/net/rtl8150.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/net/pegasus.c b/drivers/usb/net/pegasus.c index d976790312aa..5f4496d8dbac 100644 --- a/drivers/usb/net/pegasus.c +++ b/drivers/usb/net/pegasus.c | |||
@@ -1166,7 +1166,7 @@ static void pegasus_set_multicast(struct net_device *net) | |||
1166 | pegasus->eth_regs[EthCtrl2] |= RX_PROMISCUOUS; | 1166 | pegasus->eth_regs[EthCtrl2] |= RX_PROMISCUOUS; |
1167 | if (netif_msg_link(pegasus)) | 1167 | if (netif_msg_link(pegasus)) |
1168 | pr_info("%s: Promiscuous mode enabled.\n", net->name); | 1168 | pr_info("%s: Promiscuous mode enabled.\n", net->name); |
1169 | } else if ((net->mc_count > multicast_filter_limit) || | 1169 | } else if (net->mc_count || |
1170 | (net->flags & IFF_ALLMULTI)) { | 1170 | (net->flags & IFF_ALLMULTI)) { |
1171 | pegasus->eth_regs[EthCtrl0] |= RX_MULTICAST; | 1171 | pegasus->eth_regs[EthCtrl0] |= RX_MULTICAST; |
1172 | pegasus->eth_regs[EthCtrl2] &= ~RX_PROMISCUOUS; | 1172 | pegasus->eth_regs[EthCtrl2] &= ~RX_PROMISCUOUS; |
diff --git a/drivers/usb/net/pegasus.h b/drivers/usb/net/pegasus.h index 13ccedef5c7e..b98f2a833442 100644 --- a/drivers/usb/net/pegasus.h +++ b/drivers/usb/net/pegasus.h | |||
@@ -249,6 +249,8 @@ PEGASUS_DEV( "Kingston KNU101TX Ethernet", VENDOR_KINGSTON, 0x000a, | |||
249 | DEFAULT_GPIO_RESET) | 249 | DEFAULT_GPIO_RESET) |
250 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/TX", VENDOR_LANEED, 0x4002, | 250 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/TX", VENDOR_LANEED, 0x4002, |
251 | DEFAULT_GPIO_RESET ) | 251 | DEFAULT_GPIO_RESET ) |
252 | PEGASUS_DEV( "LANEED USB Ethernet LD-USBL/TX", VENDOR_LANEED, 0x4005, | ||
253 | DEFAULT_GPIO_RESET | PEGASUS_II) | ||
252 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/TX", VENDOR_LANEED, 0x400b, | 254 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/TX", VENDOR_LANEED, 0x400b, |
253 | DEFAULT_GPIO_RESET | PEGASUS_II ) | 255 | DEFAULT_GPIO_RESET | PEGASUS_II ) |
254 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/T", VENDOR_LANEED, 0xabc1, | 256 | PEGASUS_DEV( "LANEED USB Ethernet LD-USB/T", VENDOR_LANEED, 0xabc1, |
diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index 8fb223385f2f..626b016addff 100644 --- a/drivers/usb/net/rtl8150.c +++ b/drivers/usb/net/rtl8150.c | |||
@@ -667,7 +667,7 @@ static void rtl8150_set_multicast(struct net_device *netdev) | |||
667 | if (netdev->flags & IFF_PROMISC) { | 667 | if (netdev->flags & IFF_PROMISC) { |
668 | dev->rx_creg |= cpu_to_le16(0x0001); | 668 | dev->rx_creg |= cpu_to_le16(0x0001); |
669 | info("%s: promiscuous mode", netdev->name); | 669 | info("%s: promiscuous mode", netdev->name); |
670 | } else if ((netdev->mc_count > multicast_filter_limit) || | 670 | } else if (netdev->mc_count || |
671 | (netdev->flags & IFF_ALLMULTI)) { | 671 | (netdev->flags & IFF_ALLMULTI)) { |
672 | dev->rx_creg &= cpu_to_le16(0xfffe); | 672 | dev->rx_creg &= cpu_to_le16(0xfffe); |
673 | dev->rx_creg |= cpu_to_le16(0x0002); | 673 | dev->rx_creg |= cpu_to_le16(0x0002); |