k2_fw_usb_api: add delay after mac reset
authorOleksij Rempel <linux@rempel-privat.de>
Wed, 3 Jul 2013 18:45:50 +0000 (20:45 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sun, 7 Jul 2013 13:48:27 +0000 (15:48 +0200)
We need some time between MAC reset and next operation. This will
avoid some freezes on module and firmware reload.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c

index 47aa3804c87df0c5134f96f3cadabe2e5c41cd7e..f8d2bfe6df2402d2a8105e0e2bb57976c26b10a7 100755 (executable)
@@ -197,6 +197,7 @@ void _fw_usb_suspend_reboot()
         HAL_WORD_REG_WRITE( MAGPIE_REG_RST_PWDN_CTRL_ADDR, (BIT1) );
         HAL_WORD_REG_WRITE( MAGPIE_REG_RST_PWDN_CTRL_ADDR, (HAL_WORD_REG_READ(MAGPIE_REG_RST_PWDN_CTRL_ADDR)|BIT0));
         HAL_WORD_REG_WRITE( MAGPIE_REG_RST_PWDN_CTRL_ADDR, 0x0 );
+       A_DELAY_USECS(1000);
     }
 
     //A_PRINTF("reg(0x10020)=(%x)\n", HAL_WORD_REG_READ(0x10020));