Re: [PATCH: 2/2] [SERIAL] avoid stalling suspend if serial port won't drain

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: Linux Kernel List <linux-kernel@...>, Alan Cox <alan@...>, Andrew Morton <akpm@...>
Date: Sunday, January 13, 2008 - 8:29 pm

On Fri, Jan 11, 2008 at 10:17:21AM +0000, Pavel Machek wrote:

That would mean that a port set for hardware flow control, with hardware
implemented flow control, has CTS deasserted, you'll never suspend.

If you're suspending because your battery is almost dead what would you
prefer - the system being prevented from suspending and losing complete
power unexpectedly, resulting in complete data loss, or losing the
characters in the serial port and suspending?

Which is the lesser of two evils?

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH: 2/2] [SERIAL] avoid stalling suspend if serial p..., Russell King, (Sun Jan 13, 8:29 pm)
Re: [PATCH: 2/2] [SERIAL] avoid stalling suspend if serial p..., Benjamin Herrenschmidt, (Sun Jan 13, 6:56 pm)