public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: Linux-omap-open-source@linux.omap.com
Subject: Re: serial on omap in current git.
Date: Mon, 13 Feb 2006 10:23:57 -0800	[thread overview]
Message-ID: <20060213182357.GA5113@atomide.com> (raw)
In-Reply-To: <EA12F909C0431D458B9D18A176BEE4A5044B24F9@dlee02.ent.ti.com>

Hi,

* Woodruff, Richard <r-woodruff2@ti.com> [060212 14:15]:
> Actually it is more like this...
> 
> 
> if (up->port.type != PORT_16750) {
> 	if (fcr & UART_FCR_ENABLE_FIFO) {
> 		/* emulated UARTs (Lucent Venus 167x) need two steps */
> 		serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO);
> 	}
> 	if(uart_config[up->port.type].flags & UART_CAP_EFR){
> 		serial_outp(up, UART_LCR, 0xBF); /*allow access to
> EFR(vs LCR)*/
> 		serial_outp(up, UART_EFR, UART_EFR_ECB);/*allow FCR tx
> fifo write*/
> 		serial_outp(up, UART_LCR, 0x0); /* access back to FCR */
> 		serial_outp(up, UART_FCR, fcr); /* set fcr with possible
> TX fifo setting */
> 		serial_outp(up, UART_LCR, 0xBF);
> 		serial_outp(up, UART_EFR, 0);
> 		serial_outp(up, UART_LCR, cval); /* access back to FCR
> */
> 	} else
> 		serial_outp(up, UART_FCR, fcr);

So the extended capabilities bit is needed to write fcr, or else some
settings don't get set?
 
> In my build your last serial hack is not necessary anymore either.

Looks like patch f5968b37b3ad35b682b574b578843a0361218aff fixed it in
the mainline 8250.c:

http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f5968b37b3ad35b682b574b578843a0361218aff;hp=620739025b94fe472c845ce013bff62716d3c576
 
> I played around a bit trying to remove several of them.  To use the
> actual TX watermark interrupt set at 32bytes required too ugly of a hack
> to use (not use OMAP_SCR=0).

Can you list the 8250.c issues you've seen?
 
> A minor note is we are still only using 32 bytes of the 64 byte TX fifo
> for transmits in the current code.  I'm not sure if there is an
> application that this matters to.

I guess that could help on bluetooth maybe.

Regards,

Tony

  reply	other threads:[~2006-02-13 18:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 22:13 serial on omap in current git Woodruff, Richard
2006-02-13 18:23 ` Tony Lindgren [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-13 18:50 Woodruff, Richard
2006-02-21  0:03 ` Tony Lindgren
2006-02-08  0:18 Woodruff, Richard
2006-02-07 23:59 Woodruff, Richard
2006-02-08  0:14 ` Tony Lindgren

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=20060213182357.GA5113@atomide.com \
    --to=tony@atomide.com \
    --cc=Linux-omap-open-source@linux.omap.com \
    --cc=r-woodruff2@ti.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox