From: Christian Lamparter Date: Sat, 4 Dec 2010 21:39:39 +0000 (+0100) Subject: carl9170 firmware: cleanup dma memory before reset X-Git-Tag: 1.9.2~13 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7ead3acecfdbd6f92bfd5b88909c9aa7edf03c47;p=carl9170fw.git carl9170 firmware: cleanup dma memory before reset While the documentation does not mention anything in this regard. There's clearly some bootloader action in the DMA memory region. Signed-off-by: Christian Lamparter --- diff --git a/carlfw/usb/main.c b/carlfw/usb/main.c index fac3780..6545ec0 100644 --- a/carlfw/usb/main.c +++ b/carlfw/usb/main.c @@ -284,6 +284,9 @@ void __noreturn reboot(void) /* Turn off power */ turn_power_off(); + /* clean bootloader workspace */ + memset(&dma_mem, 0, sizeof(dma_mem)); + /* add by ygwei for work around USB PHY chirp sequence problem */ set(0x10f100, 0x12345678);