Re: [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driver forbutton/scrollwhell/slider/touchpad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 01 September 2009, Song, Barry wrote:
> >> +       spi_message_add_tail(&t, &m);
> >> +       ret = spi_sync(spi, &m);
> >
> >cant you use spi_write_then_read() ?  dont let the u8* prototype scare
> >you, it should work with writing 16bits and then reading 16bits.
> 
> I have never been scared by any u8* or something else. I only prefer
> to use raw spi API, which can show the bottom level timing and SPI 
> bus feature better.   

In this case spi_write_then_read() is required, since
your tx and rx buffers are on the stack and hence not
DMA-safe.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux