]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-ep93xx: always handle transfer specific settings
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 28 Jun 2013 18:43:34 +0000 (11:43 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:37:13 +0000 (11:37 +0100)
commit01f310cc40b0bdee5bfee50c2dd4cd9f88c9d51d
treee90cebf47b20d077160f47c253a8a34310988738
parent07e109360660cc58aefd754a4369fe475b61e495
spi: spi-ep93xx: always handle transfer specific settings

__spi_async(), which starts every SPI message transfer, initializes
the bits_per_word and max speed for every transfer in the message.
Since the conditional test in ep93xx_spi_process_transfer() will
always succeed just remove it and always call ep93xx_spi_chip_setup()
to configure the hardware for each transfer in the message.

Remove the redundant ep93xx_spi_chp_setup() in ep93xx_spi_process_transfer()
which just initializes the hardware to the "default" based on the SPI
device.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ep93xx.c