LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* initial success with uartlite w/interrupt and 2.6.18.1
@ 2006-10-27 13:38 robert corley
  0 siblings, 0 replies; only message in thread
From: robert corley @ 2006-10-27 13:38 UTC (permalink / raw)
  To: David Bolcsfoldi; +Cc: linux linuxppc-embedded

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-27 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 13:38 initial success with uartlite w/interrupt and 2.6.18.1 robert corley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox