Skip to content

Commit 5b4c314

Browse files
committed
Merge tag 'master-2014-09-08' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next
John W. Linville says: ==================== pull request: wireless-next 2014-09-08 Please pull this batch of updates intended for the 3.18 stream... For the mac80211 bits, Johannes says: "Not that much content this time. Some RCU cleanups, crypto performance improvements, and various patches all over, rather than listing them one might as well look into the git log instead." For the Bluetooth bits, Gustavo says: "The changes consists of: - Coding style fixes to HCI drivers - Corrupted ack value fix for the H5 HCI driver - A couple of Enhanced L2CAP fixes - Conversion of SMP code to use common L2CAP channel API - Page scan optimizations when using the kernel-side whitelist - Various mac802154 and and ieee802154 6lowpan cleanups - One new Atheros USB ID" For the iwlwifi bits, Emmanuel says: "We have a new big thing coming up which is called Dynamic Queue Allocation (or DQA). This is a completely new way to work with the Tx queues and it requires major refactoring. This is being done by Johannes and Avri. Besides this, Johannes disables U-APSD by default because of APs that would disable A-MPDU if the association supports U-ASPD. Luca contributed to the power area which he was cleaning up on the way while working on CSA. A few more random things here and there." For the Atheros bits, Kalle says: "For ath6kl we had two small fixes and a new SDIO device id. For ath10k the bigger changes are: * support for new firmware version 10.2 (Michal) * spectral scan support (Simon, Sven & Mathias) * export a firmware crash dump file (Ben & me) * cleaning up of pci.c (Michal) * print pci id in all messages, which causes most of the churn (Michal)" Beyond that, we have the usual collection of various updates to ath9k, b43, mwifiex, and wil6210, as well as a few other bits here and there. Please let me know if there are problems! ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents a7f26b7 + 61a3d4f commit 5b4c314

213 files changed

Lines changed: 8799 additions & 4531 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ F: drivers/scsi/53c700*
152152

153153
6LOWPAN GENERIC (BTLE/IEEE 802.15.4)
154154
M: Alexander Aring <alex.aring@gmail.com>
155-
L: linux-zigbee-devel@lists.sourceforge.net (moderated for non-subscribers)
156155
L: linux-bluetooth@vger.kernel.org
156+
L: linux-wpan@vger.kernel.org
157157
S: Maintained
158158
F: net/6lowpan/
159159
F: include/net/6lowpan.h
@@ -4597,13 +4597,14 @@ F: drivers/idle/i7300_idle.c
45974597

45984598
IEEE 802.15.4 SUBSYSTEM
45994599
M: Alexander Aring <alex.aring@gmail.com>
4600-
L: linux-zigbee-devel@lists.sourceforge.net (moderated for non-subscribers)
4601-
W: http://apps.sourceforge.net/trac/linux-zigbee
4602-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/lowpan/lowpan.git
4600+
L: linux-wpan@vger.kernel.org
4601+
W: https://github.com/linux-wpan
4602+
T: git git://github.com/linux-wpan/linux-wpan-next.git
46034603
S: Maintained
46044604
F: net/ieee802154/
46054605
F: net/mac802154/
46064606
F: drivers/net/ieee802154/
4607+
F: Documentation/networking/ieee802154.txt
46074608

46084609
IGUANAWORKS USB IR TRANSCEIVER
46094610
M: Sean Young <sean@mess.org>
@@ -6373,7 +6374,7 @@ M: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
63736374
M: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
63746375
M: Samuel Ortiz <sameo@linux.intel.com>
63756376
L: linux-wireless@vger.kernel.org
6376-
L: linux-nfc@lists.01.org (moderated for non-subscribers)
6377+
L: linux-nfc@lists.01.org (subscribers-only)
63776378
S: Supported
63786379
F: net/nfc/
63796380
F: include/net/nfc/

‎drivers/bcma/driver_mips.c‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
#include <linux/serial_reg.h>
2222
#include <linux/time.h>
2323

