]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2013 15:49:51 +0000 (07:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2013 15:49:51 +0000 (07:49 -0800)
added patches:
ath9k-fix-tx-queue-scheduling-after-channel-changes.patch
can-at91-can-fix-device-to-driver-data-mapping-for-platform-devices.patch
can-flexcan-fix-mx28-detection-by-rearanging-of-match-table.patch
can-flexcan-flexcan_chip_start-fix-regression-mark-one-mb-for-tx-and-abort-pending-tx.patch
cfg80211-fix-warning-when-using-wext-for-ibss.patch
iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch
jfs-fix-error-path-in-ialloc.patch
mwifiex-fix-sdio-interrupt-lost-issue.patch
rtlwifi-rtl8192cu-fix-error-in-pointer-arithmetic.patch
scsi-sd-call-blk_pm_runtime_init-before-add_disk.patch

queue-3.10/ath9k-fix-tx-queue-scheduling-after-channel-changes.patch [new file with mode: 0644]
queue-3.10/can-at91-can-fix-device-to-driver-data-mapping-for-platform-devices.patch [new file with mode: 0644]
queue-3.10/can-flexcan-fix-mx28-detection-by-rearanging-of-match-table.patch [new file with mode: 0644]
queue-3.10/can-flexcan-flexcan_chip_start-fix-regression-mark-one-mb-for-tx-and-abort-pending-tx.patch [new file with mode: 0644]
queue-3.10/cfg80211-fix-warning-when-using-wext-for-ibss.patch [new file with mode: 0644]
queue-3.10/iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch [new file with mode: 0644]
queue-3.10/jfs-fix-error-path-in-ialloc.patch [new file with mode: 0644]
queue-3.10/mwifiex-fix-sdio-interrupt-lost-issue.patch [new file with mode: 0644]
queue-3.10/rtlwifi-rtl8192cu-fix-error-in-pointer-arithmetic.patch [new file with mode: 0644]
queue-3.10/scsi-sd-call-blk_pm_runtime_init-before-add_disk.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/ath9k-fix-tx-queue-scheduling-after-channel-changes.patch b/queue-3.10/ath9k-fix-tx-queue-scheduling-after-channel-changes.patch
new file mode 100644 (file)
index 0000000..5a176ca
--- /dev/null
@@ -0,0 +1,69 @@
+From ec30326ea773900da210c495e14cfeb532550ba2 Mon Sep 17 00:00:00 2001
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sat, 5 Oct 2013 14:09:30 +0200
+Subject: ath9k: fix tx queue scheduling after channel changes
+
+From: Felix Fietkau <nbd@openwrt.org>
+
+commit ec30326ea773900da210c495e14cfeb532550ba2 upstream.
+
+Otherwise, if queues are full during a scan, tx scheduling does not
+resume after switching back to the home channel.
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/ath/ath9k/main.c |   23 +++++++++++------------
+ 1 file changed, 11 insertions(+), 12 deletions(-)
+
+--- a/drivers/net/wireless/ath/ath9k/main.c
++++ b/drivers/net/wireless/ath/ath9k/main.c
+@@ -209,6 +209,7 @@ static bool ath_complete_reset(struct at
+       struct ath_hw *ah = sc->sc_ah;
+       struct ath_common *common = ath9k_hw_common(ah);
+       unsigned long flags;
++      int i;
+       if (ath_startrecv(sc) != 0) {
+               ath_err(common, "Unable to restart recv logic\n");
+@@ -236,6 +237,15 @@ static bool ath_complete_reset(struct at
+               }
+       work:
+               ath_restart_work(sc);
++
++              for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
++                      if (!ATH_TXQ_SETUP(sc, i))
++                              continue;
++
++                      spin_lock_bh(&sc->tx.txq[i].axq_lock);
++                      ath_txq_schedule(sc, &sc->tx.txq[i]);
++                      spin_unlock_bh(&sc->tx.txq[i].axq_lock);
++              }
+       }
+       if ((ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) && sc->ant_rx != 3)
+@@ -543,21 +553,10 @@ chip_reset:
+ static int ath_reset(struct ath_softc *sc)
+ {
+-      int i, r;
++      int r;
+       ath9k_ps_wakeup(sc);
+-
+       r = ath_reset_internal(sc, NULL);
+-
+-      for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
+-              if (!ATH_TXQ_SETUP(sc, i))
+-                      continue;
+-
+-              spin_lock_bh(&sc->tx.txq[i].axq_lock);
+-              ath_txq_schedule(sc, &sc->tx.txq[i]);
+-              spin_unlock_bh(&sc->tx.txq[i].axq_lock);
+-      }
+-
+       ath9k_ps_restore(sc);
+       return r;
diff --git a/queue-3.10/can-at91-can-fix-device-to-driver-data-mapping-for-platform-devices.patch b/queue-3.10/can-at91-can-fix-device-to-driver-data-mapping-for-platform-devices.patch
new file mode 100644 (file)
index 0000000..4f3d8d6
--- /dev/null
@@ -0,0 +1,43 @@
+From 5abbeea553c8260ed4e2ac4aae962aff800b6c6d Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Wed, 9 Oct 2013 12:19:19 +0200
+Subject: can: at91-can: fix device to driver data mapping for platform devices
+
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+
+commit 5abbeea553c8260ed4e2ac4aae962aff800b6c6d upstream.
+
+In commit:
+
+    3078cde7 can: at91_can: add dt support
+
+device tree support was added to the at91_can driver. In this commit the
+mapping of device to driver data was mixed up. This results in the sam9x5
+parameters being used for the sam9263 and the workaround for the broken mailbox
+0 on the sam9263 not being activated.
+
+This patch fixes the broken platform_device_id table.
+
+Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/can/at91_can.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/can/at91_can.c
++++ b/drivers/net/can/at91_can.c
+@@ -1409,10 +1409,10 @@ static int at91_can_remove(struct platfo
+ static const struct platform_device_id at91_can_id_table[] = {
+       {
+-              .name = "at91_can",
++              .name = "at91sam9x5_can",
+               .driver_data = (kernel_ulong_t)&at91_at91sam9x5_data,
+       }, {
+-              .name = "at91sam9x5_can",
++              .name = "at91_can",
+               .driver_data = (kernel_ulong_t)&at91_at91sam9263_data,
+       }, {
+               /* sentinel */
diff --git a/queue-3.10/can-flexcan-fix-mx28-detection-by-rearanging-of-match-table.patch b/queue-3.10/can-flexcan-fix-mx28-detection-by-rearanging-of-match-table.patch
new file mode 100644 (file)
index 0000000..68c1d02
--- /dev/null
@@ -0,0 +1,36 @@
+From e358784297992b012e8071764d996191dd2b1a54 Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Thu, 3 Oct 2013 23:51:55 +0200
+Subject: can: flexcan: fix mx28 detection by rearanging OF match table
+
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+
+commit e358784297992b012e8071764d996191dd2b1a54 upstream.
+
+The current implemetation of of_match_device() relies that the of_device_id
+table in the driver is sorted from most specific to least specific compatible.
+
+Without this patch the mx28 is detected as the less specific p1010. This leads
+to a p1010 specific workaround is activated on the mx28, which is not needed.
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/can/flexcan.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/can/flexcan.c
++++ b/drivers/net/can/flexcan.c
+@@ -983,9 +983,9 @@ static void unregister_flexcandev(struct
+ }
+ static const struct of_device_id flexcan_of_match[] = {
+-      { .compatible = "fsl,p1010-flexcan", .data = &fsl_p1010_devtype_data, },
+-      { .compatible = "fsl,imx28-flexcan", .data = &fsl_imx28_devtype_data, },
+       { .compatible = "fsl,imx6q-flexcan", .data = &fsl_imx6q_devtype_data, },
++      { .compatible = "fsl,imx28-flexcan", .data = &fsl_imx28_devtype_data, },
++      { .compatible = "fsl,p1010-flexcan", .data = &fsl_p1010_devtype_data, },
+       { /* sentinel */ },
+ };
+ MODULE_DEVICE_TABLE(of, flexcan_of_match);
diff --git a/queue-3.10/can-flexcan-flexcan_chip_start-fix-regression-mark-one-mb-for-tx-and-abort-pending-tx.patch b/queue-3.10/can-flexcan-flexcan_chip_start-fix-regression-mark-one-mb-for-tx-and-abort-pending-tx.patch
new file mode 100644 (file)
index 0000000..7e7097f
--- /dev/null
@@ -0,0 +1,73 @@
+From d5a7b406c529e4595ce03dc8f6dcf7fa36f106fa Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Fri, 4 Oct 2013 10:52:36 +0200
+Subject: can: flexcan: flexcan_chip_start: fix regression, mark one MB for TX and abort pending TX
+
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+
+commit d5a7b406c529e4595ce03dc8f6dcf7fa36f106fa upstream.
+
+In patch
+
+    0d1862e can: flexcan: fix flexcan_chip_start() on imx6
+
+the loop in flexcan_chip_start() that iterates over all mailboxes after the
+soft reset of the CAN core was removed. This loop put all mailboxes (even the
+ones marked as reserved 1...7) into EMPTY/INACTIVE mode. On mailboxes 8...63,
+this aborts any pending TX messages.
+
+After a cold boot there is random garbage in the mailboxes, which leads to
+spontaneous transmit of CAN frames during first activation. Further if the
+interface was disabled with a pending message (usually due to an error
+condition on the CAN bus), this message is retransmitted after enabling the
+interface again.
+
+This patch fixes the regression by:
+1) Limiting the maximum number of used mailboxes to 8, 0...7 are used by the RX
+FIFO, 8 is used by TX.
+2) Marking the TX mailbox as EMPTY/INACTIVE, so that any pending TX of that
+mailbox is aborted.
+
+Cc: Lothar Waßmann <LW@KARO-electronics.de>
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/can/flexcan.c |   10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/can/flexcan.c
++++ b/drivers/net/can/flexcan.c
+@@ -63,7 +63,7 @@
+ #define FLEXCAN_MCR_BCC                       BIT(16)
+ #define FLEXCAN_MCR_LPRIO_EN          BIT(13)
+ #define FLEXCAN_MCR_AEN                       BIT(12)
+-#define FLEXCAN_MCR_MAXMB(x)          ((x) & 0xf)
++#define FLEXCAN_MCR_MAXMB(x)          ((x) & 0x1f)
+ #define FLEXCAN_MCR_IDAM_A            (0 << 8)
+ #define FLEXCAN_MCR_IDAM_B            (1 << 8)
+ #define FLEXCAN_MCR_IDAM_C            (2 << 8)
+@@ -745,9 +745,11 @@ static int flexcan_chip_start(struct net
+        *
+        */
+       reg_mcr = flexcan_read(&regs->mcr);
++      reg_mcr &= ~FLEXCAN_MCR_MAXMB(0xff);
+       reg_mcr |= FLEXCAN_MCR_FRZ | FLEXCAN_MCR_FEN | FLEXCAN_MCR_HALT |
+               FLEXCAN_MCR_SUPV | FLEXCAN_MCR_WRN_EN |
+-              FLEXCAN_MCR_IDAM_C | FLEXCAN_MCR_SRX_DIS;
++              FLEXCAN_MCR_IDAM_C | FLEXCAN_MCR_SRX_DIS |
++              FLEXCAN_MCR_MAXMB(FLEXCAN_TX_BUF_ID);
+       netdev_dbg(dev, "%s: writing mcr=0x%08x", __func__, reg_mcr);
+       flexcan_write(reg_mcr, &regs->mcr);
+@@ -792,6 +794,10 @@ static int flexcan_chip_start(struct net
+                       &regs->cantxfg[i].can_ctrl);
+       }
++      /* Abort any pending TX, mark Mailbox as INACTIVE */
++      flexcan_write(FLEXCAN_MB_CNT_CODE(0x4),
++                    &regs->cantxfg[FLEXCAN_TX_BUF_ID].can_ctrl);
++
+       /* acceptance mask/acceptance code (accept everything) */
+       flexcan_write(0x0, &regs->rxgmask);
+       flexcan_write(0x0, &regs->rx14mask);
diff --git a/queue-3.10/cfg80211-fix-warning-when-using-wext-for-ibss.patch b/queue-3.10/cfg80211-fix-warning-when-using-wext-for-ibss.patch
new file mode 100644 (file)
index 0000000..5bc48c4
--- /dev/null
@@ -0,0 +1,43 @@
+From f478f33a93f9353dcd1fe55445343d76b1c3f84a Mon Sep 17 00:00:00 2001
+From: Bruno Randolf <br1@einfach.org>
+Date: Thu, 26 Sep 2013 16:55:28 +0100
+Subject: cfg80211: fix warning when using WEXT for IBSS
+
+From: Bruno Randolf <br1@einfach.org>
+
+commit f478f33a93f9353dcd1fe55445343d76b1c3f84a upstream.
+
+Fix kernel warning when using WEXT for configuring ad-hoc mode,
+e.g.  "iwconfig wlan0 essid test channel 1"
+
+WARNING: at net/wireless/chan.c:373 cfg80211_chandef_usable+0x50/0x21c [cfg80211]()
+
+The warning is caused by an uninitialized variable center_freq1.
+
+Signed-off-by: Bruno Randolf <br1@einfach.org>
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/wireless/ibss.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/net/wireless/ibss.c
++++ b/net/wireless/ibss.c
+@@ -269,6 +269,8 @@ int cfg80211_ibss_wext_join(struct cfg80
+                               if (chan->flags & IEEE80211_CHAN_DISABLED)
+                                       continue;
+                               wdev->wext.ibss.chandef.chan = chan;
++                              wdev->wext.ibss.chandef.center_freq1 =
++                                      chan->center_freq;
+                               break;
+                       }
+@@ -353,6 +355,7 @@ int cfg80211_ibss_wext_siwfreq(struct ne
+       if (chan) {
+               wdev->wext.ibss.chandef.chan = chan;
+               wdev->wext.ibss.chandef.width = NL80211_CHAN_WIDTH_20_NOHT;
++              wdev->wext.ibss.chandef.center_freq1 = freq;
+               wdev->wext.ibss.channel_fixed = true;
+       } else {
+               /* cfg80211_ibss_wext_join will pick one if needed */
diff --git a/queue-3.10/iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch b/queue-3.10/iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch
new file mode 100644 (file)
index 0000000..560048f
--- /dev/null
@@ -0,0 +1,94 @@
+From 08a5dd3842f2ac61c6d69661d2d96022df8ae359 Mon Sep 17 00:00:00 2001
+From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
+Date: Tue, 24 Sep 2013 19:34:26 +0300
+Subject: iwlwifi: pcie: add SKUs for 6000, 6005 and 6235 series
+
+From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
+
+commit 08a5dd3842f2ac61c6d69661d2d96022df8ae359 upstream.
+
+Add some new PCI IDs to the table for 6000, 6005 and 6235 series.
+
+Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/iwlwifi/iwl-6000.c   |    6 ++++++
+ drivers/net/wireless/iwlwifi/iwl-config.h |    1 +
+ drivers/net/wireless/iwlwifi/pcie/drv.c   |   10 ++++++++++
+ 3 files changed, 17 insertions(+)
+
+--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
++++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
+@@ -268,6 +268,12 @@ const struct iwl_cfg iwl6035_2agn_cfg =
+       .ht_params = &iwl6000_ht_params,
+ };
++const struct iwl_cfg iwl6035_2agn_sff_cfg = {
++      .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
++      IWL_DEVICE_6035,
++      .ht_params = &iwl6000_ht_params,
++};
++
+ const struct iwl_cfg iwl1030_bgn_cfg = {
+       .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
+       IWL_DEVICE_6030,
+--- a/drivers/net/wireless/iwlwifi/iwl-config.h
++++ b/drivers/net/wireless/iwlwifi/iwl-config.h
+@@ -316,6 +316,7 @@ extern const struct iwl_cfg iwl2000_2bgn
+ extern const struct iwl_cfg iwl2000_2bgn_d_cfg;
+ extern const struct iwl_cfg iwl2030_2bgn_cfg;
+ extern const struct iwl_cfg iwl6035_2agn_cfg;
++extern const struct iwl_cfg iwl6035_2agn_sff_cfg;
+ extern const struct iwl_cfg iwl105_bgn_cfg;
+ extern const struct iwl_cfg iwl105_bgn_d_cfg;
+ extern const struct iwl_cfg iwl135_bgn_cfg;
+--- a/drivers/net/wireless/iwlwifi/pcie/drv.c
++++ b/drivers/net/wireless/iwlwifi/pcie/drv.c
+@@ -138,13 +138,16 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_ca
+ /* 6x00 Series */
+       {IWL_PCI_DEVICE(0x422B, 0x1101, iwl6000_3agn_cfg)},
++      {IWL_PCI_DEVICE(0x422B, 0x1108, iwl6000_3agn_cfg)},
+       {IWL_PCI_DEVICE(0x422B, 0x1121, iwl6000_3agn_cfg)},
++      {IWL_PCI_DEVICE(0x422B, 0x1128, iwl6000_3agn_cfg)},
+       {IWL_PCI_DEVICE(0x422C, 0x1301, iwl6000i_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x422C, 0x1306, iwl6000i_2abg_cfg)},
+       {IWL_PCI_DEVICE(0x422C, 0x1307, iwl6000i_2bg_cfg)},
+       {IWL_PCI_DEVICE(0x422C, 0x1321, iwl6000i_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x422C, 0x1326, iwl6000i_2abg_cfg)},
+       {IWL_PCI_DEVICE(0x4238, 0x1111, iwl6000_3agn_cfg)},
++      {IWL_PCI_DEVICE(0x4238, 0x1118, iwl6000_3agn_cfg)},
+       {IWL_PCI_DEVICE(0x4239, 0x1311, iwl6000i_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x4239, 0x1316, iwl6000i_2abg_cfg)},
+@@ -152,12 +155,16 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_ca
+       {IWL_PCI_DEVICE(0x0082, 0x1301, iwl6005_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x1306, iwl6005_2abg_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x1307, iwl6005_2bg_cfg)},
++      {IWL_PCI_DEVICE(0x0082, 0x1308, iwl6005_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x1321, iwl6005_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x1326, iwl6005_2abg_cfg)},
++      {IWL_PCI_DEVICE(0x0082, 0x1328, iwl6005_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x0085, 0x1311, iwl6005_2agn_cfg)},
++      {IWL_PCI_DEVICE(0x0085, 0x1318, iwl6005_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x0085, 0x1316, iwl6005_2abg_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0xC020, iwl6005_2agn_sff_cfg)},
+       {IWL_PCI_DEVICE(0x0085, 0xC220, iwl6005_2agn_sff_cfg)},
++      {IWL_PCI_DEVICE(0x0085, 0xC228, iwl6005_2agn_sff_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x4820, iwl6005_2agn_d_cfg)},
+       {IWL_PCI_DEVICE(0x0082, 0x1304, iwl6005_2agn_mow1_cfg)},/* low 5GHz active */
+       {IWL_PCI_DEVICE(0x0082, 0x1305, iwl6005_2agn_mow2_cfg)},/* high 5GHz active */
+@@ -239,8 +246,11 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_ca
+ /* 6x35 Series */
+       {IWL_PCI_DEVICE(0x088E, 0x4060, iwl6035_2agn_cfg)},
++      {IWL_PCI_DEVICE(0x088E, 0x406A, iwl6035_2agn_sff_cfg)},
+       {IWL_PCI_DEVICE(0x088F, 0x4260, iwl6035_2agn_cfg)},
++      {IWL_PCI_DEVICE(0x088F, 0x426A, iwl6035_2agn_sff_cfg)},
+       {IWL_PCI_DEVICE(0x088E, 0x4460, iwl6035_2agn_cfg)},
++      {IWL_PCI_DEVICE(0x088E, 0x446A, iwl6035_2agn_sff_cfg)},
+       {IWL_PCI_DEVICE(0x088E, 0x4860, iwl6035_2agn_cfg)},
+       {IWL_PCI_DEVICE(0x088F, 0x5260, iwl6035_2agn_cfg)},
diff --git a/queue-3.10/jfs-fix-error-path-in-ialloc.patch b/queue-3.10/jfs-fix-error-path-in-ialloc.patch
new file mode 100644 (file)
index 0000000..7a586b8
--- /dev/null
@@ -0,0 +1,39 @@
+From 8660998608cfa1077e560034db81885af8e1e885 Mon Sep 17 00:00:00 2001
+From: Dave Kleikamp <dave.kleikamp@oracle.com>
+Date: Fri, 6 Sep 2013 21:49:56 -0500
+Subject: jfs: fix error path in ialloc
+
+From: Dave Kleikamp <dave.kleikamp@oracle.com>
+
+commit 8660998608cfa1077e560034db81885af8e1e885 upstream.
+
+If insert_inode_locked() fails, we shouldn't be calling
+unlock_new_inode().
+
+Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
+Tested-by: Michael L. Semon <mlsemon35@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ fs/jfs/jfs_inode.c |    3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/fs/jfs/jfs_inode.c
++++ b/fs/jfs/jfs_inode.c
+@@ -95,7 +95,7 @@ struct inode *ialloc(struct inode *paren
+       if (insert_inode_locked(inode) < 0) {
+               rc = -EINVAL;
+-              goto fail_unlock;
++              goto fail_put;
+       }
+       inode_init_owner(inode, parent, mode);
+@@ -156,7 +156,6 @@ struct inode *ialloc(struct inode *paren
+ fail_drop:
+       dquot_drop(inode);
+       inode->i_flags |= S_NOQUOTA;
+-fail_unlock:
+       clear_nlink(inode);
+       unlock_new_inode(inode);
+ fail_put:
diff --git a/queue-3.10/mwifiex-fix-sdio-interrupt-lost-issue.patch b/queue-3.10/mwifiex-fix-sdio-interrupt-lost-issue.patch
new file mode 100644 (file)
index 0000000..4ce4ef4
--- /dev/null
@@ -0,0 +1,55 @@
+From 453b0c3f6910672f79da354077af728d92f95c5b Mon Sep 17 00:00:00 2001
+From: Amitkumar Karwar <akarwar@marvell.com>
+Date: Fri, 27 Sep 2013 10:55:38 -0700
+Subject: mwifiex: fix SDIO interrupt lost issue
+
+From: Amitkumar Karwar <akarwar@marvell.com>
+
+commit 453b0c3f6910672f79da354077af728d92f95c5b upstream.
+
+601216e "mwifiex: process RX packets in SDIO IRQ thread directly"
+introduced a command timeout issue which can be reproduced easily on
+an AM33xx platform using a test application written by Daniel Mack:
+
+https://gist.github.com/zonque/6579314
+
+mwifiex_main_process() is called from both the SDIO handler and
+the workqueue. In case an interrupt occurs right after the
+int_status check, but before updating the mwifiex_processing flag,
+this interrupt gets lost, resulting in a command timeout and
+consequently a card reset.
+
+Let main_proc_lock protect both int_status and mwifiex_processing
+flag. This fixes the interrupt lost issue.
+
+Reported-by: Sven Neumann <s.neumann@raumfeld.com>
+Reported-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
+Tested-by: Daniel Mack <zonque@gmail.com>
+Reviewed-by: Dylan Reid <dgreid@chromium.org>
+Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
+Signed-off-by: Bing Zhao <bzhao@marvell.com>
+Signed-off-by: Paul Stewart <pstew@chromium.org>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/mwifiex/main.c |    6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/wireless/mwifiex/main.c
++++ b/drivers/net/wireless/mwifiex/main.c
+@@ -270,10 +270,12 @@ process_start:
+               }
+       } while (true);
+-      if ((adapter->int_status) || IS_CARD_RX_RCVD(adapter))
++      spin_lock_irqsave(&adapter->main_proc_lock, flags);
++      if ((adapter->int_status) || IS_CARD_RX_RCVD(adapter)) {
++              spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
+               goto process_start;
++      }
+-      spin_lock_irqsave(&adapter->main_proc_lock, flags);
+       adapter->mwifiex_processing = false;
+       spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
diff --git a/queue-3.10/rtlwifi-rtl8192cu-fix-error-in-pointer-arithmetic.patch b/queue-3.10/rtlwifi-rtl8192cu-fix-error-in-pointer-arithmetic.patch
new file mode 100644 (file)
index 0000000..46a0b3e
--- /dev/null
@@ -0,0 +1,34 @@
+From 9473ca6e920a3b9ca902753ce52833657f9221cc Mon Sep 17 00:00:00 2001
+From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
+Date: Tue, 8 Oct 2013 10:18:20 -0500
+Subject: rtlwifi: rtl8192cu: Fix error in pointer arithmetic
+
+From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
+
+commit 9473ca6e920a3b9ca902753ce52833657f9221cc upstream.
+
+An error in calculating the offset in an skb causes the driver to read
+essential device info from the wrong locations. The main effect is that
+automatic gain calculations are nonsense.
+
+Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
+Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/rtlwifi/rtl8192cu/trx.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
++++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
+@@ -343,7 +343,8 @@ bool rtl92cu_rx_query_desc(struct ieee80
+                                       (bool)GET_RX_DESC_PAGGR(pdesc));
+       rx_status->mactime = GET_RX_DESC_TSFL(pdesc);
+       if (phystatus) {
+-              p_drvinfo = (struct rx_fwinfo_92c *)(pdesc + RTL_RX_DESC_SIZE);
++              p_drvinfo = (struct rx_fwinfo_92c *)(skb->data +
++                                                   stats->rx_bufshift);
+               rtl92c_translate_rx_signal_stuff(hw, skb, stats, pdesc,
+                                                p_drvinfo);
+       }
diff --git a/queue-3.10/scsi-sd-call-blk_pm_runtime_init-before-add_disk.patch b/queue-3.10/scsi-sd-call-blk_pm_runtime_init-before-add_disk.patch
new file mode 100644 (file)
index 0000000..bcdcb9f
--- /dev/null
@@ -0,0 +1,70 @@
+From 10c580e4239df5c3344ca00322eca86ab2de880b Mon Sep 17 00:00:00 2001
+From: Aaron Lu <aaron.lu@intel.com>
+Date: Thu, 10 Oct 2013 13:22:36 +0800
+Subject: SCSI: sd: call blk_pm_runtime_init before add_disk
+
+From: Aaron Lu <aaron.lu@intel.com>
+
+commit 10c580e4239df5c3344ca00322eca86ab2de880b upstream.
+
+Sujit has found a race condition that would make q->nr_pending
+unbalanced, it occurs as Sujit explained:
+
+"
+sd_probe_async() ->
+       add_disk() ->
+               disk_add_event() ->
+                       schedule(disk_events_workfn)
+       sd_revalidate_disk()
+       blk_pm_runtime_init()
+return;
+
+Let's say the disk_events_workfn() calls sd_check_events() which tries
+to send test_unit_ready() and because of sd_revalidate_disk() trying to
+send another commands the test_unit_ready() might be re-queued as the
+tagged command queuing is disabled.
+
+So the race condition is -
+
+Thread 1                         |             Thread 2
+sd_revalidate_disk()             |     sd_check_events()
+...nr_pending = 0 as q->dev = NULL|    scsi_queue_insert()
+blk_runtime_pm_init()            |     blk_pm_requeue_request() ->
+                                 |     nr_pending = -1 since
+                                 |     q->dev != NULL
+"
+
+The problem is, the test_unit_ready request doesn't get counted the
+first time it is queued, so the later decrement of q->nr_pending in
+blk_pm_requeue_request makes it unbalanced.
+
+Fix this by calling blk_pm_runtime_init before add_disk so that all
+requests initiated there will all be counted.
+
+Signed-off-by: Aaron Lu <aaron.lu@intel.com>
+Reported-and-tested-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
+Signed-off-by: James Bottomley <JBottomley@Parallels.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/scsi/sd.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/scsi/sd.c
++++ b/drivers/scsi/sd.c
+@@ -2843,6 +2843,7 @@ static void sd_probe_async(void *data, a
+               gd->events |= DISK_EVENT_MEDIA_CHANGE;
+       }
++      blk_pm_runtime_init(sdp->request_queue, dev);
+       add_disk(gd);
+       if (sdkp->capacity)
+               sd_dif_config_host(sdkp);
+@@ -2851,7 +2852,6 @@ static void sd_probe_async(void *data, a
+       sd_printk(KERN_NOTICE, sdkp, "Attached SCSI %sdisk\n",
+                 sdp->removable ? "removable " : "");
+-      blk_pm_runtime_init(sdp->request_queue, dev);
+       scsi_autopm_put_device(sdp);
+       put_device(&sdkp->dev);
+ }
index bbd2148235407803bf077dc95ee79a3502521510..d58393fbdbb449c67c106678196b940c18f0dfa6 100644 (file)
@@ -12,3 +12,13 @@ mac80211-drop-spoofed-packets-in-ad-hoc-mode.patch
 mac80211-use-sta_info_get_bss-for-nl80211-tx-and-client-probing.patch
 mac80211-update-sta-last_rx-on-acked-tx-frames.patch
 mac80211-fix-crash-if-bitrate-calculation-goes-wrong.patch
+ath9k-fix-tx-queue-scheduling-after-channel-changes.patch
+cfg80211-fix-warning-when-using-wext-for-ibss.patch
+mwifiex-fix-sdio-interrupt-lost-issue.patch
+rtlwifi-rtl8192cu-fix-error-in-pointer-arithmetic.patch
+iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch
+jfs-fix-error-path-in-ialloc.patch
+can-at91-can-fix-device-to-driver-data-mapping-for-platform-devices.patch
+can-flexcan-fix-mx28-detection-by-rearanging-of-match-table.patch
+can-flexcan-flexcan_chip_start-fix-regression-mark-one-mb-for-tx-and-abort-pending-tx.patch
+scsi-sd-call-blk_pm_runtime_init-before-add_disk.patch