summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-armada-3700.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-12-29 14:48:02 +0100
committerMark Brown <broonie@kernel.org>2018-01-03 11:39:16 +0000
commit3a41092709a14c8efc84571deacc95a24b7fd6b3 (patch)
tree992a37e28aa08a89441ff708581e0dd394aaea20 /drivers/spi/spi-armada-3700.c
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
spi: bcm53xx: simplify reading SPI data
This commit makes transfer function use spi_transfer_is_last to determine if currently processed transfer is the last one. Thanks to that we finally set hardware registers properly and it makes controller behave the way it's expected to. This allows simplifying read function which can now simply start reading from the slot 0 instead of the last saved offset. It has been successfully tested using spi_write_then_read. Moreover this change fixes handling messages with two writing transfers. It's important for SPI flash devices as their drivers commonly use one transfer for a command and another one for data. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-armada-3700.c')
0 files changed, 0 insertions, 0 deletions