From 0080ded1cf93cb4117543ff0d2e84696729ce29e Mon Sep 17 00:00:00 2001 From: Ivan Priest Date: Tue, 30 Apr 2019 15:36:50 +0100 Subject: [PATCH] [NEUS7920-218] wlbt: reprint host failure reason after FW panic record Re-print the host failure reason string after the FW panic record is printed in kernel log. Helps with failures where reason has scrolled off top of kernel log. Change-Id: I27ec6d74f8fea63a479a463838fcaca0cb4aba3f SCSC-Bug-Id: SSB-52204 Signed-off-by: Ivan Priest --- drivers/misc/samsung/scsc/mxman.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/samsung/scsc/mxman.c b/drivers/misc/samsung/scsc/mxman.c index fd316e8c7457..581cd626bf74 100755 --- a/drivers/misc/samsung/scsc/mxman.c +++ b/drivers/misc/samsung/scsc/mxman.c @@ -1572,6 +1572,12 @@ static void mxman_failure_work(struct work_struct *work) panic_record_dump + used, PANIC_RECORD_DUMP_BUFFER_SZ - used); + /* Print the host code/reason again so it's near the FW panic + * record in the kernel log + */ + print_panic_code(mxman->scsc_panic_code); + SCSC_TAG_INFO(MXMAN, "Reason: '%s'\n", mxman->failure_reason[0] ? mxman->failure_reason : ""); + blocking_notifier_call_chain(&firmware_chain, SCSC_FW_EVENT_MOREDUMP_COMPLETE, &panic_record_dump); -- 2.20.1