24+
enum bcma_boot_dev {
25+
BCMA_BOOT_DEV_UNK = 0,
26+
BCMA_BOOT_DEV_ROM,
27+
BCMA_BOOT_DEV_PARALLEL,
28+
BCMA_BOOT_DEV_SERIAL,
29+
BCMA_BOOT_DEV_NAND,
30+
};
31+
2432
static const char * const part_probes[] = { "bcm47xxpart", NULL };
2533

2634
static struct physmap_flash_data bcma_pflash_data = {
@@ -229,11 +237,51 @@ u32 bcma_cpu_clock(struct bcma_drv_mips *mcore)
229237
}
230238
EXPORT_SYMBOL(bcma_cpu_clock);
231239

240+
static enum bcma_boot_dev bcma_boot_dev(struct bcma_bus *bus)
241+
{
242+
struct bcma_drv_cc *cc = &bus->drv_cc;
243+
u8 cc_rev = cc->core->id.rev;
244+
245+
if (cc_rev == 42) {
246+
struct bcma_device *core;
247+
248+
core = bcma_find_core(bus, BCMA_CORE_NS_ROM);
249+
if (core) {
250+
switch (bcma_aread32(core, BCMA_IOST) &
251+
BCMA_NS_ROM_IOST_BOOT_DEV_MASK) {
252+
case BCMA_NS_ROM_IOST_BOOT_DEV_NOR:
253+
return BCMA_BOOT_DEV_SERIAL;
254+
case BCMA_NS_ROM_IOST_BOOT_DEV_NAND:
255+
return BCMA_BOOT_DEV_NAND;
256+
case BCMA_NS_ROM_IOST_BOOT_DEV_ROM:
257+
default:
258+
return BCMA_BOOT_DEV_ROM;
259+
}
260+
}
261+
} else {
262+
if (cc_rev == 38) {
263+
if (cc->status & BCMA_CC_CHIPST_5357_NAND_BOOT)
264+
return BCMA_BOOT_DEV_NAND;
265+
else if (cc->status & BIT(5))
266+
return BCMA_BOOT_DEV_ROM;
267+
}
268+
269+
if ((cc->capabilities & BCMA_CC_CAP_FLASHT) ==
270+
BCMA_CC_FLASHT_PARA)
271+
return BCMA_BOOT_DEV_PARALLEL;
272+
else
273+
return BCMA_BOOT_DEV_SERIAL;
274+
}
275+
276+
return BCMA_BOOT_DEV_SERIAL;
277+
}
278+
232279
static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
233280
{
234281
struct bcma_bus *bus = mcore->core->bus;
235282
struct bcma_drv_cc *cc = &bus->drv_cc;
236283
struct bcma_pflash *pflash = &cc->pflash;
284+
enum bcma_boot_dev boot_dev;
237285

238286
switch (cc->capabilities & BCMA_CC_CAP_FLASHT) {
239287
case BCMA_CC_FLASHT_STSER:
@@ -269,6 +317,20 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
269317
bcma_nflash_init(cc);
270318
}
271319
}
320+
321+
/* Determine flash type this SoC boots from */
322+
boot_dev = bcma_boot_dev(bus);
323+
switch (boot_dev) {
324+
case BCMA_BOOT_DEV_PARALLEL:
325+
case BCMA_BOOT_DEV_SERIAL:
326+
/* TODO: Init NVRAM using BCMA_SOC_FLASH2 window */
327+
break;
328+
case BCMA_BOOT_DEV_NAND:
329+
/* TODO: Init NVRAM using BCMA_SOC_FLASH1 window */
330+
break;
331+
default:
332+
break;
333+
}
272334
}
273335

274336
void bcma_core_mips_early_init(struct bcma_drv_mips *mcore)

‎drivers/bcma/host_soc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,16 @@ static void bcma_host_soc_block_write(struct bcma_device *core,
134134

135135
static u32 bcma_host_soc_aread32(struct bcma_device *core, u16 offset)
136136
{
137+
if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
138+
return ~0;
137139
return readl(core->io_wrap + offset);
138140
}
139141

140142
static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset,
141143
u32 value)
142144
{
145+
if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
146+
return;
143147
writel(value, core->io_wrap + offset);
144148
}
145149

