Commit 8b5b30ee authored by Cindy H Kao's avatar Cindy H Kao Committed by Inaky Perez-Gonzalez

wimax/i2400m: when bootstrap fails, reinitialize the bootrom

When a device reset happens during firmware load [in
i2400m_dev_bootstrap()], __i2400m_dev_start() will retry a number of
times. However, for those retries to be able to accomplish anything,
the device's bootrom has to be reinitialized.

Thus, on the retry path, pass the I2400M_MAC_REINIT to the firmware
load code.
Signed-off-by: default avatarCindy H Kao <cindy.h.kao@intel.com>
parent 16820c16
...@@ -454,7 +454,7 @@ error_rx_setup: ...@@ -454,7 +454,7 @@ error_rx_setup:
error_tx_setup: error_tx_setup:
error_bootstrap: error_bootstrap:
if (result == -ERESTARTSYS && times-- > 0) { if (result == -ERESTARTSYS && times-- > 0) {
flags = I2400M_BRI_SOFT; flags = I2400M_BRI_SOFT|I2400M_BRI_MAC_REINIT;
goto retry; goto retry;
} }
d_fnend(3, dev, "(net_dev %p [i2400m %p]) = %d\n", d_fnend(3, dev, "(net_dev %p [i2400m %p]) = %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment