This is a note to let you know that I've just added the patch titled
rtlwifi: rtl8192c: Add routines to save/restore power index registers
to the 3.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
rtlwifi-rtl8192c-add-routines-to-save-restore-power-index-registers.patch
and it can be found in the queue-3.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 97204e93f01868eeba6ae5c4f3270f32905bb418 Mon Sep 17 00:00:00 2001
From: Larry Finger <[email protected]>
Date: Mon, 18 Nov 2013 11:11:32 -0600
Subject: rtlwifi: rtl8192c: Add routines to save/restore power index registers
From: Larry Finger <[email protected]>
commit 97204e93f01868eeba6ae5c4f3270f32905bb418 upstream.
Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
--- a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
@@ -158,6 +158,42 @@ static const u8 cckswing_table_ch14[CCK_
{0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00}
};
+static u32 power_index_reg[6] = {0xc90, 0xc91, 0xc92, 0xc98, 0xc99, 0xc9a};
+
+void dm_restorepowerindex(struct ieee80211_hw *hw)
+{
+ struct rtl_priv *rtlpriv = rtl_priv(hw);
+ u8 index;
+
+ for (index = 0; index < 6; index++)
+ rtl_write_byte(rtlpriv, power_index_reg[index],
+ rtlpriv->dm.powerindex_backup[index]);
+}
+EXPORT_SYMBOL_GPL(dm_restorepowerindex);
+
+void dm_writepowerindex(struct ieee80211_hw *hw, u8 value)
+{
+ struct rtl_priv *rtlpriv = rtl_priv(hw);
+ u8 index;
+
+ for (index = 0; index < 6; index++)
+ rtl_write_byte(rtlpriv, power_index_reg[index], value);
+}
+EXPORT_SYMBOL_GPL(dm_writepowerindex);
+
+void dm_savepowerindex(struct ieee80211_hw *hw)
+{
+ struct rtl_priv *rtlpriv = rtl_priv(hw);
+ u8 index;
+ u8 tmp;
+
+ for (index = 0; index < 6; index++) {
+ tmp = rtl_read_byte(rtlpriv, power_index_reg[index]);
+ rtlpriv->dm.powerindex_backup[index] = tmp;
+ }
+}
+EXPORT_SYMBOL_GPL(dm_savepowerindex);
+
static void rtl92c_dm_diginit(struct ieee80211_hw *hw)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
Patches currently in stable-queue which might be from [email protected]
are
queue-3.12/b43-fix-lockdep-splat.patch
queue-3.12/staging-r8712u-set-device-type-to-wlan.patch
queue-3.12/rtlwifi-redo-register-save-locations.patch
queue-3.12/rtlwifi-rtl8192cu-add-new-device-id.patch
queue-3.12/rtlwifi-rtl8192c-add-new-definitions-in-the-dm_common-header.patch
queue-3.12/b43-fix-the-wrong-assignment-of-status.freq-in-b43_rx.patch
queue-3.12/b43-fix-unload-oops-if-firmware-is-not-available.patch
queue-3.12/rtlwifi-rtl8192cu-add-new-firmware.patch
queue-3.12/b43legacy-fix-unload-oops-if-firmware-is-not-available.patch
queue-3.12/rtlwifi-rtl8192cu-fix-some-code-in-rf-handling.patch
queue-3.12/rtlwifi-set-the-link-state.patch
queue-3.12/rtlwifi-increase-the-rx-queue-length-for-usb-drivers.patch
queue-3.12/rtlwifi-rtl8192c-add-routines-to-save-restore-power-index-registers.patch
queue-3.12/rtlwifi-rtl8192c-prevent-reconnect-attempts-if-not-connected.patch
queue-3.12/rtlwifi-rtl8188ee-fix-typo-in-code.patch
queue-3.12/rtlwifi-rtl8192cu-update-the-power-index-registers.patch
queue-3.12/rtlwifi-add-missing-code-to-pwdb-statics-routine.patch
queue-3.12/rtlwifi-update-beacon-statistics-for-usb-driver.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html