No. After that it fails on 2.6.28, I wrote a new API inside my driver which is similar to your 2.6.28 spi_write_then_read(), but modify the buffer layout. And the new API works fine for my max3111 device.
Thanks, Feng -----Original Message----- From: David Brownell [mailto:[email protected]] Sent: 2008年12月24日 11:53 To: Tang, Feng Cc: Linus Torvalds; [email protected]; Andrew Morton; Vernon Sauder Subject: Re: [spi-devel-general] [patch 2.6.28-rc9] spi: spi_write_then_read() regression fix On Tuesday 23 December 2008, Tang, Feng wrote: > I'm writing a SPI-UART device driver for max3111, its working > mechanism is if you want read data back, you need write 0 to > it first ... > > The driver works in 2.6.27 with your previous spi_write_then_read() > implementation, but fails on 2.6.28 as it dumps all the readback > value of the write. And so it works with the $SUBJECT patch, yes? ------------------------------------------------------------------------------ _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
