spi/s3c64x: Ensure runtime PM is enabled prior to registration
Subsystems (3)
Mark Brown
maintainerPATCH 1/1 spi/s3c64x: Ensure runtime PM is enabled prior to registration
From: Mark Brown <[email protected]>
Otherwise we may try to start transfers immediately and then fail to runtime resume the device causing us not to have clocks enabled.
Signed-off-by Mark Brown <[email protected]>
--- drivers/spi/spi-s3c64xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-s3c64xx.c +2 -2
@@ -1428,6 +1428,8 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)S3C64XX_SPI_INT_TX_OVERRUN_EN |S3C64XX_SPI_INT_TX_UNDERRUN_EN , sdd->regs + S3C64XX_SPI_INT_EN); +pm_runtime_enable (&pdev->dev); + ret =devm_spi_register_master (&pdev->dev, master);if (ret !=0 ) {dev_err (&pdev->dev,"cannot register SPI master: %d\n" , ret);
@@ -1440,8 +1442,6 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) mem_res, sdd->rx_dma.dmach, sdd->tx_dma.dmach); -pm_runtime_enable (&pdev->dev); -return 0 ; err3:
Signature · 1 line
1.8.4.rc3
Quoted 6 lines · Mark Brown
From: Mark Brown <[email protected]>
Otherwise we may try to start transfers immediately and then fail to runtime resume the device causing us not to have clocks enabled.
Signed-off-by Mark Brown <[email protected]>
Reviewed-by Sylwester Nawrocki <[email protected]>
There is only a small typo in the subject line, thanks.