I rechecked it and I should have taken away all the only-whitespace changes.

The diffs are from the ads5121 branch from Denx.

Regards,
M


Josh Boyer ha scritto:
On Thu, 11 Dec 2008 19:39:21 +0100
Matteo Fortini <m.fort...@selcomgroup.com> wrote:

This patch is to avoid breaking some drivers, in my case the ADS7846 touchscreen one, which use 1 char messages. If you put the dummy byte after the 1 char message, you get part of the answer to the message in the rxbuf of the message, which is thrown away.

The solution is to put the dummy byte before the message, so that the slave doesn't respond.

It also optimizes the interrupt handling, by using the alarm function of the FIFO, to wait until the rx FIFO has received enough bytes, instead of waiting until the tx FIFO is empty.



Signed-off-by: Matteo Fortini <m.fort...@selcomgroup.com>
---
drivers/spi/mpc512x_psc_spi.c | 50 +++++++++++++++++++++++-----------------
 1 files changed, 29 insertions(+), 21 deletions(-)

This still seems to be whitespace corrupted.  Also, that file doesn't
even exist in any upstream kernel I can find.  What tree did you diff
this from?

josh
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to