Searched hist:"49834 de234f3cf592c3d242c889ca603db8e7050" (Results 1 – 2 of 2) sorted by relevance
/linux/include/linux/spi/ |
H A D | spi.h | diff 49834de234f3cf592c3d242c889ca603db8e7050 Sun Jul 28 15:47:02 CEST 2013 Mark Brown <broonie@linaro.org> spi: Provide core support for runtime PM during transfers
Most SPI drivers that implement runtime PM support use identical code to do so: they acquire a runtime PM lock in prepare_transfer_hardware() and then they release it in unprepare_transfer_hardware(). The variations in this are mostly missing error checking and the choice to use autosuspend.
Since these runtime PM calls are normally the only thing in the prepare and unprepare callbacks and the autosuspend API transparently does the right thing on devices with autosuspend disabled factor all of this out into the core with a flag to enable the behaviour.
Signed-off-by: Mark Brown <broonie@linaro.org> Reviewed-by: Stephen Warren <swarren@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
|
/linux/drivers/spi/ |
H A D | spi.c | diff 49834de234f3cf592c3d242c889ca603db8e7050 Sun Jul 28 15:47:02 CEST 2013 Mark Brown <broonie@linaro.org> spi: Provide core support for runtime PM during transfers
Most SPI drivers that implement runtime PM support use identical code to do so: they acquire a runtime PM lock in prepare_transfer_hardware() and then they release it in unprepare_transfer_hardware(). The variations in this are mostly missing error checking and the choice to use autosuspend.
Since these runtime PM calls are normally the only thing in the prepare and unprepare callbacks and the autosuspend API transparently does the right thing on devices with autosuspend disabled factor all of this out into the core with a flag to enable the behaviour.
Signed-off-by: Mark Brown <broonie@linaro.org> Reviewed-by: Stephen Warren <swarren@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
|