]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg: fix debug monitor stop and restart delays
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Thu, 16 May 2019 07:31:17 +0000 (10:31 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:09:41 +0000 (10:09 +0300)
commitc63bdd5fa7feb76c79e6ef3a035bd982ff1a00a1
tree564679754385a1d875efa7bc621412b31b3776ec
parent76360dd6052c21bc6e4e7a571de5e1a6b93b254d
iwlwifi: dbg: fix debug monitor stop and restart delays

The driver should delay only in recording stop flow between writing to
DBGC_IN_SAMPLE register and DBGC_OUT_CTRL register. Any other delay is
not needed.

Change the following:
1. Remove any unnecessary delays in the flow
2. Increase the delay in the stop recording flow since 100 micro is
   not enough
3. Use usleep_range instead of delay since the driver is allowed to
   sleep in this flow.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: b2c8aad0e17b ("iwlwifi: fw: stop and start debugging using host command")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/fw/dbg.h