]> git.karo-electronics.de Git - linux-beck.git/commit
spi: davinci: remove unnecessary data transmit on CS disable
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 12 Aug 2010 06:57:33 +0000 (12:27 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:24 +0000 (18:38 +0530)
commitcfbc5d1d8fda9d337e912a03502cf77d29870a8e
tree847a5d9426e69a18c5fff666d8a507ab737f9bec
parent7978b8c385a86f0b5b9304e81a1dfb5dcaf21528
spi: davinci: remove unnecessary data transmit on CS disable

On TI DaVinci's SPI controller, the SPIDAT1 register which
controls the chip slect status, also has data transmit register
in the lower 16 bits. Writing to the whole 32-bits triggers
an additional data transmit every time the chip select is disabled.

While most SPI slaves cope-up with this, some cannot. This
patch fixes this by doing a 16-bit write on the upper half
of the SPIDAT1 register

While at it, group the SPIGCR1 register related defines seperately
from SPIDAT1 register defines.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c