Skip to content

Commit aef4f5b

Browse files
committed
Merge tag 'master-2014-07-31' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next
Conflicts: net/6lowpan/iphc.c Minor conflicts in iphc.c were changes overlapping with some style cleanups. John W. Linville says: ==================== Please pull this last(?) batch of wireless change intended for the 3.17 stream... For the NFC bits, Samuel says: "This is a rather quiet one, we have: - A new driver from ST Microelectronics for their NCI ST21NFCB, including device tree support. - p2p support for the ST21NFCA driver - A few fixes an enhancements for the NFC digital laye" For the Atheros bits, Kalle says: "Michal and Janusz did some important RX aggregation fixes, basically we were missing RX reordering altogether. The 10.1 firmware doesn't support Ad-Hoc mode and Michal fixed ath10k so that it doesn't advertise Ad-Hoc support with that firmware. Also he implemented a workaround for a KVM issue." For the Bluetooth bits, Gustavo and Johan say: "To quote Gustavo from his previous request: 'Some last minute fixes for -next. We have a fix for a use after free in RFCOMM, another fix to an issue with ADV_DIRECT_IND and one for ADV_IND with auto-connection handling. Last, we added support for reading the codec and MWS setting for controllers that support these features.' Additionally there are fixes to LE scanning, an update to conform to the 4.1 core specification as well as fixes for tracking the page scan state. All of these fixes are important for 3.17." And, "We've got: - 6lowpan fixes/cleanups - A couple crash fixes, one for the Marvell HCI driver and another in LE SMP. - Fix for an incorrect connected state check - Fix for the bondable requirement during pairing (an issue which had crept in because of using "pairable" when in fact the actual meaning was "bondable" (these have different meanings in Bluetooth)" Along with those are some late-breaking hardware support patches in brcmfmac and b43 as well as a stray ath9k patch. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 61ab9ef + dc6be9f commit aef4f5b

85 files changed

