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)
commit43b6bf406cd0319e522638f97c9086b7beebaeaa
tree2d2b8f6a76027620d861bfc062094cafde523653
parent855a40cd8cccfbf5597adfa77f55cdc8c44b6e42
spi: imx: fix runtime pm support for !CONFIG_PM

525c9e5a32bd 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: 525c9e5a32bd 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