From: Mingkai Hu Date: Wed, 1 Dec 2010 09:29:18 +0000 (+0800) Subject: spi/fsl_espi: change the read behaviour of the SPIRF X-Git-Tag: v2.6.38-rc1~454^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=477ca3ad6ac5cdbd5bd40941fc22c6eedc9aa90d;p=pandora-kernel.git spi/fsl_espi: change the read behaviour of the SPIRF The user must read N bytes of SPIRF (1 <= N <= 4) that do not exceed the amount of data in the receive FIFO, so read the SPIRF byte by byte when the data in receive FIFO is less than 4 bytes. On Simics, when read N bytes that exceed the amout of data in receive FIFO, we can't read the data out, that is we can't clear the rx FIFO, then the CPU will loop on the espi rx interrupt. Signed-off-by: Mingkai Hu Signed-off-by: Grant Likely --- Reading git-diff-tree failed