From: Guennadi Liakhovetski Date: Fri, 21 Jan 2011 15:56:42 +0000 (+0100) Subject: spi/spi_sh_msiof: consolidate data in 8-bit mode into 32-bit words X-Git-Tag: v2.6.39-rc1~417^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dabb3f3269d042908bf1f4e685413c39cc8c373;p=pandora-kernel.git spi/spi_sh_msiof: consolidate data in 8-bit mode into 32-bit words Instead of sending data 8 bits at a time in 8-bit SPI mode, swap bytes and send and receive them 32 bits at a time. Tested with an SD-card, with which this patch reduced the number of interrupts by 50%, when reading 5MiB of data (there are also small service packets, the number of interrupts, produced by 512-byte sectors should, of course, drop by 75%), and improved throughput by more than 40%. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Grant Likely --- Reading git-diff-tree failed