From 74a56e4feb9a7b9cabf9ab7bffd95ecf812ea1d9 Mon Sep 17 00:00:00 2001 From: Praveenkumar I Date: Wed, 30 Mar 2022 16:44:22 +0530 Subject: [PATCH] ipq: dump_to_usb needs some delay before usb stop Some USB devices taking more time to store the binary file if the device has multiple partitions. Immediate usb stop can discard the previously transfered binary. This patch adds delay to overcome the issue Change-Id: Iccbf272ebdfc3542ac1474129e07e852e8d7bbaa Signed-off-by: Praveenkumar I --- board/qca/arm/common/crashdump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/qca/arm/common/crashdump.c b/board/qca/arm/common/crashdump.c index 64e50f05f9..b02e967e32 100644 --- a/board/qca/arm/common/crashdump.c +++ b/board/qca/arm/common/crashdump.c @@ -674,6 +674,7 @@ static int do_dumpqca_data(unsigned int dump_level) stop_dump: #if defined(CONFIG_USB_STORAGE) && defined(CONFIG_FS_FAT) if (is_usb_dump == 1) { + mdelay(2000); run_command("usb stop", 0); mdelay(1000); }