From patchwork Tue Jan 24 10:32:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9534833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BEDC760434 for ; Tue, 24 Jan 2017 10:34:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B118726B41 for ; Tue, 24 Jan 2017 10:34:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3B5926C2F; Tue, 24 Jan 2017 10:34:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F54C26B41 for ; Tue, 24 Jan 2017 10:34:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVyQh-0002va-Vc; Tue, 24 Jan 2017 10:34:23 +0000 Received: from mail-wm0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVyQH-0002eg-IH for linux-arm-kernel@lists.infradead.org; Tue, 24 Jan 2017 10:34:00 +0000 Received: by mail-wm0-f49.google.com with SMTP id c206so201640549wme.0 for ; Tue, 24 Jan 2017 02:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=zaD42CnxkoAtHclo4B0S3AK4UBaJmmPQ3lMxZiY515k=; b=PhqXd4dG5TfwTRWZAJDDEyHBDBfKX1EBENsxJNlEV2526CmDOmIlNmvUzRINcli9NN L+NL9+kO3Pcqxhy7Gy5onj4HYCzkzrTMSrCFmQJ67HyFaijYYervidMD+rkVzvPUJ8id SwTUA3ImOwUWZD34pPbdVZr5k26w9G8fVNLejhsCG9K7lu0hbgy4OlzWyTN28InB92Nc tlztIe2NRinhCt9JYOsglZw+Ci6iVALq+PC7le53vhvq04Vse6KSl2gqu+Xf/6QpUnHE 1zJf5TJTCgBzJTupOBHaGJ+uxBFgZL8PZ6E9XyDeNAVmabnOLkL8ppBlTZ7Rw0ovctia xCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zaD42CnxkoAtHclo4B0S3AK4UBaJmmPQ3lMxZiY515k=; b=isxTE4o2b0hSEGZV+XLp7Enh5CiyP7COG0XKE2bSAciLqLWZSYwv6MCpxnTOP0tq5n 9VqqusfJA/R7gVpNEn0+VLaG9nllXP/PssMphDZlIiTnuZWm4dHzlgrs0kRMPprMh7mE eobK+nxBlT3qut5oCX5Mffr3d+tL/Mx8skCozVKOUDo+GsGe7tPDPpqB+KJcBjhSp5U+ p7WbmBQr0AdL7mJg8rhGyuvD7qmLX/K4zPkBbWK3EoEQgj/HPytB7YWEcKQEbUbf+UU3 04EMk2uaFTuLvUIzeep/hIyattHT2DDBfDJSP6qIUzI1ATIK4Qh4avYHIuOkG2BrjcgO pDxQ== X-Gm-Message-State: AIkVDXJwjOoky+Keab/681I8g9jgIYaQPphmfuI/xMb3gzSe44Qteg9p453wRBoRDSeiy5zs X-Received: by 10.28.67.134 with SMTP id q128mr16545344wma.34.1485253955633; Tue, 24 Jan 2017 02:32:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n13sm15712869wrn.40.2017.01.24.02.32.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Jan 2017 02:32:35 -0800 (PST) From: Alexandre Bailon To: nsekhar@ti.com Subject: [PATCH v2] arm: davinci: Make the usb20 clock available to PM runtime Date: Tue, 24 Jan 2017 11:32:26 +0100 Message-Id: <20170124103226.15377-1-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170124_023357_762888_0BA885B9 X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sergei.shtylyov@cogentembedded.com, tony@atomide.com, khilman@baylibre.com, linux-usb@vger.kernel.org, Alexandre Bailon , ptitiano@baylibre.com, linux-omap@vger.kernel.org, b-liu@ti.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add usb20 to the list of clock supported by PM runtime. Signed-off-by: Alexandre Bailon Suggested-by: Sekhar Nori --- arch/arm/mach-davinci/da830.c | 2 +- arch/arm/mach-davinci/da850.c | 2 +- arch/arm/mach-davinci/usb-da8xx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index 073c458..2cfd9d7 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c @@ -412,7 +412,7 @@ static struct clk_lookup da830_clks[] = { CLK("davinci-mcasp.0", NULL, &mcasp0_clk), CLK("davinci-mcasp.1", NULL, &mcasp1_clk), CLK("davinci-mcasp.2", NULL, &mcasp2_clk), - CLK("musb-da8xx", "usb20", &usb20_clk), + CLK("musb-da8xx", NULL, &usb20_clk), CLK(NULL, "aemif", &aemif_clk), CLK(NULL, "aintc", &aintc_clk), CLK(NULL, "secu_mgr", &secu_mgr_clk), diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 9780829..5fe32ae 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -559,7 +559,7 @@ static struct clk_lookup da850_clks[] = { CLK("ti-aemif", NULL, &aemif_clk), CLK("davinci-nand.0", "aemif", &aemif_nand_clk), CLK("ohci-da8xx", "usb11", &usb11_clk), - CLK("musb-da8xx", "usb20", &usb20_clk), + CLK("musb-da8xx", NULL, &usb20_clk), CLK("spi_davinci.0", NULL, &spi0_clk), CLK("spi_davinci.1", NULL, &spi1_clk), CLK("vpif", NULL, &vpif_clk), diff --git a/arch/arm/mach-davinci/usb-da8xx.c b/arch/arm/mach-davinci/usb-da8xx.c index 9a6af0b..9b66768 100644 --- a/arch/arm/mach-davinci/usb-da8xx.c +++ b/arch/arm/mach-davinci/usb-da8xx.c @@ -275,7 +275,7 @@ int __init da8xx_register_usb20_phy_clk(bool use_usb_refclkin) struct clk *parent; int ret; - usb20_clk = clk_get(&da8xx_usb20_dev.dev, "usb20"); + usb20_clk = clk_get(&da8xx_usb20_dev.dev, NULL); ret = PTR_ERR_OR_ZERO(usb20_clk); if (ret) return ret;