From 2b9e46cd7e992a89f5e0b3baeb35c26835641eeb Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Wed, 3 Jul 2013 20:45:50 +0200 Subject: [PATCH] k2_fw_usb_api: add delay after mac reset 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 --- target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c b/target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c index 47aa380..f8d2bfe 100755 --- a/target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c +++ b/target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c @@ -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)); -- 2.25.1