summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-10-23 12:31:50 +0400
committerMark Brown <broonie@linaro.org>2013-10-23 13:05:05 +0400
commit9e556dcc55774c9a1032f32baa0e5cfafede8b70 (patch)
tree301c4529564252aba7328e5bf6d264a20390db5f /drivers/infiniband
parent31d141e3a666269a3b6fcccddb0351caf7454240 (diff)
downloadlinux-9e556dcc55774c9a1032f32baa0e5cfafede8b70.tar.xz
spi: spi-imx: only enable the clocks when we start to transfer a message
Current code keeps the clocks enabled all the time, it wastes the power when there is no operaiton on the spi controller. In order to save the power, this patch adds the two hooks: spi_imx_prepare_message: enable the clocks for this message spi_imx_unprepare_message: disable the clocks. This patch also disables the clocks in the end of the probe. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions