All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Ira Snyder <iws@ovro.caltech.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Simple UART driver help and TTY questions
Date: Wed, 06 Aug 2008 23:51:43 +0200	[thread overview]
Message-ID: <489A1CEF.4060302@gmail.com> (raw)
In-Reply-To: <20080806214635.GM6257@ovro.caltech.edu>

On 08/06/2008 11:46 PM, Ira Snyder wrote:
> On Wed, Aug 06, 2008 at 11:11:00PM +0200, Jiri Slaby wrote:
>> conOn 08/05/2008 06:33 PM, Ira Snyder wrote:
>>> static void tiny_config_port(struct uart_port *port, int flags)
>>> {
>>> 	FUNC_ENTER();
>>         if (flags & UART_CONFIG_TYPE)
>>                 port->type = PORT_16550A;
>>
>>> }
>> According to the straces, you get -EIO from ioctl and read which most 
>> likely means TTY_IO_ERROR bit set due to tiny_port->type = PORT_UNKNOWN 
>> (i.e. 0). Try the above.
> 
> Not quite, but it got me on the right track. I needed to set port->type
> before calling uart_add_one_port().

Ah,
.flags          = ASYNC_BOOT_AUTOCONF
I guess?

+ I'm sure you will need to set up more entries of your uart_port structure.

      reply	other threads:[~2008-08-06 21:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 16:33 Simple UART driver help and TTY questions Ira Snyder
2008-08-05 21:21 ` Jiri Slaby
2008-08-06 19:32   ` Ira Snyder
2008-08-06 21:11 ` Jiri Slaby
2008-08-06 21:46   ` Ira Snyder
2008-08-06 21:51     ` Jiri Slaby [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=489A1CEF.4060302@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=iws@ovro.caltech.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.