spi: fsl-espi: add (un)prepare_transfer_hardware calls to save power if SPI is not...
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 3 Dec 2014 06:56:19 +0000 (07:56 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Dec 2014 13:05:47 +0000 (13:05 +0000)
commit75506d0e0084ee7f074be3c5da6d5de98ce347b6
tree61bb3916c2f3f04206bc0639e287b50ee23e2a0e
parentc592becbe704127ef0b89233ff7f285637491154
spi: fsl-espi: add (un)prepare_transfer_hardware calls to save power if SPI is not in use

Use (un)prepare_transfer_hardware calls to set fsl-espi to
low-power idle if not in use. Reference manual states:

"The eSPI is in a idle state and consumes minimal power.
The eSPI BRG is not functioning and the input clock is disabled"

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c