‎drivers/bcma/scan.c‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,13 @@ static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr,
421421
core->io_addr = ioremap_nocache(core->addr, BCMA_CORE_SIZE);
422422
if (!core->io_addr)
423423
return -ENOMEM;
424-
core->io_wrap = ioremap_nocache(core->wrap, BCMA_CORE_SIZE);
425-
if (!core->io_wrap) {
426-
iounmap(core->io_addr);
427-
return -ENOMEM;
424+
if (core->wrap) {
425+
core->io_wrap = ioremap_nocache(core->wrap,
426+
BCMA_CORE_SIZE);
427+
if (!core->io_wrap) {
428+
iounmap(core->io_addr);
429+
return -ENOMEM;
430+
}
428431
}
429432
}
430433
return 0;

‎drivers/bluetooth/ath3k.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ static const struct usb_device_id ath3k_table[] = {
8888
{ USB_DEVICE(0x04CA, 0x300b) },
8989
{ USB_DEVICE(0x0930, 0x0219) },
9090
{ USB_DEVICE(0x0930, 0x0220) },
91+
{ USB_DEVICE(0x0930, 0x0227) },
9192
{ USB_DEVICE(0x0b05, 0x17d0) },
9293
{ USB_DEVICE(0x0CF3, 0x0036) },
9394
{ USB_DEVICE(0x0CF3, 0x3004) },
@@ -138,6 +139,7 @@ static const struct usb_device_id ath3k_blist_tbl[] = {
138139
{ USB_DEVICE(0x04ca, 0x300b), .driver_info = BTUSB_ATH3012 },
139140
{ USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 },
140141
{ USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 },
142+
{ USB_DEVICE(0x0930, 0x0227), .driver_info = BTUSB_ATH3012 },
141143
{ USB_DEVICE(0x0b05, 0x17d0), .driver_info = BTUSB_ATH3012 },
142144
{ USB_DEVICE(0x0CF3, 0x0036), .driver_info = BTUSB_ATH3012 },
143145
{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 },

‎drivers/bluetooth/bluecard_cs.c‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ MODULE_LICENSE("GPL");
6161
/* ======================== Local structures ======================== */
6262

6363

64-
typedef struct bluecard_info_t {
64+
struct bluecard_info {
6565
struct pcmcia_device *p_dev;
6666

6767
struct hci_dev *hdev;
@@ -78,7 +78,7 @@ typedef struct bluecard_info_t {
7878

7979
unsigned char ctrl_reg;
8080
unsigned long hw_state; /* Status of the hardware and LED control */
81-
} bluecard_info_t;
81+
};
8282

8383

8484
static int bluecard_config(struct pcmcia_device *link);
@@ -157,7 +157,7 @@ static void bluecard_detach(struct pcmcia_device *p_dev);
157157

158158
static void bluecard_activity_led_timeout(u_long arg)
159159
{
160-
bluecard_info_t *info = (bluecard_info_t *)arg;
160+
struct bluecard_info *info = (struct bluecard_info *)arg;
161161
unsigned int iobase = info->p_dev->resource[0]->start;
162162

163163
if (!test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state)))
@@ -173,7 +173,7 @@ static void bluecard_activity_led_timeout(u_long arg)
173173
}
174174

175175

176-
static void bluecard_enable_activity_led(bluecard_info_t *info)
176+
static void bluecard_enable_activity_led(struct bluecard_info *info)
177177
{
178178
unsigned int iobase = info->p_dev->resource[0]->start;
179179

@@ -215,7 +215,7 @@ static int bluecard_write(unsigned int iobase, unsigned int offset, __u8 *buf, i
215215
}
216216

217217

218-
static void bluecard_write_wakeup(bluecard_info_t *info)
218+
static void bluecard_write_wakeup(struct bluecard_info *info)
219219
{
220220
if (!info) {
221221
BT_ERR("Unknown device");
@@ -368,7 +368,8 @@ static int bluecard_read(unsigned int iobase, unsigned int offset, __u8 *buf, in
368368
}
369369

370370

371-
static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
371+
static void bluecard_receive(struct bluecard_info *info,
372+
unsigned int offset)
372373
{
373374
unsigned int iobase;
374375
unsigned char buf[31];
@@ -497,7 +498,7 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
497498

498499
static irqreturn_t bluecard_interrupt(int irq, void *dev_inst)
499500
{
500-
bluecard_info_t *info = dev_inst;
501+
struct bluecard_info *info = dev_inst;
501502
unsigned int iobase;
502503
unsigned char reg;
503504

@@ -562,7 +563,7 @@ static irqreturn_t bluecard_interrupt(int irq, void *dev_inst)
562563

563564
static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud)
564565
{
565-
bluecard_info_t *info = hci_get_drvdata(hdev);
566+
struct bluecard_info *info = hci_get_drvdata(hdev);
566567
struct sk_buff *skb;
567568

568569
/* Ericsson baud rate command */
@@ -611,7 +612,7 @@ static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud)
611612

612613
static int bluecard_hci_flush(struct hci_dev *hdev)
613614
{
614-
bluecard_info_t *info = hci_get_drvdata(hdev);
615+
struct bluecard_info *info = hci_get_drvdata(hdev);
615616

616617
/* Drop TX queue */
617618
skb_queue_purge(&(info->txq));
@@ -622,7 +623,7 @@ static int bluecard_hci_flush(struct hci_dev *hdev)
622623

623624
static int bluecard_hci_open(struct hci_dev *hdev)
624625
{
625-
bluecard_info_t *info = hci_get_drvdata(hdev);
626+
struct bluecard_info *info = hci_get_drvdata(hdev);
626627

627628
if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state)))
628629
bluecard_hci_set_baud_rate(hdev, DEFAULT_BAUD_RATE);
@@ -643,7 +644,7 @@ static int bluecard_hci_open(struct hci_dev *hdev)
643644

644645
static int bluecard_hci_close(struct hci_dev *hdev)
645646
{
646-
bluecard_info_t *info = hci_get_drvdata(hdev);
647+
struct bluecard_info *info = hci_get_drvdata(hdev);
647648

648649
if (!test_and_clear_bit(HCI_RUNNING, &(hdev->flags)))
649650
return 0;
@@ -663,7 +664,7 @@ static int bluecard_hci_close(struct hci_dev *hdev)
663664

664665
static int bluecard_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
665666
{
666-
bluecard_info_t *info = hci_get_drvdata(hdev);
667+
struct bluecard_info *info = hci_get_drvdata(hdev);
667668

668669
switch (bt_cb(skb)->pkt_type) {
669670
case HCI_COMMAND_PKT:
@@ -691,7 +692,7 @@ static int bluecard_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
691692
/* ======================== Card services HCI interaction ======================== */
692693

693694

694-
static int bluecard_open(bluecard_info_t *info)
695+
static int bluecard_open(struct bluecard_info *info)
695696
{
696697
unsigned int iobase = info->p_dev->resource[0]->start;
697698
struct hci_dev *hdev;
@@ -806,7 +807,7 @@ static int bluecard_open(bluecard_info_t *info)
806807
}
807808

808809

809-
static int bluecard_close(bluecard_info_t *info)
810+
static int bluecard_close(struct bluecard_info *info)
810811
{
811812
unsigned int iobase = info->p_dev->resource[0]->start;
812813
struct hci_dev *hdev = info->hdev;
@@ -833,7 +834,7 @@ static int bluecard_close(bluecard_info_t *info)
833834

834835
static int bluecard_probe(struct pcmcia_device *link)
835836
{
836-
bluecard_info_t *info;
837+
struct bluecard_info *info;
837838

838839
/* Create new info device */
839840
info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
@@ -857,7 +858,7 @@ static void bluecard_detach(struct pcmcia_device *link)
857858

858859
static int bluecard_config(struct pcmcia_device *link)
859860
{
860-
bluecard_info_t *info = link->priv;
861+
struct bluecard_info *info = link->priv;
861862
int i, n;
862863

863864
link->config_index = 0x20;
@@ -897,7 +898,7 @@ static int bluecard_config(struct pcmcia_device *link)
897898

898899
static void bluecard_release(struct pcmcia_device *link)
899900
{
900-
bluecard_info_t *info = link->priv;
901+
struct bluecard_info *info = link->priv;
901902

902903
bluecard_close(info);
903904

0 commit comments

Comments
 (0)