mpc8xxx_spi: fix SPI support on MPC8308RDB
authorIra W. Snyder <iws@ovro.caltech.edu>
Wed, 12 Sep 2012 21:17:31 +0000 (14:17 -0700)
committerKim Phillips <kim.phillips@freescale.com>
Tue, 18 Sep 2012 21:16:44 +0000 (16:16 -0500)
commitf138ca1373d7ec9fca33ae21f1b5ff3898fd493f
tree63e0692473301f5af7d910741bc1bff7614d4b3d
parent037e9d33db9fc86c1e671d64077b2d1a19df7f24
mpc8xxx_spi: fix SPI support on MPC8308RDB

The MPC8308RDB Reference Manual states that no bits in the SPMODE
register are allowed to change while the enable (EN) bit is set.

This driver changes the character length bits (LEN) while the enable
(EN) bit is set. Clearing the EN bit while changing the LEN bits makes
the driver work correctly on MPC8308RDB.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
drivers/spi/mpc8xxx_spi.c