spi/omap_mcspi: catch xfers of non-multiple SPI word size
authorMichael Jones <michael.jones@matrix-vision.de>
Fri, 25 Feb 2011 15:55:11 +0000 (16:55 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 5 Mar 2011 05:23:26 +0000 (22:23 -0700)
commitadef658ddf71e709eb1bdc181b86c62b933b967b
treecb7b2c926ff5ed307eb0b48b76fd140f5b44dd97
parent57d9c10dd91f942f836592f407d6351e2969548a
spi/omap_mcspi: catch xfers of non-multiple SPI word size

If an SPI access was not a multiple of the SPI word size,
the while() loop would spin and the rx/tx ptrs would be incremented
indefinitely.

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/omap2_mcspi.c