Commit 50827fbd authored by Feng Tang's avatar Feng Tang Committed by Greg Kroah-Hartman

serial: mfd: Add nmi_touch_watchdog() into the console write function

This is following what 8250 driver is doing in console write function,
to avoid the hardware lockup case.

v2: incldudes the <linux/nmi.h>
Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9642dbe7
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/serial_mfd.h> #include <linux/serial_mfd.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/nmi.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
...@@ -1113,6 +1114,8 @@ serial_hsu_console_write(struct console *co, const char *s, unsigned int count) ...@@ -1113,6 +1114,8 @@ serial_hsu_console_write(struct console *co, const char *s, unsigned int count)
unsigned int ier; unsigned int ier;
int locked = 1; int locked = 1;
touch_nmi_watchdog();
local_irq_save(flags); local_irq_save(flags);
if (up->port.sysrq) if (up->port.sysrq)
locked = 0; locked = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment