From patchwork Thu Oct 17 16:06:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3061731 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4711C9F2B6 for ; Thu, 17 Oct 2013 16:07:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D69F20459 for ; Thu, 17 Oct 2013 16:07:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 64B7D20480 for ; Thu, 17 Oct 2013 16:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757603Ab3JQQG6 (ORCPT ); Thu, 17 Oct 2013 12:06:58 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:45787 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757404Ab3JQQG5 (ORCPT ); Thu, 17 Oct 2013 12:06:57 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUT00987M3DPM00@mailout3.w1.samsung.com>; Thu, 17 Oct 2013 17:06:55 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-fb-52600b1f4341 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 40.DB.31515.F1B00625; Thu, 17 Oct 2013 17:06:55 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MUT00E2BM3GV200@eusync3.samsung.com>; Thu, 17 Oct 2013 17:06:55 +0100 (BST) From: Krzysztof Kozlowski To: Ben Dooks , Kukjin Kim , Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki , Krzysztof Kozlowski , Kyungmin Park Subject: [PATCH] spi/s3c64xx: Add missing pm_runtime_set_active() call in probe() Date: Thu, 17 Oct 2013 18:06:46 +0200 Message-id: <1382026006-15544-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNJMWRmVeSWpSXmKPExsVy+t/xq7ry3AlBBu179S0mrTvAZDH14RM2 i9cvDC16F1xlszjb9IbdYtPja6wWl3fNYbOYcX4fk0Xjx5vsFofftLM6cHn8XfWC2WPTqk42 j81L6j36tqxi9Pi8SS6ANYrLJiU1J7MstUjfLoErY/6ONsaCWewVEyZ9ZWlgbGHrYuTkkBAw kdjY0sECYYtJXLi3HijOxSEksJRR4u6ORewQTh+TRMP1I4wgVWwCxhKbly8B6xYRyJK4/W8L M0gRs8BkJonTL3eCFQkLBEu8e9zHCmKzCKhKfJh+jR3E5hVwl+g/2AMU5wBapyAxZ5LNBEbu BYwMqxhFU0uTC4qT0nMN9YoTc4tL89L1kvNzNzFCAujLDsbFx6wOMQpwMCrx8B74Fh8kxJpY VlyZe4hRgoNZSYQ3jishSIg3JbGyKrUoP76oNCe1+BAjEwenVAOj91KnQ9xf1NImfljdJbI0 a7mL0NeX+guZIxdWLwiaIuqiL/NmrbexdMv/uxc6H3nrav43VfnC4KYxx68kIL4vzzKVcaKU uVFy03XOnWEL5e39bdidwmp/Jd77FaB1rUhkd+g28fXiFZyHraZo9l198uHjsvxXmnN8cu6H NsafUVbUaOnqjlJiKc5INNRiLipOBAB40Ua+/gEAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Kyungmin Park Reviewed-by: Sylwester Nawrocki --- drivers/spi/spi-s3c64xx.c | 1 + 1 file changed, 1 insertion(+) 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)) {