Lines changed: 7542 additions & 371 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
* STMicroelectronics SAS. ST21NFCB NFC Controller
2+
3+
Required properties:
4+
- compatible: Should be "st,st21nfcb_i2c".
5+
- clock-frequency: I²C work frequency.
6+
- reg: address on the bus
7+
- interrupt-parent: phandle for the interrupt gpio controller
8+
- interrupts: GPIO interrupt to which the chip is connected
9+
- reset-gpios: Output GPIO pin used to reset the ST21NFCB
10+
11+
Optional SoC Specific Properties:
12+
- pinctrl-names: Contains only one value - "default".
13+
- pintctrl-0: Specifies the pin control groups used for this controller.
14+
15+
Example (for ARM-based BeagleBoard xM with ST21NFCB on I2C2):
16+
17+
&i2c2 {
18+
19+
status = "okay";
20+
21+
st21nfcb: st21nfcb@8 {
22+
23+
compatible = "st,st21nfcb_i2c";
24+
25+
reg = <0x08>;
26+
clock-frequency = <400000>;
27+
28+
interrupt-parent = <&gpio5>;
29+
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
30+
31+
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
32+
};
33+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Broadcom BCM43xx Fullmac wireless SDIO devices
2+
3+
This node provides properties for controlling the Broadcom wireless device. The
4+
node is expected to be specified as a child node to the SDIO controller that
5+
connects the device to the system.
6+
7+
Required properties:
8+
9+
- compatible : Should be "brcm,bcm4329-fmac".
10+
11+
Optional properties:
12+
- brcm,drive-strength : drive strength used for SDIO pins on device in mA
13+
(default = 6).
14+
- interrupt-parent : the phandle for the interrupt controller to which the
15+
device interrupts are connected.
16+
- interrupts : specifies attributes for the out-of-band interrupt (host-wake).
17+
When not specified the device will use in-band SDIO interrupts.
18+
- interrupt-names : name of the out-of-band interrupt, which must be set
19+
to "host-wake".
20+
21+
Example:
22+
23+
mmc3: mmc@01c12000 {
24+
#address-cells = <1>;
25+
#size-cells = <0>;
26+
27+
pinctrl-names = "default";
28+
pinctrl-0 = <&mmc3_pins_a>;
29+
vmmc-supply = <&reg_vmmc3>;
30+
bus-width = <4>;
31+
non-removable;
32+
status = "okay";
33+
34+
brcmf: bcrmf@1 {
35+
reg = <1>;
36+
compatible = "brcm,bcm4329-fmac";
37+
interrupt-parent = <&pio>;
38+
interrupts = <10 8>; /* PH10 / EINT10 */
39+
interrupt-names = "host-wake";
40+
};
41+
};

‎MAINTAINERS‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ L: linux-zigbee-devel@lists.sourceforge.net (moderated for non-subscribers)
154154
L: linux-bluetooth@vger.kernel.org
155155
S: Maintained
156156
F: net/6lowpan/
157+
F: include/net/6lowpan.h
157158

158159
6PACK NETWORK DRIVER FOR AX.25
159160
M: Andreas Koensgen <ajk@comnets.uni-bremen.de>
@@ -5714,7 +5715,8 @@ S: Maintained
57145715
F: drivers/net/ethernet/marvell/mvneta.*
57155716

57165717
MARVELL MWIFIEX WIRELESS DRIVER
5717-
M: Bing Zhao <bzhao@marvell.com>
5718+
M: Amitkumar Karwar <akarwar@marvell.com>
5719+
M: Avinash Patil <patila@marvell.com>
57185720
L: linux-wireless@vger.kernel.org
57195721
S: Maintained
57205722
F: drivers/net/wireless/mwifiex/

‎drivers/bcma/driver_chipcommon_pmu.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ void bcma_pmu_spuravoid_pllupdate(struct bcma_drv_cc *cc, int spuravoid)
603603
tmp = BCMA_CC_PMU_CTL_PLL_UPD | BCMA_CC_PMU_CTL_NOILPONW;
604604
break;
605605

606+
case BCMA_CHIP_ID_BCM43131:
606607
case BCMA_CHIP_ID_BCM43217:
607608
case BCMA_CHIP_ID_BCM43227:
608609
case BCMA_CHIP_ID_BCM43228:

‎drivers/bcma/host_pci.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static const struct pci_device_id bcma_pci_bridge_tbl[] = {
280280
{ PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4359) },
281281
{ PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4365) },
282282
{ PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x43a9) },
283+
{ PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x43aa) },
283284
{ PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4727) },
284285
{ 0, },
285286
};

