summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_fsl_lib.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-01-21 16:56:42 +0100
committerGrant Likely <grant.likely@secretlab.ca>2011-01-21 10:02:35 -0700
commit9dabb3f3269d042908bf1f4e685413c39cc8c373 (patch)
treea6913470397af37729670966b9683aec48edb525 /drivers/spi/spi_fsl_lib.c
parente2dbf5ebcc983b0349ab507bf7dd5562cf88dd24 (diff)
downloadlinux-9dabb3f3269d042908bf1f4e685413c39cc8c373.tar.gz
linux-9dabb3f3269d042908bf1f4e685413c39cc8c373.tar.bz2
linux-9dabb3f3269d042908bf1f4e685413c39cc8c373.zip
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 <g.liakhovetski@gmx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi_fsl_lib.c')
0 files changed, 0 insertions, 0 deletions