serial on lombard

Benjamin Herrenschmidt bh40 at calva.net
Thu Oct 14 23:06:53 EST 1999


On Thu, Oct 14, 1999, Chris Ridd <Chris.Ridd at messagingdirect.com> wrote:

>> Note that this is the/a way to set CLOCAL -- open the device with
O_NONBLOCK
>> and then tcsetattr() or whatever.
>
>The open on /dev/ttyS0 returns a valid fd, so it is succeeding. As BenH 
>pointed out, the problem is the SIGALRM ringing which causes Minicom to 
>erroneously think it couldn't open the device.

I just checked and yes, the driver doesn't check the O_NONBLOCK flag, it
always block for 2.5s (since, I think, there's no DCD, it's a hackish
workaround). Now, we could eventually check more closely, it's possible
that there's actually a DTR on this internal modem. I heard from Apple
sources that the wiring of this modem to the SCC was a little bit weird,
it's possible that the DTR is indeed available either on the flow control
input pin (but I don't think so) or on the GPio pin. In this case, we
should check this instead of waiting for an arbitrary amount of time.

Note that this error should not happen with other serial ports, this
tempo is only used with the powerbook's internal modem (triggered by the
"cobalt" compatible propery in the device tree).

-- 
           Perso. e-mail: <mailto:bh40 at calva.net>
           Work   e-mail: <mailto:benh at mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list