sunxi: improve A20 Lime2 upload speed
[openwrt/staging/lynxis.git] / package / kernel / mac80211 / patches / 327-ath10k-increase-BMI-timeout.patch
1 From: Ben Greear <greearb@candelatech.com>
2 Date: Wed, 31 May 2017 14:21:19 +0300
3 Subject: [PATCH] ath10k: increase BMI timeout
4
5 When testing a 9888 chipset NIC, I notice it often takes
6 almost 2 seconds, and then many times OTP fails, probably due
7 to the two-second timeout.
8
9 [ 2269.841842] ath10k_pci 0000:05:00.0: bmi cmd took: 1984 jiffies (HZ: 1000), rv: 0
10 [ 2273.608185] ath10k_pci 0000:05:00.0: bmi cmd took: 1986 jiffies (HZ: 1000), rv: 0
11 [ 2277.294732] ath10k_pci 0000:05:00.0: bmi cmd took: 1989 jiffies (HZ: 1000), rv: 0
12
13 So, increase the BMI timeout to 3 seconds.
14
15 Signed-off-by: Ben Greear <greearb@candelatech.com>
16 Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
17 ---
18
19 --- a/drivers/net/wireless/ath/ath10k/bmi.h
20 +++ b/drivers/net/wireless/ath/ath10k/bmi.h
21 @@ -187,8 +187,8 @@ struct bmi_target_info {
22 u32 type;
23 };
24
25 -/* in msec */
26 -#define BMI_COMMUNICATION_TIMEOUT_HZ (2 * HZ)
27 +/* in jiffies */
28 +#define BMI_COMMUNICATION_TIMEOUT_HZ (3 * HZ)
29
30 #define BMI_CE_NUM_TO_TARG 0
31 #define BMI_CE_NUM_TO_HOST 1