ath9k_htc: don't use HZ for usb msg timeouts
authorAnthony Romano <anthony.romano@coreos.com>
Mon, 28 Nov 2016 04:27:57 +0000 (20:27 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Dec 2016 11:18:33 +0000 (13:18 +0200)
commit982a6151f6f1296725de241a17932a3ecdd359d2
treea908fa1f18bd61ca8688a7fc5c8bb86640c64e43
parent8ca5a6078d6d09ac50d9c39c214df3284f0d2efb
ath9k_htc: don't use HZ for usb msg timeouts

The usb_*_msg() functions expect a timeout in msecs but are given HZ,
which is ticks per second. If HZ=100, firmware download often times out
when there is modest USB utilization and the device fails to initialize.

Replaces HZ in usb_*_msg timeouts with 1000 msec since HZ is one second
for timeouts in jiffies.

Signed-off-by: Anthony Romano <anthony.romano@coreos.com>
Acked-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/hif_usb.h