Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-08-31 17:43:44 +0200
committerJiri Slaby <jslaby@suse.cz>2017-09-07 13:19:07 +0200
commit8116757e42d582c68cf3e6d41c26f4ec456b2851 (patch)
treef3af02c98c90c671ad7eacf82cf1e32ccbf67ff5
parentdd00417366f0e79f084ed248f267199a57cbcfc9 (diff)
rt2800: fix TX_PIN_CFG setting for non MT7620 chips
(bsc#1055826).
-rw-r--r--patches.drivers/rt2800-fix-TX_PIN_CFG-setting-for-non-MT7620-chips40
-rw-r--r--series.conf1
2 files changed, 41 insertions, 0 deletions
diff --git a/patches.drivers/rt2800-fix-TX_PIN_CFG-setting-for-non-MT7620-chips b/patches.drivers/rt2800-fix-TX_PIN_CFG-setting-for-non-MT7620-chips
new file mode 100644
index 0000000000..9dabedab4e
--- /dev/null
+++ b/patches.drivers/rt2800-fix-TX_PIN_CFG-setting-for-non-MT7620-chips
@@ -0,0 +1,40 @@
+From: Stanislaw Gruszka <sgruszka@redhat.com>
+Date: Fri, 25 Aug 2017 17:04:15 +0200
+Subject: [PATCH] rt2800: fix TX_PIN_CFG setting for non MT7620 chips
+Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git
+Patch-mainline: Queued in subsystem maintainer repository
+Git-commit: 83ec489193894e52bd395eec470f4f7c4286d4a5
+References: bsc#1055826
+
+Since commit 41977e86c984 ("rt2x00: add support for MT7620") we do not
+initialize TX_PIN_CFG setting. This cause breakage at least on some
+RT3573 devices. To fix the problem patch restores previous behaviour
+for non MT7620 chips.
+
+Fixes: 41977e86c984 ("rt2x00: add support for MT7620")
+Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1480829
+Reported-and-tested-by: Jussi Eloranta <jussi.eloranta@csun.edu>
+Cc: Daniel Golle <daniel@makrotopia.org>
+Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
+Acked-by: Daniel Golle <daniel@makrotopia.org>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
++++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+@@ -3702,7 +3702,10 @@ static void rt2800_config_channel(struct
+ if (rt2x00_rt(rt2x00dev, RT3572))
+ rt2800_rfcsr_write(rt2x00dev, 8, 0);
+
+- tx_pin = rt2800_register_read(rt2x00dev, TX_PIN_CFG);
++ if (rt2x00_rt(rt2x00dev, RT6352))
++ tx_pin = rt2800_register_read(rt2x00dev, TX_PIN_CFG);
++ else
++ tx_pin = 0;
+
+ switch (rt2x00dev->default_ant.tx_chain_num) {
+ case 3:
diff --git a/series.conf b/series.conf
index be8b33bf51..a69cfca270 100644
--- a/series.conf
+++ b/series.conf
@@ -325,6 +325,7 @@
########################################################
# Wireless Networking
########################################################
+ patches.drivers/rt2800-fix-TX_PIN_CFG-setting-for-non-MT7620-chips
patches.suse/b43-missing-firmware-info.patch
patches.suse/iwlwifi-expose-default-fallback-ucode-api