diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-04 18:03:49 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-04 18:03:49 -0500 |
| commit | 869682384e78605897f9332700fe26c358ecf21c (patch) | |
| tree | 8b0654cec2ccfbf70f163caa66c98f6316b91f0d | |
| parent | d6042eac44b54dc5c7cb839175eb51dfd03d7633 (diff) | |
| parent | d8f46ff11081f03b09efe82245a3257bab6bf60e (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
fix CAN MAINTAINERS SCM tree type
mwifiex: fix crash during simultaneous scan and connect
b43: fix regression in PIO case
ath9k: Fix kernel panic in AR2427 in AP mode
CAN MAINTAINERS update
net: fsl: fec: fix build for mx23-only kernel
sch_qfq: fix overflow in qfq_update_start()
Revert "Bluetooth: Increase HCI reset timeout in hci_dev_do_close"
| -rw-r--r-- | MAINTAINERS | 11 | ||||
| -rw-r--r-- | drivers/net/ethernet/freescale/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 3 | ||||
| -rw-r--r-- | drivers/net/wireless/b43/pio.c | 16 | ||||
| -rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 7 | ||||
| -rw-r--r-- | net/bluetooth/hci_core.c | 2 | ||||
| -rw-r--r-- | net/sched/sch_qfq.c | 4 |
7 files changed, 32 insertions, 15 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 0e7a80aefa0c..62f1cd357ddf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -1698,11 +1698,9 @@ F: arch/x86/include/asm/tce.h | |||
| 1698 | 1698 | ||
| 1699 | CAN NETWORK LAYER | 1699 | CAN NETWORK LAYER |
| 1700 | M: Oliver Hartkopp <socketcan@hartkopp.net> | 1700 | M: Oliver Hartkopp <socketcan@hartkopp.net> |
| 1701 | M: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> | ||
| 1702 | M: Urs Thuermann <urs.thuermann@volkswagen.de> | ||
| 1703 | L: linux-can@vger.kernel.org | 1701 | L: linux-can@vger.kernel.org |
| 1704 | L: netdev@vger.kernel.org | 1702 | W: http://gitorious.org/linux-can |
| 1705 | W: http://developer.berlios.de/projects/socketcan/ | 1703 | T: git git://gitorious.org/linux-can/linux-can-next.git |
| 1706 | S: Maintained | 1704 | S: Maintained |
| 1707 | F: net/can/ | 1705 | F: net/can/ |
| 1708 | F: include/linux/can.h | 1706 | F: include/linux/can.h |
| @@ -1713,9 +1711,10 @@ F: include/linux/can/gw.h | |||
| 1713 | 1711 | ||
| 1714 | CAN NETWORK DRIVERS | 1712 | CAN NETWORK DRIVERS |
| 1715 | M: Wolfgang Grandegger <wg@grandegger.com> | 1713 | M: Wolfgang Grandegger <wg@grandegger.com> |
| 1714 | M: Marc Kleine-Budde <mkl@pengutronix.de> | ||
| 1716 | L: linux-can@vger.kernel.org | 1715 | L: linux-can@vger.kernel.org |
| 1717 | L: netdev@vger.kernel.org | 1716 | W: http://gitorious.org/linux-can |
| 1718 | W: http://developer.berlios.de/projects/socketcan/ | 1717 | T: git git://gitorious.org/linux-can/linux-can-next.git |
| 1719 | S: Maintained | 1718 | S: Maintained |
| 1720 | F: drivers/net/can/ | 1719 | F: drivers/net/can/ |
| 1721 | F: include/linux/can/dev.h | 1720 | F: include/linux/can/dev.h |
diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig index 5272f9d4dda9..9de37642f09f 100644 --- a/drivers/net/ethernet/freescale/Kconfig +++ b/drivers/net/ethernet/freescale/Kconfig | |||
| @@ -23,8 +23,8 @@ if NET_VENDOR_FREESCALE | |||
| 23 | config FEC | 23 | config FEC |
| 24 | bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" | 24 | bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)" |
| 25 | depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ | 25 | depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \ |
| 26 | ARCH_MXC || ARCH_MXS) | 26 | ARCH_MXC || SOC_IMX28) |
| 27 | default ARCH_MXC || ARCH_MXS if ARM | 27 | default ARCH_MXC || SOC_IMX28 if ARM |
| 28 | select PHYLIB | 28 | select PHYLIB |
| 29 | ---help--- | 29 | ---help--- |
| 30 | Say Y here if you want to use the built-in 10/100 Fast ethernet | 30 | Say Y here if you want to use the built-in 10/100 Fast ethernet |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index d2348a5a7809..a9c5ae75277e 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
| @@ -1843,6 +1843,9 @@ static void ath9k_sta_notify(struct ieee80211_hw *hw, | |||
| 1843 | struct ath_softc *sc = hw->priv; | 1843 | struct ath_softc *sc = hw->priv; |
| 1844 | struct ath_node *an = (struct ath_node *) sta->drv_priv; | 1844 | struct ath_node *an = (struct ath_node *) sta->drv_priv; |
| 1845 | 1845 | ||
| 1846 | if (!(sc->sc_flags & SC_OP_TXAGGR)) | ||
| 1847 | return; | ||
| 1848 | |||
| 1846 | switch (cmd) { | 1849 | switch (cmd) { |
| 1847 | case STA_NOTIFY_SLEEP: | 1850 | case STA_NOTIFY_SLEEP: |
| 1848 | an->sleeping = true; | 1851 | an->sleeping = true; |
diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c index fcff923b3c18..279a53eae4c5 100644 --- a/drivers/net/wireless/b43/pio.c +++ b/drivers/net/wireless/b43/pio.c | |||
| @@ -617,9 +617,19 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q) | |||
| 617 | const char *err_msg = NULL; | 617 | const char *err_msg = NULL; |
| 618 | struct b43_rxhdr_fw4 *rxhdr = | 618 | struct b43_rxhdr_fw4 *rxhdr = |
| 619 | (struct b43_rxhdr_fw4 *)wl->pio_scratchspace; | 619 | (struct b43_rxhdr_fw4 *)wl->pio_scratchspace; |
| 620 | size_t rxhdr_size = sizeof(*rxhdr); | ||
| 620 | 621 | ||
| 621 | BUILD_BUG_ON(sizeof(wl->pio_scratchspace) < sizeof(*rxhdr)); | 622 | BUILD_BUG_ON(sizeof(wl->pio_scratchspace) < sizeof(*rxhdr)); |
| 622 | memset(rxhdr, 0, sizeof(*rxhdr)); | 623 | switch (dev->fw.hdr_format) { |
| 624 | case B43_FW_HDR_410: | ||
| 625 | case B43_FW_HDR_351: | ||
| 626 | rxhdr_size -= sizeof(rxhdr->format_598) - | ||
| 627 | sizeof(rxhdr->format_351); | ||
| 628 | break; | ||
| 629 | case B43_FW_HDR_598: | ||
| 630 | break; | ||
| 631 | } | ||
| 632 | memset(rxhdr, 0, rxhdr_size); | ||
| 623 | 633 | ||
| 624 | /* Check if we have data and wait for it to get ready. */ | 634 | /* Check if we have data and wait for it to get ready. */ |
| 625 | if (q->rev >= 8) { | 635 | if (q->rev >= 8) { |
| @@ -657,11 +667,11 @@ data_ready: | |||
| 657 | 667 | ||
| 658 | /* Get the preamble (RX header) */ | 668 | /* Get the preamble (RX header) */ |
| 659 | if (q->rev >= 8) { | 669 | if (q->rev >= 8) { |
| 660 | b43_block_read(dev, rxhdr, sizeof(*rxhdr), | 670 | b43_block_read(dev, rxhdr, rxhdr_size, |
| 661 | q->mmio_base + B43_PIO8_RXDATA, | 671 | q->mmio_base + B43_PIO8_RXDATA, |
| 662 | sizeof(u32)); | 672 | sizeof(u32)); |
| 663 | } else { | 673 | } else { |
| 664 | b43_block_read(dev, rxhdr, sizeof(*rxhdr), | 674 | b43_block_read(dev, rxhdr, rxhdr_size, |
| 665 | q->mmio_base + B43_PIO_RXDATA, | 675 | q->mmio_base + B43_PIO_RXDATA, |
| 666 | sizeof(u16)); | 676 | sizeof(u16)); |
| 667 | } | 677 | } |
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index ea4a29b7e331..1679c2593b7b 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
| @@ -55,9 +55,14 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter) | |||
| 55 | { | 55 | { |
| 56 | bool cancel_flag = false; | 56 | bool cancel_flag = false; |
| 57 | int status = adapter->cmd_wait_q.status; | 57 | int status = adapter->cmd_wait_q.status; |
| 58 | struct cmd_ctrl_node *cmd_queued = adapter->cmd_queued; | 58 | struct cmd_ctrl_node *cmd_queued; |
| 59 | 59 | ||
| 60 | if (!adapter->cmd_queued) | ||
| 61 | return 0; | ||
| 62 | |||
| 63 | cmd_queued = adapter->cmd_queued; | ||
| 60 | adapter->cmd_queued = NULL; | 64 | adapter->cmd_queued = NULL; |
| 65 | |||
| 61 | dev_dbg(adapter->dev, "cmd pending\n"); | 66 | dev_dbg(adapter->dev, "cmd pending\n"); |
| 62 | atomic_inc(&adapter->cmd_pending); | 67 | atomic_inc(&adapter->cmd_pending); |
| 63 | 68 | ||
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index be84ae33ae36..b84458dcc226 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
| @@ -613,7 +613,7 @@ static int hci_dev_do_close(struct hci_dev *hdev) | |||
| 613 | if (!test_bit(HCI_RAW, &hdev->flags)) { | 613 | if (!test_bit(HCI_RAW, &hdev->flags)) { |
| 614 | set_bit(HCI_INIT, &hdev->flags); | 614 | set_bit(HCI_INIT, &hdev->flags); |
| 615 | __hci_request(hdev, hci_reset_req, 0, | 615 | __hci_request(hdev, hci_reset_req, 0, |
| 616 | msecs_to_jiffies(HCI_INIT_TIMEOUT)); | 616 | msecs_to_jiffies(250)); |
| 617 | clear_bit(HCI_INIT, &hdev->flags); | 617 | clear_bit(HCI_INIT, &hdev->flags); |
| 618 | } | 618 | } |
| 619 | 619 | ||
diff --git a/net/sched/sch_qfq.c b/net/sched/sch_qfq.c index 103343408593..7b0325459e71 100644 --- a/net/sched/sch_qfq.c +++ b/net/sched/sch_qfq.c | |||
| @@ -817,11 +817,11 @@ skip_unblock: | |||
| 817 | static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl) | 817 | static void qfq_update_start(struct qfq_sched *q, struct qfq_class *cl) |
| 818 | { | 818 | { |
| 819 | unsigned long mask; | 819 | unsigned long mask; |
| 820 | uint32_t limit, roundedF; | 820 | u64 limit, roundedF; |
| 821 | int slot_shift = cl->grp->slot_shift; | 821 | int slot_shift = cl->grp->slot_shift; |
| 822 | 822 | ||
| 823 | roundedF = qfq_round_down(cl->F, slot_shift); | 823 | roundedF = qfq_round_down(cl->F, slot_shift); |
| 824 | limit = qfq_round_down(q->V, slot_shift) + (1UL << slot_shift); | 824 | limit = qfq_round_down(q->V, slot_shift) + (1ULL << slot_shift); |
| 825 | 825 | ||
| 826 | if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) { | 826 | if (!qfq_gt(cl->F, q->V) || qfq_gt(roundedF, limit)) { |
| 827 | /* timestamp was stale */ | 827 | /* timestamp was stale */ |
