]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: uninit wakeup info when removing device
authorBrian Norris <briannorris@chromium.org>
Sat, 11 Mar 2017 01:39:23 +0000 (17:39 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Mar 2017 08:14:13 +0000 (10:14 +0200)
commit0013e6f1211fbf59e36c52a203d46794c680ff1f
tree10f6288109ae34932b02229df571a0cf66e729af
parent65fd963e4695b4814f73833a5cca728024c46caa
mwifiex: uninit wakeup info when removing device

We manually init wakeup info, but we don't detach it on device removal.
This means that if we (for example) rmmod + modprobe the driver, the
device framework might return -EEXIST the second time, and we'll
complain in the logs:

[  839.311881] mwifiex_pcie 0000:01:00.0: fail to init wakeup for mwifiex

AFAICT, there's no other negative effect.

But we can fix this by disabling wakeup on remove, similar to what a few
other drivers do (e.g., the power supply framework).

This code (and bug) has existed on SDIO for a while, but it got moved
around and enabled for PCIe with commit 128277f31a16 ("mwifiex: Enable
WoWLAN for both sdio and pcie").

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c