Re: [PATCH] spi:add support for slave function in current spi framework

2011-02-10 Thread Grant Likely
On Wed, Feb 9, 2011 at 7:25 PM, Aaron Wu wrote: > Hi Grant, > > Just come back from the long holiday. Thanks very much for the comment and > hints. Following your idea here is some update of our plan: > > Yes the slave can not predict when the transaction is going to happen, and > it takes time be

Re: MRST SPI

2011-02-10 Thread Tom
Following is the debug log from messages after enabling spi debug (starts at point when i call spi_w8r8()) : Jan 10 01:54:35 localhost klogd: [ 100.202663] [] __might_sleep+0xd9/0xe0 Jan 10 01:54:35 localhost klogd: [ 100.202699] [] wait_for_common+0x21/0xfd Jan 10 01:54:35 localhost klogd: [

MRST SPI

2011-02-10 Thread Tom
Hi All, I have a SPI device problem on MRST CDK. I use a GPIO as SS because my slave device expects the SS to be low between byte transfers. My probe function does a read as: int read_val; --- --- read_val = spi_w8r8(&spi_dev,0x20); if ( read_val < 0 ) printk ( "spi_read err\n"); else prin