Message ID | 1382026006-15544-1-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 17/10/13 18:06, Krzysztof Kozlowski wrote: > Mark device as PM runtime active during initialization to reflect > actual device power/clocks state. This reduces the enable count for SPI > bus controller gate clock so it can be disabled when the bus controller > is not used. > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Oct 17, 2013 at 06:06:46PM +0200, Krzysztof Kozlowski wrote: > Mark device as PM runtime active during initialization to reflect > actual device power/clocks state. This reduces the enable count for SPI > bus controller gate clock so it can be disabled when the bus controller > is not used. Applied, thanks.
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 0ddaff2..ae07c3a 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1429,6 +1429,7 @@ 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_set_active(&pdev->dev); pm_runtime_enable(&pdev->dev); if (spi_register_master(master)) {