Thread (1 message) 1 message, 1 author, 2002-09-11

Re: SPI Driver for 8xx

From: Wolfgang Denk <hidden>
Date: 2002-09-11 10:50:33

Dear Jocke,

in message [off-list ref] you wrote:
Great, I too need a SPI driver for mpc8xx.
:-)
I took a quick look at the cpm_spi.* driver and looks fine to me, but I have a question:
The driver turns off interrupts during transmission. The comment in the file
says: ... we may need to call it from interrupt handlers.

I can not see any call from a interrupt handler in this code. Where is the call(s) from/to
interrupt handlers? Or is this just a future extension?
We use the SPI communication inside another device  driver  (for  CAN
bus).  It is this other driver that will call the SPI I/O function in
it's interrupt handler.
I would like to keep the interrupts on, if possible.
Feel free to modify the driver according to your needs. It should not
be a problem except for special cases like ours.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"If the code and  the  comments  disagree,  then  both  are  probably
wrong."                                                - Norm Schryer

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help