]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: fix runtime PM enabling order
authorAntonio Ospite <ao2@ao2.it>
Fri, 30 May 2014 16:18:09 +0000 (18:18 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 1 Jun 2014 10:40:50 +0000 (11:40 +0100)
commitd5a8e7f541c62aa446b31c74a66a669179b71b4d
treed990c0d64f2031c19775fbc7ed1b57ec5085e454
parent59f4686ac649fce0580b382772dd2b63988f5204
spi/pxa2xx: fix runtime PM enabling order

In commit fe810645a66c05459bd01648d3f00668aacad949 (spi/pxa2xx: Convert
to core runtime PM) master->auto_runtime_pm was set to true.

In this case pm_runtime_enable() must be called *before*
spi_register_master(), otherwise the kernel hangs with this error
message:

  spi_master spi0: Failed to power device: -13

A similar fix, but for spi/hspi, was applied in
4ef0ff0ae1eb1496f88217a4b360af89f5456ae1.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pxa2xx.c