]> git.baikalelectronics.ru Git - kernel.git/commit
spi/atmel: add support for runtime PM
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 16 Oct 2014 09:23:10 +0000 (17:23 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:24:18 +0000 (12:24 +0100)
commitfa7760647323c1ccee49d377ec6c0ce6bf5617eb
treef618cbdb4334545faecc9ae71634d1f3c0e7cc2b
parent1738d98610aa096a634c994becb0b95570ecbcfc
spi/atmel: add support for runtime PM

Drivers should put the device into low power states proactively whenever the
device is not in use. Thus implement support for runtime PM and use the
autosuspend feature to make sure that we can still perform well in case we see
lots of SPI traffic within short period of time.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c