Skip to content
Commit ce1807b2 authored by Daniel Mack's avatar Daniel Mack Committed by Grant Likely
Browse files

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: default avatarDaniel Mack <daniel@caiaq.de>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent d33c861e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment