summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/spi-mt65xx.h
diff options
context:
space:
mode:
authorMason Zhang <Mason.Zhang@mediatek.com>2021-06-29 18:08:15 +0800
committerMark Brown <broonie@kernel.org>2021-07-11 23:51:46 +0100
commit162a31effc4182dd5a0675d9fd0336d5096e0ad3 (patch)
tree5f113898a7fe993b3f97f1f1c17a7af12ffdcb33 /include/linux/platform_data/spi-mt65xx.h
parent3522d9aa19285bbff14da20cb3481e36ef4835fd (diff)
spi: mediatek: add no_need_unprepare support
This patch add no_need_unprepare support for spi, if spi src clk is MAIN PLL, it can keep the clk_prepare and will not cause low power issue. So we no need do clk_prepare/clk_unprepare in runtime pm, and it will get better performance, because clk_prepare has called mutex lock. In the same way, clk_get_rate also has called mutex lock, so we moved it to spi_probe. Signed-off-by: Mason Zhang <Mason.Zhang@mediatek.com> Link: https://lore.kernel.org/r/20210629100814.21402-1-mason.zhang@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/platform_data/spi-mt65xx.h')
0 files changed, 0 insertions, 0 deletions