diff options
author | Maxime Chevallier <maxime.chevallier@smile.fr> | 2017-10-10 11:43:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-10 12:17:06 +0300 |
commit | dd7aa8d4b53b3484ba31ba56f3ff1be7deb38530 (patch) | |
tree | ac3480bb36c82d2319bb4820a5b02c9d226521ba /arch/frv/mb93090-mb00/pci-irq.c | |
parent | 5a866ec0014b2baa4ecbb1eaa19c835482829d08 (diff) | |
download | linux-dd7aa8d4b53b3484ba31ba56f3ff1be7deb38530.tar.xz |
spi: a3700: Change SPI mode before asserting chip-select
The spi device mode should be configured in the controller before the
chip-select is asserted, so that a clock polarity configuration change
is not interpreted as a clock tick by the device.
This patch moves the mode setting to the 'prepare_message' function
instead of the 'transfer_one' function.
By doing so, this patch also removes redundant code in
a3700_spi_clock_set.
This was tested on EspressoBin board, with spidev.
Signed-off-by: Maxime Chevallier <maxime.chevallier@smile.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/frv/mb93090-mb00/pci-irq.c')
0 files changed, 0 insertions, 0 deletions