]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: 8852c: correct logic and restore PCI PHY EQ after device resume
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 21 May 2024 04:01:39 +0000 (12:01 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 27 May 2024 08:45:44 +0000 (16:45 +0800)
commit9e305a6f01ad539dc134b8017521495378d8e00e
tree2ed71ca0c54d1c00d72ca489da260cdb282d81a4
parentd5b96a4a31593a609acd564cfa54f269461a33f0
wifi: rtw89: 8852c: correct logic and restore PCI PHY EQ after device resume

PCI PHY EQ value is missing after card off/on, so update the value after
device resume. The original commit only updates once at probe stage, which
could lead problem after suspend/resume.

The logic should be read a value from one register and write to another
register with a mask to avoid affecting unrelated bits.

Fixes: a78d33a1286c ("wifi: rtw89: 8852c: disable PCI PHY EQ to improve compatibility")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240521040139.20311-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c