mirror_ubuntu-kernels/drivers/net/wireless/intersil
Sebastian Andrzej Siewior 75fd296398 net: hostap: Remove in_interrupt() usage
in_interrupt() is ill defined and does not provide what the name
suggests. The usage especially in driver code is deprecated and a tree wide
effort to clean up and consolidate the (ab)usage of in_interrupt() and
related checks is happening.

hfa384x_cmd() and prism2_hw_reset() check in_interrupt() at function entry
and if true emit a printk at debug loglevel and return. This is clearly debug
code.

Both functions invoke functions which can sleep. These functions already
have appropriate debug checks which cover all invalid contexts, while
in_interrupt() fails to detect context which just has preemption or
interrupts disabled.

Remove both checks as they are incomplete, debug only and already covered
by the subsequently invoked functions properly. If called from invalid
context the resulting back trace is definitely more helpful to analyze the
problem than a printk at debug loglevel.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-29 14:02:55 -07:00
..
hostap net: hostap: Remove in_interrupt() usage 2020-09-29 14:02:55 -07:00
orinoco orinoco_usb: Downgrade non-conforming kernel-doc headers 2020-09-01 16:05:05 +03:00
p54 p54: avoid accessing the data mapped to streaming DMA 2020-09-01 12:33:48 +03:00
prism54 prism54: isl_ioctl: Remove unused variable 'j' 2020-09-01 16:14:51 +03:00
Kconfig intersil: fix wiki website url 2020-08-02 18:23:21 +03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00