openwrt/package/kernel
Daniel Golle 43ae50978a mac80211: rt2x00: remove errornous duplicate condition
https://patchwork.kernel.org/patch/11224189/
--
On 2019-10-28 06:07, wbob wrote:
> Hello Roman,
>
> while reading around drivers/net/wireless/ralink/rt2x00/rt2800lib.c
> I stumbled on what I think is an edit of yours made in error in march
> 2017:
>
> https://github.com/torvalds/linux/commit/41977e86#diff-dae5dc10da180f3b055809a48118e18aR5281
>
> RT6352 in line 5281 should not have been introduced as the "else if"
> below line 5291 can then not take effect for a RT6352 device. Another
> possibility is for line 5291 to be not for RT6352, but this seems
> very unlikely. Are you able to clarify still after this substantial time?
>
> 5277: static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
> ...
> 5279:  } else if (rt2x00_rt(rt2x00dev, RT5390) ||
> 5280:         rt2x00_rt(rt2x00dev, RT5392) ||
> 5281:         rt2x00_rt(rt2x00dev, RT6352)) {
> ...
> 5291:  } else if (rt2x00_rt(rt2x00dev, RT6352)) {
> ...

Hence remove errornous line 5281 to make the driver actually
execute the correct initialization routine for MT7620 chips.

As it was requested by Stanislaw Gruszka remove setting values of
MIMO_PS_CFG and TX_PIN_CFG. MIMO_PS_CFG is responsible for MIMO
power-safe mode (which is disabled), hence we can drop setting it.
TX_PIN_CFG is set correctly in other functions, and as setting this
value breaks some devices, rather don't set it here during init, but
only modify it later on.

Fixes: 41977e86c984 ("rt2x00: add support for MT7620")
Reported-by: wbob <wbob@jify.de>
Reported-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
--

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-11-03 18:31:02 +01:00
..
acx-mac80211 adm5120: Remove unmaintained target 2019-05-03 21:27:12 +02:00
ar7-atm
ath10k-ct mac80211: Update to version 5.4-rc2 2019-10-19 12:35:55 +02:00
avila-wdt
brcm2708-gpu-fw brcm2708-gpu-fw: update to latest firmware 2019-09-19 17:37:43 +02:00
broadcom-wl treewide: fix syntax errors exposed after kconfig update 2019-06-20 14:16:08 +02:00
button-hotplug button-hotplug: add KEY_POWER2 handling 2019-05-30 11:55:50 +02:00
cryptodev-linux
dtc/patches
gpio-button-hotplug gpio-button-hotplug: add volume button handling 2019-08-08 21:00:59 +08:00
gpio-nct5104d
hwmon-gsc
i2c-gpio-custom
kmod-sched-cake Revert "kmod-sched-cake: drop out of tree package, use kernel version" 2019-07-29 16:12:42 +01:00
lantiq lantiq: Allow PKG_ASLR_PIE for DSL and voice drivers 2019-11-01 21:19:40 +01:00
leds-apu2
linux kernel: mark kmod-usb-serial-wwan as hidden 2019-10-30 12:43:17 +00:00
mac80211 mac80211: rt2x00: remove errornous duplicate condition 2019-11-03 18:31:02 +01:00
mt76 mt76: update to the latest version 2019-10-10 23:10:01 +02:00
mwlwifi mwlwifi: Fix loading with backports v5.3 2019-08-18 14:06:14 +02:00
nat46
om-watchdog kernel/om-watchdog: Apply device renames from ramips 2019-07-10 17:36:29 +02:00
rtc-rv5c386a
rtl8812au-ct rtl8812au-ct: Add vendor command policy 2019-08-18 14:06:24 +02:00
spi-gpio-custom
trelay trelay: log "started" and "stopped" 2019-10-12 23:51:29 +02:00
w1-gpio-custom