]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mwifiex: pcie: use posted write to wake up firmware
authorBrian Norris <briannorris@chromium.org>
Fri, 13 Jan 2017 23:35:36 +0000 (15:35 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Jan 2017 09:46:31 +0000 (11:46 +0200)
commit062e008a6e83e7c4da7df0a9c6aefdbc849e2bb3
treeb37b6044c727267396153b828e773b38c8d1fc00
parentdab38e7d251d26917935352bee605974cc46eaec
mwifiex: pcie: use posted write to wake up firmware

Depending on system factors (e.g., the PCIe link PM state), the first
read to wake up the Wifi firmware can take a long time. There is no
reason to use a (blocking, non-posted) read at this point, so let's just
use a write instead. Write vs. read doesn't matter functionality-wise --
it's just a dummy operation. But let's make sure to re-write with the
correct "ready" signature, since we check for that in other parts of the
driver.

This has been shown to decrease the time spent blocking in this function
on RK3399.

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