From: Philippe Rétornaz Date: Tue, 29 May 2012 09:06:29 +0000 (+0200) Subject: mfd: mc13xxx workaround SPI hardware bug on i.Mx X-Git-Tag: v3.5-rc7~18^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada72d0a9308105b535c8fc53ba5b33e9f076a1a;p=pandora-kernel.git mfd: mc13xxx workaround SPI hardware bug on i.Mx The MC13xxx PMIC is mainly used on i.Mx SoC. On those SoC the SPI hardware will deassert CS line as soon as the SPI FIFO is empty. The MC13xxx hardware is very sensitive to CS line change as it corrupts the transfer if CS is deasserted in the middle of a register read or write. It is not possible to use the CS line as a GPIO on some SoC, so we need to workaround this by implementing a single SPI transfer to access the PMIC. Reviewed-by: Mark Brown Acked-by: Marc Reilly Signed-off-by: Philippe Rétornaz Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed