Re: Re: S3 suspend and serial console

Nigel Cunningham
2005-02-07T22:04:24Z

Hi.

On Tue, 2005-02-08 at 04:14, Carl-Daniel Hailfinger wrote:
> Pavel Machek schrieb:
> > Hi!
> >
> >
> >>>>Erm... is it intentional that serial powermanagement code is never
> >>>>called on entering/leaving S3? When I added debugging statements
> >>
> >>>Probably noone was yet trying to use serial during suspend....
> >>
> >>You mean noone uses the serial console while testing suspend?
> >>What is the new way to debug suspend problems not requiring a
> >>serial console?
> >
> > Well, when video works, you debug using video. I used hardware
> > debugger, too...
>
> Will there be any patch to actually use the powermanagement code
> in the serial core?
>
>
> Regarding the original problem:
> It seems the following call is sufficient to make the console work
> again. However, I haven't found a function which would give me
> the parameters needed to call ->set_termios.
>
> serial/8250.c: serial8250_set_termios
>
> Do you have any idea how to obtain the termios and tty structures
> for a given port, e.g. ttyS0?

We have code for 2.4 in Suspend2. I haven't seen any need for it in 2.6;
it just works (except that you can't send keystrokes early in the boot
process). Haven't tried S3, so I don't know the issues there.

Regards,

Nigel
--
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com

Ph: +61 (2) 6292 8028 Mob: +61 (417) 100 574

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.