]> git.baikalelectronics.ru Git - kernel.git/commit
spi: tegra20-slink: Improve runtime PM usage
authorDmitry Osipenko <digetx@gmail.com>
Sat, 31 Jul 2021 19:27:30 +0000 (22:27 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 9 Aug 2021 11:40:28 +0000 (12:40 +0100)
commit54fc7f4a045d81c2c474592ff6f3cb6c8c63812b
treec21905e03ff1ae30b1e7faca08a405aa4d976232
parent676c37b59d1747bb568b92fdbaa66a065bed87ad
spi: tegra20-slink: Improve runtime PM usage

The Tegra SPI driver supports runtime PM, which controls the clock
enable state, but the clk is also enabled separately from the RPM
at the driver probe time, and thus, stays always on. Fix it.

Runtime PM now is always available on Tegra, hence there is no need to
check the RPM presence in the driver anymore. Remove these checks.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210731192731.5869-1-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c