aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore/wusbhc.h
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-06-18 14:31:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-24 19:19:02 -0400
commitf265d4d3c2c36e4a35a604593dc8f2905581008f (patch)
tree410fa5a93a4a0bba8a239c2a37843049779fb4d9 /drivers/usb/wusbcore/wusbhc.h
parent8bf1d0712d54bcb7c55b3f03b2c1a2f6fdfa6536 (diff)
wusbcore: add sysfs attribute for retry count
This patch adds a sysfs attribute for the wireless host controller transaction retry count. It also changes the default value from 15 retries to infinite retries because the driver currently does not handle retry errors gracefully. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/wusbcore/wusbhc.h')
-rw-r--r--drivers/usb/wusbcore/wusbhc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/wusbcore/wusbhc.h b/drivers/usb/wusbcore/wusbhc.h
index a7069f49c05a..711b1952b114 100644
--- a/drivers/usb/wusbcore/wusbhc.h
+++ b/drivers/usb/wusbcore/wusbhc.h
@@ -69,6 +69,8 @@
69 * zone 0. 69 * zone 0.
70 */ 70 */
71#define WUSB_CHANNEL_STOP_DELAY_MS 8 71#define WUSB_CHANNEL_STOP_DELAY_MS 8
72#define WUSB_RETRY_COUNT_MAX 15
73#define WUSB_RETRY_COUNT_INFINITE 0
72 74
73/** 75/**
74 * Wireless USB device 76 * Wireless USB device
@@ -254,6 +256,7 @@ struct wusbhc {
254 uint8_t phy_rate; 256 uint8_t phy_rate;
255 uint8_t dnts_num_slots; 257 uint8_t dnts_num_slots;
256 uint8_t dnts_interval; 258 uint8_t dnts_interval;
259 uint8_t retry_count;
257 struct wuie_host_info *wuie_host_info; 260 struct wuie_host_info *wuie_host_info;
258 261
259 struct mutex mutex; /* locks everything else */ 262 struct mutex mutex; /* locks everything else */