Skip to contentSkip to conversation

Patch "rt2800: fix TX_PIN_CFG setting for non MT7620 chips" has been added to the 4.12-stable tree

PATCH [email protected] 1 participant 1 message Sep 12, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

rt2800: fix TX_PIN_CFG setting for non MT7620 chips

to the 4.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:

     rt2800-fix-tx_pin_cfg-setting-for-non-mt7620-chips.patch

and it can be found in the queue-4.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 83ec489193894e52bd395eec470f4f7c4286d4a5 Mon Sep 17 00:00:00 2001

From: Stanislaw Gruszka <[email protected]>
Date: Fri, 25 Aug 2017 17:04:15 +0200
Subject: rt2800: fix TX_PIN_CFG setting for non MT7620 chips

From: Stanislaw Gruszka <[email protected]>

commit 83ec489193894e52bd395eec470f4f7c4286d4a5 upstream.

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

---
 drivers/net/wireless/ralink/rt2x00/rt2800lib.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/wireless/ralink/rt2x00/rt2800lib.c +4 -1
@@ -3699,7 +3699,10 @@ static void rt2800_config_channel(struct
 	if (rt2x00_rt(rt2x00dev, RT3572))
 		rt2800_rfcsr_write(rt2x00dev, 8, 0);
 
-	rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin);
+	if (rt2x00_rt(rt2x00dev, RT6352))
+		rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin);
+	else
+		tx_pin = 0;
 
 	switch (rt2x00dev->default_ant.tx_chain_num) {
 	case 3:

Patches currently in stable-queue which might be from [email protected] are

queue-4.12/rt2800-fix-tx_pin_cfg-setting-for-non-mt7620-chips.patch