diff options
| author | John W. Linville <linville@tuxdriver.com> | 2013-09-27 13:09:17 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2013-09-27 13:11:17 -0400 |
| commit | 0a878747e18d4d14c5b772dcddddd86bb4c26f8f (patch) | |
| tree | b214678a35945e2c84a82192df79472923fdbcba | |
| parent | f875691640cd3fa67f7ad1d3130ff9fa7fdca042 (diff) | |
| parent | c7515d2365a6b8a018950198ebe1f5be793cd4bb (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Also fixed-up a badly indented closing brace...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
27 files changed, 128 insertions, 147 deletions
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c index c9fd6943ce45..50329d1057ed 100644 --- a/drivers/bcma/driver_pci.c +++ b/drivers/bcma/driver_pci.c | |||
| @@ -210,25 +210,6 @@ static void bcma_core_pci_config_fixup(struct bcma_drv_pci *pc) | |||
| 210 | } | 210 | } |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | static void bcma_core_pci_power_save(struct bcma_drv_pci *pc, bool up) | ||
| 214 | { | ||
| 215 | u16 data; | ||
| 216 | |||
| 217 | if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) { | ||
| 218 | data = up ? 0x74 : 0x7C; | ||
| 219 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 220 | BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7F64); | ||
| 221 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 222 | BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data); | ||
| 223 | } else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) { | ||
| 224 | data = up ? 0x75 : 0x7D; | ||
| 225 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 226 | BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7E65); | ||
| 227 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 228 | BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data); | ||
| 229 | } | ||
| 230 | } | ||
| 231 | |||
| 232 | /************************************************** | 213 | /************************************************** |
| 233 | * Init. | 214 | * Init. |
| 234 | **************************************************/ | 215 | **************************************************/ |
| @@ -255,6 +236,32 @@ void bcma_core_pci_init(struct bcma_drv_pci *pc) | |||
| 255 | bcma_core_pci_clientmode_init(pc); | 236 | bcma_core_pci_clientmode_init(pc); |
| 256 | } | 237 | } |
| 257 | 238 | ||
| 239 | void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) | ||
| 240 | { | ||
| 241 | struct bcma_drv_pci *pc; | ||
| 242 | u16 data; | ||
| 243 | |||
| 244 | if (bus->hosttype != BCMA_HOSTTYPE_PCI) | ||
| 245 | return; | ||
| 246 | |||
| 247 | pc = &bus->drv_pci[0]; | ||
| 248 | |||
| 249 | if (pc->core->id.rev >= 15 && pc->core->id.rev <= 20) { | ||
| 250 | data = up ? 0x74 : 0x7C; | ||
| 251 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 252 | BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7F64); | ||
| 253 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 254 | BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data); | ||
| 255 | } else if (pc->core->id.rev >= 21 && pc->core->id.rev <= 22) { | ||
| 256 | data = up ? 0x75 : 0x7D; | ||
| 257 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 258 | BCMA_CORE_PCI_MDIO_BLK1_MGMT1, 0x7E65); | ||
| 259 | bcma_pcie_mdio_writeread(pc, BCMA_CORE_PCI_MDIO_BLK1, | ||
| 260 | BCMA_CORE_PCI_MDIO_BLK1_MGMT3, data); | ||
| 261 | } | ||
| 262 | } | ||
| 263 | EXPORT_SYMBOL_GPL(bcma_core_pci_power_save); | ||
| 264 | |||
| 258 | int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core, | 265 | int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core, |
| 259 | bool enable) | 266 | bool enable) |
| 260 | { | 267 | { |
| @@ -310,8 +317,6 @@ void bcma_core_pci_up(struct bcma_bus *bus) | |||
| 310 | 317 | ||
| 311 | pc = &bus->drv_pci[0]; | 318 | pc = &bus->drv_pci[0]; |
| 312 | 319 | ||
| 313 | bcma_core_pci_power_save(pc, true); | ||
| 314 | |||
| 315 | bcma_core_pci_extend_L1timer(pc, true); | 320 | bcma_core_pci_extend_L1timer(pc, true); |
| 316 | } | 321 | } |
| 317 | EXPORT_SYMBOL_GPL(bcma_core_pci_up); | 322 | EXPORT_SYMBOL_GPL(bcma_core_pci_up); |
| @@ -326,7 +331,5 @@ void bcma_core_pci_down(struct bcma_bus *bus) | |||
| 326 | pc = &bus->drv_pci[0]; | 331 | pc = &bus->drv_pci[0]; |
| 327 | 332 | ||
| 328 | bcma_core_pci_extend_L1timer(pc, false); | 333 | bcma_core_pci_extend_L1timer(pc, false); |
| 329 | |||
| 330 | bcma_core_pci_power_save(pc, false); | ||
| 331 | } | 334 | } |
| 332 | EXPORT_SYMBOL_GPL(bcma_core_pci_down); | 335 | EXPORT_SYMBOL_GPL(bcma_core_pci_down); |
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index a12b923bbaca..0a327f4154a2 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c | |||
| @@ -85,6 +85,7 @@ static struct usb_device_id ath3k_table[] = { | |||
| 85 | { USB_DEVICE(0x04CA, 0x3008) }, | 85 | { USB_DEVICE(0x04CA, 0x3008) }, |
| 86 | { USB_DEVICE(0x13d3, 0x3362) }, | 86 | { USB_DEVICE(0x13d3, 0x3362) }, |
| 87 | { USB_DEVICE(0x0CF3, 0xE004) }, | 87 | { USB_DEVICE(0x0CF3, 0xE004) }, |
| 88 | { USB_DEVICE(0x0CF3, 0xE005) }, | ||
| 88 | { USB_DEVICE(0x0930, 0x0219) }, | 89 | { USB_DEVICE(0x0930, 0x0219) }, |
| 89 | { USB_DEVICE(0x0489, 0xe057) }, | 90 | { USB_DEVICE(0x0489, 0xe057) }, |
| 90 | { USB_DEVICE(0x13d3, 0x3393) }, | 91 | { USB_DEVICE(0x13d3, 0x3393) }, |
| @@ -126,6 +127,7 @@ static struct usb_device_id ath3k_blist_tbl[] = { | |||
| 126 | { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, | 127 | { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, |
| 127 | { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, | 128 | { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, |
| 128 | { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, | 129 | { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, |
| 130 | { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, | ||
| 129 | { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, | 131 | { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, |
| 130 | { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, | 132 | { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, |
| 131 | { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, | 133 | { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, |
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 8e16f0af6358..f3dfc0a88fdc 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
| @@ -102,6 +102,7 @@ static struct usb_device_id btusb_table[] = { | |||
| 102 | 102 | ||
| 103 | /* Broadcom BCM20702A0 */ | 103 | /* Broadcom BCM20702A0 */ |
| 104 | { USB_DEVICE(0x0b05, 0x17b5) }, | 104 | { USB_DEVICE(0x0b05, 0x17b5) }, |
| 105 | { USB_DEVICE(0x0b05, 0x17cb) }, | ||
| 105 | { USB_DEVICE(0x04ca, 0x2003) }, | 106 | { USB_DEVICE(0x04ca, 0x2003) }, |
| 106 | { USB_DEVICE(0x0489, 0xe042) }, | 107 | { USB_DEVICE(0x0489, 0xe042) }, |
| 107 | { USB_DEVICE(0x413c, 0x8197) }, | 108 | { USB_DEVICE(0x413c, 0x8197) }, |
| @@ -112,6 +113,9 @@ static struct usb_device_id btusb_table[] = { | |||
| 112 | /*Broadcom devices with vendor specific id */ | 113 | /*Broadcom devices with vendor specific id */ |
| 113 | { USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) }, | 114 | { USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) }, |
| 114 | 115 | ||
| 116 | /* Belkin F8065bf - Broadcom based */ | ||
| 117 | { USB_VENDOR_AND_INTERFACE_INFO(0x050d, 0xff, 0x01, 0x01) }, | ||
| 118 | |||
| 115 | { } /* Terminating entry */ | 119 | { } /* Terminating entry */ |
| 116 | }; | 120 | }; |
| 117 | 121 | ||
| @@ -148,6 +152,7 @@ static struct usb_device_id blacklist_table[] = { | |||
| 148 | { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, | 152 | { USB_DEVICE(0x04ca, 0x3008), .driver_info = BTUSB_ATH3012 }, |
| 149 | { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, | 153 | { USB_DEVICE(0x13d3, 0x3362), .driver_info = BTUSB_ATH3012 }, |
| 150 | { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, | 154 | { USB_DEVICE(0x0cf3, 0xe004), .driver_info = BTUSB_ATH3012 }, |
| 155 | { USB_DEVICE(0x0cf3, 0xe005), .driver_info = BTUSB_ATH3012 }, | ||
| 151 | { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, | 156 | { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 }, |
| 152 | { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, | 157 | { USB_DEVICE(0x0489, 0xe057), .driver_info = BTUSB_ATH3012 }, |
| 153 | { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, | 158 | { USB_DEVICE(0x13d3, 0x3393), .driver_info = BTUSB_ATH3012 }, |
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 4ee472a5a4e4..ab9e3a8410bc 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
| @@ -1270,13 +1270,6 @@ static void ath9k_antenna_check(struct ath_softc *sc, | |||
| 1270 | return; | 1270 | return; |
| 1271 | 1271 | ||
| 1272 | /* | 1272 | /* |
| 1273 | * All MPDUs in an aggregate will use the same LNA | ||
| 1274 | * as the first MPDU. | ||
| 1275 | */ | ||
| 1276 | if (rs->rs_isaggr && !rs->rs_firstaggr) | ||
| 1277 | return; | ||
| 1278 | |||
| 1279 | /* | ||
| 1280 | * Change the default rx antenna if rx diversity | 1273 | * Change the default rx antenna if rx diversity |
| 1281 | * chooses the other antenna 3 times in a row. | ||
