[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-serial
Subject:    RE: [PATCH] pl011: added clock management feature
From:       <Grzegorz.Sygieda () tieto ! com>
Date:       2010-11-17 8:24:35
Message-ID: 0CBD3CD1188FB94093DB405A20CBCFBE06C7415895 () EXMB01 ! eu ! tieto ! com
[Download RAW message or body]

> If a port is open, and bound (eg to a bluetooth hci), how does the higher level \
> decide whether to place the port in low power mode?  How does it know that there \
> isn't going to be > >characters sent to the port? 
> When the port is in this low power mode, it's as good as closed from the external \
> world point of view. 
> I don't like this idea because I really can't see how it could be used effectively \
> - there isn't really any way for a bound protocol to know whether there's \
> characters expected to be received > or not.  Either the port is open and in use, \
> or it isn't. 
> Let's take an example of a modem waiting for an incoming call.  It spends most of \
> its time waiting for the call.  You could argue that you could shut the clock off \
> to the port to save > power - but then how do you receive the "RING" message from \
> the modem?  As you've shut the clock off, you're not going to detect the activity \
> on the receive line. 
> I'm sure that also applies to bluetooth as well, especially if you're a 'client' \
> device - as long as the port is attached, bluetooth probably expects to be able to \
> listen to what's going on so >the device can be discovered. 
> It's all very well adding hooks to the transmit path to ensure that there clock is \
> on while there's characters to be sent, but this really doesn't help you on the \
> receive side. 
> I'm worried...

We have chip which acts (is registred) as platform_device, and have knowledge about \
its status through GPIO, (eg. Wake-up line), as well as it can control low power \
mode. This driver registers to hci discipline, thus gives posibliity to invoke tty \
functions, including set_termios. And this is what we are actualy doing. We think \
that this is best way to keep clock control without closing the uart.

We don't think, if it possible to shutdown and then startup the uart port completly, \
from the chip's driver level. 

Correct us if We're wrong.--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic