From: Oleksij Rempel Date: Wed, 3 Jul 2013 18:45:50 +0000 (+0200) Subject: k2_fw_usb_api: add delay after mac reset X-Git-Tag: 1.4.0~11^2~12 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2b9e46cd7e992a89f5e0b3baeb35c26835641eeb;p=open-ath9k-htc-firmware.git 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 --- 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));