[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-arm-kernel
Subject: Re: pxa270 & request_irq troubles
From: Palo Revak <palo () bielyvlk ! sk>
Date: 2008-01-24 14:58:25
Message-ID: 200801241558.25239.palo () bielyvlk ! sk
[Download RAW message or body]
YES,,,
BTMCR |= MCR_OUT2;
if it is not set, interrupts are disabled in non loop mode!!!
regards :)
On Thursday 24 January 2008 01:18:02 Palo Revak wrote:
> I making my own serial driver with RS485 support as kernel module.
> (in userspace it is not suitable, because it is not a realtime.. and I need
> very fast response during arbitrage and after sending...)
> for communication is used BTUART, this serial port is configured as
> following:
>
> BTLCR = LCR_DLAB;
> BTDLL = 16; // 57600
> BTDLH = 0;
> BTLCR = LCR_WLS1 | LCR_WLS0; // 8bits
> BTIER = IER_UUE | IER_TIE | IER_RAVIE;
>
> at this time is all features disabled (like FIFO, ...) except IRQ (only
> very basic settings)
> after I configure an interrupt:
>
> return = request_irq(IRQ_BTUART, rs485_irq, 0, "rs485", NULL);
>
> this is OK (return == 0)
> if I try to send any data like:
>
> BTTHR = 0x55;
>
> the data are transmitted correctly...
> only my rs485_irq handler is newer called.
>
> in file: /proc/interrupts
> CPU0
> 3: 24 SC ohci_hcd:usb1
> 8: 0 GPIO-l MMC card detect
> 17: 1 SC LCD
> 21: 0 SC rs485
> 22: 807 SC FFUART
> 23: 11 SC pxa2xx-mci
> 25: 0 SC DMA
> 26: 36307 SC ost0
> 178: 16560 GPIO eth0
> Err: 0
>
> according to datasheet, registers for BTUART are sets OK
> also I try to exchange irq to 9 (GPIO1) and if I change this signal, my
> handler is called correctly.
> I try to remove support for BTUART from pxa270.c, and still nothing.
> if I keep BTUART support in kernel, any sending/receiving is OK and include
> interrupt calling.
>
> I doing something wrong ? I'm from this already miserable :(
> thanks for any ideas.
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic