From: Daniel Mack Date: Thu, 19 Nov 2009 19:01:42 +0000 (+0000) Subject: spi/i.mx: drain MXC SPI transfer buffer when probing device X-Git-Tag: v2.6.33-rc1~279^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce1807b2e527979bd77d8a1a1768a6365f3febb5;p=pandora-kernel.git spi/i.mx: drain MXC SPI transfer buffer when probing device On the MX31litekit, the bootloader seems to communicate with the MC13783 PMIC chip before booting Linux. However, it does not flush all the buffers properly after that, which makes the imx-spi driver read bogus data when probing the MC13783. Fix that by draining the SPI receive buffer on startup. Signed-off-by: Daniel Mack Acked-by: Uwe Kleine-König Signed-off-by: Grant Likely --- Reading git-diff-tree failed