Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758796Ab3DAN7I (ORCPT ); Mon, 1 Apr 2013 09:59:08 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:43974 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758586Ab3DAN63 (ORCPT ); Mon, 1 Apr 2013 09:58:29 -0400 X-AuditID: cbfee68e-b7f946d000001e37-e8-51599284e7f4 From: Vivek Gautam To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, balbi@ti.com, stern@rowland.harvard.edu, sarah.a.sharp@linux.intel.com, rob.herring@calxeda.com, kgene.kim@samsung.com, kishon@ti.com, dianders@chromium.org, t.figa@samsung.com, p.paneri@samsung.com Subject: [PATCH v3 08/11] usb: phy: samsung: Enable runtime power management on usb3phy Date: Mon, 01 Apr 2013 19:24:07 +0530 Message-id: <1364824448-14732-9-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1364824448-14732-1-git-send-email-gautam.vivek@samsung.com> References: <1364824448-14732-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsWyRsSkTrdlUmSgwZuTQhYH79dbnF12kM2i efF6NoveBVfZLC487WGzuLxrDpvF7CX9LBYzzu9jsli0rJXZ4vyWTiaLwysOMFk0nzjFbDHh 9wU2i/UzXrM48Hks+HyF3WN2w0UWj3knAz32z10D5N39wejRt2UVo8fxG9uZPD5vkgvgiOKy SUnNySxLLdK3S+DK+Hf5E2vBV46K3xPXsTcwnmbvYuTgkBAwkbhzWauLkRPIFJO4cG89Wxcj F4eQwFJGiaNHj7BAJEwkdn3byASRWMQo8fTwYmYIZwqTxLHHZxlBqtgEdCWa3u5iBJkqIhAn sXmCMEiYWaCLSWLpUXGQsLBApETH/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CHIxKPLwRFyIChVgTy4orcw8xSnAwK4nwrsiMDBTiTUmsrEotyo8vKs1JLT7E mAx01URmKdHkfGD6yCuJNzQ2MTc1NrU0sTAxsyRNWEmc92CrdaCQQHpiSWp2ampBahHMFiYO TqkGxinT+jlzy54/uHFccqr4In9PWZtOYSae4rrDveXODAynNxlyblm7+lM51w95zS2p8+/5 +r2Y9e1Qd202x9ZjQV8qc1NCnb2PL2BSWmZzbtXPTavM9TnOGivzt77tMTecKnDSROf1lpiw oNd+AVeedDsK6RaI6ydsUvsqtUX2TNLyE8Gv21hYlViKMxINtZiLihMBGhgd+BUDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1345 Lines: 46 Enable autosuspending of Samsung usb3.0 PHY Signed-off-by: Vivek Gautam --- drivers/usb/phy/phy-samsung-usb3.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/phy/phy-samsung-usb3.c b/drivers/usb/phy/phy-samsung-usb3.c index 54f6418..a713585 100644 --- a/drivers/usb/phy/phy-samsung-usb3.c +++ b/drivers/usb/phy/phy-samsung-usb3.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -287,6 +288,9 @@ static int samsung_usb3phy_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sphy); + pm_runtime_set_active(&pdev->dev); + pm_runtime_enable(&pdev->dev); + return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB3); } @@ -296,6 +300,8 @@ static int samsung_usb3phy_remove(struct platform_device *pdev) usb_remove_phy(&sphy->phy); + pm_runtime_disable(&pdev->dev); + if (sphy->pmuregs) iounmap(sphy->pmuregs); if (sphy->sysreg) -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/