summaryrefslogtreecommitdiff
path: root/drivers/net/wimax/i2400m/i2400m-usb.h
diff options
context:
space:
mode:
authorDirk Brandewie <dirk.j.brandewie@intel.com>2009-08-13 13:48:29 -0700
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-10-19 15:55:40 +0900
commitc30836580b35ae5cab3de97a3df16878fe097868 (patch)
treef88a13e7b9455b9f92260d95f9d9d3854911deaa /drivers/net/wimax/i2400m/i2400m-usb.h
parenta134fd6b103b78378e3beb6af94d8d8c2abdd19d (diff)
downloadlwn-c30836580b35ae5cab3de97a3df16878fe097868.tar.gz
lwn-c30836580b35ae5cab3de97a3df16878fe097868.zip
wimax/i2400m: Make boot retries a BUS-specific parameter
In i2400m-based devices, the driver's bootloader will retry to load the firmware when things go wrong. The driver currently has a constant (I2400M_BOOT_RETRIES) which governs the max number of tries. However, different SKUs of the same hardware may admit or require different numbers of retries due to it's particulars, so it is made a BUS specific parameter and different values are assigned for 5x50 devices versus the 3200 ones. Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com> Signed-off-by: Cindy H Kao <cindy.h.kao@intel.com> Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'drivers/net/wimax/i2400m/i2400m-usb.h')
-rw-r--r--drivers/net/wimax/i2400m/i2400m-usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m-usb.h b/drivers/net/wimax/i2400m/i2400m-usb.h
index 6f76558b170f..79c37534c200 100644
--- a/drivers/net/wimax/i2400m/i2400m-usb.h
+++ b/drivers/net/wimax/i2400m/i2400m-usb.h
@@ -137,6 +137,7 @@ static inline int edc_inc(struct edc *edc, u16 max_err, u16 timeframe)
/* Host-Device interface for USB */
enum {
+ I2400M_USB_BOOT_RETRIES = 3,
I2400MU_MAX_NOTIFICATION_LEN = 256,
I2400MU_BLK_SIZE = 16,
I2400MU_PL_SIZE_MAX = 0x3EFF,