spi: mxc_spi: Fix handling of chip select
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 15 Nov 2012 11:23:23 +0000 (11:23 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 19 Nov 2012 07:49:00 +0000 (08:49 +0100)
commitde5bf02cb1f61de0c65a539cd0083ac8ab07ec50
tree1e6c7fc5617a0714e43528e7a09578e784b146d5
parent081237c1f7e7a177bb2e761ee5678d08c345865d
spi: mxc_spi: Fix handling of chip select

In decode_cs() function the polarity of the chip select must be taken into
account.

Also, for the case of low active chip select, the CS was activated too early.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/spi/mxc_spi.c