‎drivers/bcma/scan.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ static const struct bcma_device_id_name bcma_bcm_device_names[] = {
3232
{ BCMA_CORE_4706_CHIPCOMMON, "BCM4706 ChipCommon" },
3333
{ BCMA_CORE_4706_SOC_RAM, "BCM4706 SOC RAM" },
3434
{ BCMA_CORE_4706_MAC_GBIT, "BCM4706 GBit MAC" },
35-
{ BCMA_CORE_PCIEG2, "PCIe Gen 2" },
36-
{ BCMA_CORE_DMA, "DMA" },
37-
{ BCMA_CORE_SDIO3, "SDIO3" },
38-
{ BCMA_CORE_USB20, "USB 2.0" },
39-
{ BCMA_CORE_USB30, "USB 3.0" },
40-
{ BCMA_CORE_A9JTAG, "ARM Cortex A9 JTAG" },
41-
{ BCMA_CORE_DDR23, "Denali DDR2/DDR3 memory controller" },
42-
{ BCMA_CORE_ROM, "ROM" },
43-
{ BCMA_CORE_NAND, "NAND flash controller" },
44-
{ BCMA_CORE_QSPI, "SPI flash controller" },
45-
{ BCMA_CORE_CHIPCOMMON_B, "Chipcommon B" },
35+
{ BCMA_CORE_NS_PCIEG2, "PCIe Gen 2" },
36+
{ BCMA_CORE_NS_DMA, "DMA" },
37+
{ BCMA_CORE_NS_SDIO3, "SDIO3" },
38+
{ BCMA_CORE_NS_USB20, "USB 2.0" },
39+
{ BCMA_CORE_NS_USB30, "USB 3.0" },
40+
{ BCMA_CORE_NS_A9JTAG, "ARM Cortex A9 JTAG" },
41+
{ BCMA_CORE_NS_DDR23, "Denali DDR2/DDR3 memory controller" },
42+
{ BCMA_CORE_NS_ROM, "ROM" },
43+
{ BCMA_CORE_NS_NAND, "NAND flash controller" },
44+
{ BCMA_CORE_NS_QSPI, "SPI flash controller" },
45+
{ BCMA_CORE_NS_CHIPCOMMON_B, "Chipcommon B" },
4646
{ BCMA_CORE_ARMCA9, "ARM Cortex A9 core (ihost)" },
4747
{ BCMA_CORE_AMEMC, "AMEMC (DDR)" },
4848
{ BCMA_CORE_ALTA, "ALTA (I2S)" },

‎drivers/bcma/sprom.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ static bool bcma_sprom_onchip_available(struct bcma_bus *bus)
534534
/* for these chips OTP is always available */
535535
present = true;
536536
break;
537+
case BCMA_CHIP_ID_BCM43131:
537538
case BCMA_CHIP_ID_BCM43217:
538539
case BCMA_CHIP_ID_BCM43227:
539540
case BCMA_CHIP_ID_BCM43228:

‎drivers/bluetooth/btmrvl_main.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,17 @@ struct btmrvl_private *btmrvl_add_card(void *card)
710710
init_waitqueue_head(&priv->main_thread.wait_q);
711711
priv->main_thread.task = kthread_run(btmrvl_service_main_thread,
712712
&priv->main_thread, "btmrvl_main_service");
713+
if (IS_ERR(priv->main_thread.task))
714+
goto err_thread;
713715

714716
priv->btmrvl_dev.card = card;
715717
priv->btmrvl_dev.tx_dnld_rdy = true;
716718

717719
return priv;
718720

721+
err_thread:
722+
btmrvl_free_adapter(priv);
723+
719724
err_adapter:
720725
kfree(priv);
721726

‎drivers/net/wireless/ath/ath10k/htc.c‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static u8 ath10k_htc_get_credit_allocation(struct ath10k_htc *htc,
546546

547547
int ath10k_htc_wait_target(struct ath10k_htc *htc)
548548
{
549-
int status = 0;
549+
int i, status = 0;
550550
struct ath10k_htc_svc_conn_req conn_req;
551551
struct ath10k_htc_svc_conn_resp conn_resp;
552552
struct ath10k_htc_msg *msg;
@@ -556,10 +556,26 @@ int ath10k_htc_wait_target(struct ath10k_htc *htc)
556556

557557
status = wait_for_completion_timeout(&htc->ctl_resp,
558558
ATH10K_HTC_WAIT_TIMEOUT_HZ);
559-
if (status <= 0) {
559+
if (status == 0) {
560+
/* Workaround: In some cases the PCI HIF doesn't
561+
* receive interrupt for the control response message
562+
* even if the buffer was completed. It is suspected
563+
* iomap writes unmasking PCI CE irqs aren't propagated
564+
* properly in KVM PCI-passthrough sometimes.
565+
*/
566+
ath10k_warn("failed to receive control response completion, polling..\n");
567+
568+
for (i = 0; i < CE_COUNT; i++)
569+
ath10k_hif_send_complete_check(htc->ar, i, 1);
570+
571+
status = wait_for_completion_timeout(&htc->ctl_resp,
572+
ATH10K_HTC_WAIT_TIMEOUT_HZ);
573+
560574
if (status == 0)
561575
status = -ETIMEDOUT;
576+
}
562577

578+
if (status < 0) {
563579
ath10k_err("ctl_resp never came in (%d)\n", status);
564580
return status;
565581
}

0 commit comments

Comments
 (0)