wimax/i2400m: Allow bus-specific driver to specify retry count
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Wed, 3 Jun 2009 08:13:14 +0000 (16:13 +0800)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 11 Jun 2009 10:30:23 +0000 (03:30 -0700)
commitecddfd5ed73c070413f07a5251c16c10e69f35a2
tree4caaeedf3b8a49441d3656ffdd2ac8e8479991a2
parentb4013f91cdda10f3f15530914f3c7f39738b0b50
wimax/i2400m: Allow bus-specific driver to specify retry count

The code that sets up the i2400m (firmware load and general driver
setup after it) includes a couple of retry loops.

The SDIO device sometimes can get in more complicated corners than the
USB one (due to its interaction with other SDIO functions), that
require trying a few more times.

To solve that, without having a failing USB device taking longer to be
considered dead, allow the retry counts to be specified by the
bus-specific driver, which the general driver takes as a parameter.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/driver.c
drivers/net/wimax/i2400m/fw.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/sdio.c
drivers/net/wimax/i2400m/usb.c