From 7ead3acecfdbd6f92bfd5b88909c9aa7edf03c47 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sat, 4 Dec 2010 22:39:39 +0100 Subject: [PATCH] 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 --- carlfw/usb/main.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.31.1