18 Sep 08:58
Re: [PATCH 2.6.26] SERIAL DRIVER: Handle Multiple consecutive sysrq from the serial
From: Eran Liberty <liberty <at> extricom.com>
Subject: Re: [PATCH 2.6.26] SERIAL DRIVER: Handle Multiple consecutive sysrq from the serial
Newsgroups: gmane.linux.serial, gmane.linux.kernel
Date: 2008-09-18 06:58:36 GMT
Subject: Re: [PATCH 2.6.26] SERIAL DRIVER: Handle Multiple consecutive sysrq from the serial
Newsgroups: gmane.linux.serial, gmane.linux.kernel
Date: 2008-09-18 06:58:36 GMT
Andrew Morton wrote:
> On Mon, 15 Sep 2008 19:30:05 +0300
> Eran Liberty <liberty <at> extricom.com> wrote:
>
>
>> Dear Penguins,
>>
>> Let me start of by saying my particular hardware must be buggy in some
>> way. When I issue a sysrq (Ctrl A+ F from minicom) I get a lot of sysrq
>> triggers.
>>
>> I have worked around the problem and I think this workaround is a viable
>> patch even for platforms which do not exhibit this peculiar behavior.
>>
>> upon getting numerous interrupts which request sysrq the function
>> uart_handle_break in include/linux/serial_core.h is hit multiple times.
>> The current code which looks like this:
>>
>> static inline int uart_handle_break(struct uart_port *port)
>> {
>> struct uart_info *info = port->info;
>> #ifdef SUPPORT_SYSRQ
>> if (port->cons && port->cons->index == port->line) {
>> if (!port->sysrq) {
>> port->sysrq = jiffies + HZ*5;
>> return 1;
>> }
>> port->sysrq = 0;
>> }
>> #endif
(Continue reading)
RSS Feed