940-mwl8k_init_devices_synchronously.patch 509 B

1234567891011121314151617181920
  1. --- a/drivers/net/wireless/marvell/mwl8k.c
  2. +++ b/drivers/net/wireless/marvell/mwl8k.c
  3. @@ -6264,6 +6264,8 @@ static int mwl8k_probe(struct pci_dev *p
  4. priv->running_bsses = 0;
  5. + wait_for_completion(&priv->firmware_loading_complete);
  6. +
  7. return rc;
  8. err_stop_firmware:
  9. @@ -6297,8 +6299,6 @@ static void mwl8k_remove(struct pci_dev
  10. return;
  11. priv = hw->priv;
  12. - wait_for_completion(&priv->firmware_loading_complete);
  13. -
  14. if (priv->fw_state == FW_STATE_ERROR) {
  15. mwl8k_hw_reset(priv);
  16. goto unmap;