linux_dsm_epyc7002/drivers/net/wireless/realtek
Ping-Ke Shih a3fa3669d1 rtlwifi: Use mutex to replace spin_lock to protect IPS and LPS
Enter/leavel IPS and LPS are large critical section, and they can't use
sleep function because running in atomic-context, which own a spin_lock.
In commit ba9f93f82a ("rtlwifi: Fix enter/exit power_save"), it moves
LPS functions to thread-context, so this commit can simply change LPS's
spin lock to mutex.
Considering IPS functions, rtl_ips_nic_on() may be called by TX tasklet
(softirq-context) that check whether packet is auth frame. Fortunately,
current mac80211 will ask driver to leave IPS using op_config with
changed flag IEEE80211_CONF_CHANGE_IDLE, before issuing auth frame, so
IPS functions can run in thread-context and use mutex to protect critical
section, too.
Also, this commit removes some useless spin locks.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-01-17 17:09:10 +02:00
..
rtl8xxxu rtl8xxxu: Don't printk raw binary if serial number is not burned in. 2017-09-25 11:24:05 +03:00
rtl818x rtlwifi: rtl818x: remove redundant check for cck_power > 15 2017-12-07 15:16:07 +02:00
rtlwifi rtlwifi: Use mutex to replace spin_lock to protect IPS and LPS 2018-01-17 17:09:10 +02:00
Kconfig realtek: create separate Kconfig file 2015-11-18 14:28:31 +02:00
Makefile