]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: rtw88: Drop rf_lock
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 2 Dec 2022 08:12:16 +0000 (09:12 +0100)
committerKalle Valo <kvalo@kernel.org>
Thu, 8 Dec 2022 14:48:40 +0000 (16:48 +0200)
commitd57ca103e54e2b3eea7e2603548c58bcc4155541
treeb1e8be496515e563f1cc89338d8918722a8a2d92
parent69020957bcb783184af1a86c8483139557cec751
wifi: rtw88: Drop rf_lock

The rtwdev->rf_lock spinlock protects the rf register accesses in
rtw_read_rf() and rtw_write_rf(). Most callers of these functions hold
rtwdev->mutex already with the exception of the callsites in the debugfs
code. The debugfs code doesn't justify an extra lock, so acquire the mutex
there as well before calling rf register accessors and drop the now
unnecessary spinlock.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221202081224.2779981-4-s.hauer@pengutronix.de
drivers/net/wireless/realtek/rtw88/debug.c
drivers/net/wireless/realtek/rtw88/hci.h
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h