LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: robert corley <rdcorle@yahoo.com>
To: David Bolcsfoldi <dbolcsfoldi@gmail.com>
Cc: linux linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: initial success with uartlite w/interrupt and 2.6.18.1
Date: Fri, 27 Oct 2006 06:38:23 -0700 (PDT)	[thread overview]
Message-ID: <20061027133823.25945.qmail@web56302.mail.re3.yahoo.com> (raw)

DB;=0A=0AI moved the declaration to outside the loop and now the uartlite d=
river sends and receives=0Adata.  See below for details (as if it needs exp=
laining, right?  :-))=0A=0AFYI, the RS232 irq line stays high (it's level-t=
riggered for RX data) for 9usec, although I=0Asuspect that isn't the irq se=
rvice time as it probably drops as soon as the RX fifo is read.=0AStill, it=
's good to know that it takes that long from irq start to reading a byte.=
=0A=0AI still don't know why I could not get it to properly function in 2.6=
.17, although I was close =0Awith the latest patch you gave me.=0A=0ANow on=
 to the temac...=0A=0A-cy=0A=0A---------------- code follows  -------------=
---------=0A=0Astatic irqreturn_t ulite_isr(int irq, void *dev_id, struct p=
t_regs *regs)=0A{=0A        struct uart_port *port =3D (struct uart_port *)=
dev_id;=0A        int busy;=0A        int stat;=0A=0A        spin_lock(&por=
t->lock); /* Lock the port in case of printk */=0A=0A        do {=0A       =
         stat =3D readb((unsigned volatile *) (port->membase + ULITE_STATUS=
_BYTE));=0A                busy  =3D ulite_receive(port, stat);=0A         =
       busy |=3D ulite_transmit(port, stat);=0A        } while (busy);=0A=
=0A        spin_unlock(&port->lock);=0A=0A        tty_flip_buffer_push(port=
->info->tty);=0A=0A        return IRQ_HANDLED;=0A}=0A=0A=0A=0A

                 reply	other threads:[~2006-10-27 13:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20061027133823.25945.qmail@web56302.mail.re3.yahoo.com \
    --to=rdcorle@yahoo.com \
    --cc=dbolcsfoldi@gmail.com \
    --cc=linuxppc-embedded@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox