diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2013-06-18 18:31:26 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 23:19:02 (GMT) |
commit | f265d4d3c2c36e4a35a604593dc8f2905581008f (patch) | |
tree | 410fa5a93a4a0bba8a239c2a37843049779fb4d9 /drivers/usb/wusbcore/wusbhc.h | |
parent | 8bf1d0712d54bcb7c55b3f03b2c1a2f6fdfa6536 (diff) | |
download | linux-f265d4d3c2c36e4a35a604593dc8f2905581008f.tar.xz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/wusbcore/wusbhc.h b/drivers/usb/wusbcore/wusbhc.h index a7069f4..711b195 100644 --- a/drivers/usb/wusbcore/wusbhc.h +++ b/drivers/usb/wusbcore/wusbhc.h @@ -69,6 +69,8 @@ * zone 0. */ #define WUSB_CHANNEL_STOP_DELAY_MS 8 +#define WUSB_RETRY_COUNT_MAX 15 +#define WUSB_RETRY_COUNT_INFINITE 0 /** * Wireless USB device @@ -254,6 +256,7 @@ struct wusbhc { uint8_t phy_rate; uint8_t dnts_num_slots; uint8_t dnts_interval; + uint8_t retry_count; struct wuie_host_info *wuie_host_info; struct mutex mutex; /* locks everything else */ |