diff options
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/net/bonding/bond_main.c | 9 | ||||
| -rw-r--r-- | drivers/net/skge.c | 18 | ||||
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 2 |
4 files changed, 29 insertions, 4 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 2cc81a54cbf3..5db667c0b371 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
| @@ -2428,7 +2428,7 @@ config UGETH_TX_ON_DEMAND | |||
| 2428 | 2428 | ||
| 2429 | config MV643XX_ETH | 2429 | config MV643XX_ETH |
| 2430 | tristate "Marvell Discovery (643XX) and Orion ethernet support" | 2430 | tristate "Marvell Discovery (643XX) and Orion ethernet support" |
| 2431 | depends on MV64X60 || PPC32 || PLAT_ORION | 2431 | depends on (MV64X60 || PPC32 || PLAT_ORION) && INET |
| 2432 | select INET_LRO | 2432 | select INET_LRO |
| 2433 | select PHYLIB | 2433 | select PHYLIB |
| 2434 | help | 2434 | help |
| @@ -2803,7 +2803,7 @@ config NIU | |||
| 2803 | 2803 | ||
| 2804 | config PASEMI_MAC | 2804 | config PASEMI_MAC |
| 2805 | tristate "PA Semi 1/10Gbit MAC" | 2805 | tristate "PA Semi 1/10Gbit MAC" |
| 2806 | depends on PPC_PASEMI && PCI | 2806 | depends on PPC_PASEMI && PCI && INET |
| 2807 | select PHYLIB | 2807 | select PHYLIB |
| 2808 | select INET_LRO | 2808 | select INET_LRO |
| 2809 | help | 2809 | help |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 3b16f62d5606..e953c6ad6e6d 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
| @@ -5164,6 +5164,15 @@ int bond_create(struct net *net, const char *name) | |||
| 5164 | res = dev_alloc_name(bond_dev, "bond%d"); | 5164 | res = dev_alloc_name(bond_dev, "bond%d"); |
| 5165 | if (res < 0) | 5165 | if (res < 0) |
| 5166 | goto out; | 5166 | goto out; |
| 5167 | } else { | ||
| 5168 | /* | ||
| 5169 | * If we're given a name to register | ||
| 5170 | * we need to ensure that its not already | ||
| 5171 | * registered | ||
| 5172 | */ | ||
| 5173 | res = -EEXIST; | ||
| 5174 | if (__dev_get_by_name(net, name) != NULL) | ||
| 5175 | goto out; | ||
| 5167 | } | 5176 | } |
| 5168 | 5177 | ||
| 5169 | res = register_netdevice(bond_dev); | 5178 | res = register_netdevice(bond_dev); |
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 40e5c46e7571..465ae7e84507 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #include <linux/seq_file.h> | 43 | #include <linux/seq_file.h> |
| 44 | #include <linux/mii.h> | 44 | #include <linux/mii.h> |
| 45 | #include <linux/slab.h> | 45 | #include <linux/slab.h> |
| 46 | #include <linux/dmi.h> | ||
| 46 | #include <asm/irq.h> | 47 | #include <asm/irq.h> |
| 47 | 48 | ||
| 48 | #include "skge.h" | 49 | #include "skge.h" |
| @@ -3868,6 +3869,8 @@ static void __devinit skge_show_addr(struct net_device *dev) | |||
| 3868 | netif_info(skge, probe, skge->netdev, "addr %pM\n", dev->dev_addr); | 3869 | netif_info(skge, probe, skge->netdev, "addr %pM\n", dev->dev_addr); |
| 3869 | } | 3870 | } |
| 3870 | 3871 | ||
| 3872 | static int only_32bit_dma; | ||
| 3873 | |||
| 3871 | static int __devinit skge_probe(struct pci_dev *pdev, | 3874 | static int __devinit skge_probe(struct pci_dev *pdev, |
| 3872 | const struct pci_device_id *ent) | 3875 | const struct pci_device_id *ent) |
| 3873 | { | 3876 | { |
| @@ -3889,7 +3892,7 @@ static int __devinit skge_probe(struct pci_dev *pdev, | |||
| 3889 | 3892 | ||
| 3890 | pci_set_master(pdev); | 3893 | pci_set_master(pdev); |
| 3891 | 3894 | ||
| 3892 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { | 3895 | if (!only_32bit_dma && !pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { |
| 3893 | using_dac = 1; | 3896 | using_dac = 1; |
| 3894 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); | 3897 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); |
| 3895 | } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) { | 3898 | } else if (!(err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))) { |
| @@ -4147,8 +4150,21 @@ static struct pci_driver skge_driver = { | |||
| 4147 | .shutdown = skge_shutdown, | 4150 | .shutdown = skge_shutdown, |
| 4148 | }; | 4151 | }; |
| 4149 | 4152 | ||
| 4153 | static struct dmi_system_id skge_32bit_dma_boards[] = { | ||
| 4154 | { | ||
| 4155 | .ident = "Gigabyte nForce boards", | ||
| 4156 | .matches = { | ||
| 4157 | DMI_MATCH(DMI_BOARD_VENDOR, "Gigabyte Technology Co"), | ||
| 4158 | DMI_MATCH(DMI_BOARD_NAME, "nForce"), | ||
| 4159 | }, | ||
| 4160 | }, | ||
| 4161 | {} | ||
| 4162 | }; | ||
| 4163 | |||
| 4150 | static int __init skge_init_module(void) | 4164 | static int __init skge_init_module(void) |
| 4151 | { | 4165 | { |
| 4166 | if (dmi_check_system(skge_32bit_dma_boards)) | ||
| 4167 | only_32bit_dma = 1; | ||
| 4152 | skge_debug_init(); | 4168 | skge_debug_init(); |
| 4153 | return pci_register_driver(&skge_driver); | 4169 | return pci_register_driver(&skge_driver); |
| 4154 | } | 4170 | } |
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index cc648b6ae31c..a3d95cca8f0c 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
| @@ -543,7 +543,7 @@ static u8 ath9k_hw_chan_2_clockrate_mhz(struct ath_hw *ah) | |||
| 543 | if (conf_is_ht40(conf)) | 543 | if (conf_is_ht40(conf)) |
| 544 | return clockrate * 2; | 544 | return clockrate * 2; |
| 545 | 545 | ||
| 546 | return clockrate * 2; | 546 | return clockrate; |
| 547 | } | 547 | } |
| 548 | 548 | ||
| 549 | static int32_t ath9k_hw_ani_get_listen_time(struct ath_hw *ah) | 549 | static int32_t ath9k_hw_ani_get_listen_time(struct ath_hw *ah) |
