]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: fix runtime pm support for !CONFIG_PM
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 21 Oct 2020 10:45:13 +0000 (12:45 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 23 Oct 2020 17:29:00 +0000 (18:29 +0100)
commitd04ffd4e85e3d9ba433b037d28585c2983790c36
tree2d2b8f6a76027620d861bfc062094cafde523653
parentec2838f11cb57c5c64e92e3ab5dc0f02db1ae087
spi: imx: fix runtime pm support for !CONFIG_PM

6ae86542cd49 introduced pm_runtime support for the i.MX SPI driver. With
this pm_runtime is used to bring up the clocks initially. When CONFIG_PM
is disabled the clocks are no longer enabled and the driver doesn't work
anymore. Fix this by enabling the clocks in the probe function and
telling pm_runtime that the device is active using
pm_runtime_set_active().

Fixes: 6ae86542cd49 spi: imx: enable runtime pm support
Tested-by: Christian Eggers <ceggers@arri.de> [tested for !CONFIG_PM only]
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20201021104513.21560-1-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c