spi/bcm63xx-hsspi: add support for dual spi read/write
authorJonas Gorski <jogo@openwrt.org>
Sun, 23 Aug 2015 20:49:32 +0000 (22:49 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2015 16:33:49 +0000 (17:33 +0100)
commitf4d86223771533c68f1a6692d499f7ef0025f733
treea420afd5d0a03ba0231282940cf2820ceda2b669
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
spi/bcm63xx-hsspi: add support for dual spi read/write

Add support for dual read/writes on spi-bcm63xx-hsspi. This has been
tested with a s25fl129p1 dual read capable spi flash, with a nice speed
improvement:

serial read:

root@OpenWrt:/# time dd if=/dev/mtd4 of=/dev/null bs=8192
2032+0 records in
2032+0 records out
real    0m 4.39s
user    0m 0.00s
sys     0m 1.55s

dual read:

root@OpenWrt:/# time dd if=/dev/mtd4 of=/dev/null bs=8192
2032+0 records in
2032+0 records out
real    0m 3.09s
user    0m 0.00s
sys     0m 1.56s

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx-hsspi.c