From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751342AbWFIImz (ORCPT ); Fri, 9 Jun 2006 04:42:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751440AbWFIImz (ORCPT ); Fri, 9 Jun 2006 04:42:55 -0400 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:18962 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S1751342AbWFIImy (ORCPT ); Fri, 9 Jun 2006 04:42:54 -0400 Date: Fri, 9 Jun 2006 09:42:34 +0100 From: Russell King To: Pavel Machek Cc: Dave Jones , Sanjoy Mahajan , "Rafael J. Wysocki" , Paul Dickson , linux-kernel@vger.kernel.org, jeremy@goop.org Subject: Re: Bisects that are neither good nor bad Message-ID: <20060609084234.GA25497@flint.arm.linux.org.uk> Mail-Followup-To: Pavel Machek , Dave Jones , Sanjoy Mahajan , "Rafael J. Wysocki" , Paul Dickson , linux-kernel@vger.kernel.org, jeremy@goop.org References: <20060528140238.2c25a805.dickson@permanentmail.com> <20060528140854.34ddec2a.paul@permanentmail.com> <200605282324.13431.rjw@sisk.pl> <200605282324.13431.rjw@sisk.pl> <20060528213414.GC5741@redhat.com> <20060529145255.GB32274@redhat.com> <20060530152926.GA4103@ucw.cz> <20060603091133.GA24271@flint.arm.linux.org.uk> <20060609083833.GD18084@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060609083833.GD18084@elf.ucw.cz> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 09, 2006 at 10:38:33AM +0200, Pavel Machek wrote: > > The serial layer does _not_ have access to the "current" termios > > settings due to the layering by the tty subsystem. If the serial > > port being used by serial console has been opened once by the user, > > but is closed at the moment when a suspend/resume cycle occurs, > > the serial layer and lower level drivers do not have access to the > > baud rate. > > Could serial layer just cache "last baud rate" in some kind of > software shadow register? Yes, it is slightly ugly, but should do the trick. That's not a new suggestion. How do you deal with the case where you have console on two or more different serial ports? That's the problem with this approach. The only sane solution is for the tty layer to be adjusted to allow suspend/resume support for consoles. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core