spi: mxc_spi: Fix spi clock glitch durant reset
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 15 Nov 2012 11:23:24 +0000 (11:23 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 19 Nov 2012 07:49:00 +0000 (08:49 +0100)
commit3cea335c3410f71524b50263b8af0e7eb69ebbe4
tree8bd13629d47da2981d0ff603fdd3b2812c8a94c4
parentde5bf02cb1f61de0c65a539cd0083ac8ab07ec50
spi: mxc_spi: Fix spi clock glitch durant reset

Measuring the spi clock line on a scope shows a 'glitch' during the reset of the
spi.

Fix this by toggling only the MXC_CSPICTRL_EN bit, so that the clock line becomes
always stable.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
drivers/spi/mxc_spi.c