spi: spi-ep93xx: add spi master prepare_transfer_hardware()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 8 Aug 2017 20:51:27 +0000 (08:51 +1200)
committerMark Brown <broonie@kernel.org>
Wed, 9 Aug 2017 16:52:57 +0000 (17:52 +0100)
commit16779622be1c8959d6a665e2b6886bb33885fcb1
tree7be1f51f47534c97d3d9f15daa2a3c918bdcc836
parent8447e4781f033f56cb18c2ec0301ea5d207877fc
spi: spi-ep93xx: add spi master prepare_transfer_hardware()

This driver currently enables the hardware at the start of every
message and disabled it when the message is complete. Make it a
bit smarter by adding the prepare_transfer_hardware() and
unprepare_transfer_hardware() callbacks so that the core can
enable/disable the hardware based on spi message queue.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
[chris: use u32 instead of unsigned int]
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ep93xx.c