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: 9534827 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 587ED60434 for ; Tue, 24 Jan 2017 10:32:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AE5626B41 for ; Tue, 24 Jan 2017 10:32:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FB8826C2F; Tue, 24 Jan 2017 10:32:41 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A903626B41 for ; Tue, 24 Jan 2017 10:32:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750837AbdAXKci (ORCPT ); Tue, 24 Jan 2017 05:32:38 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38262 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbdAXKch (ORCPT ); Tue, 24 Jan 2017 05:32:37 -0500 Received: by mail-wm0-f49.google.com with SMTP id r144so201262716wme.1 for ; Tue, 24 Jan 2017 02:32: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=HoYpG8EHtLBNcJ/U6WMdFmY9owruYP9HxIF15MDNtiC/OGoeK7Vo6ZUw85dEJ043ST vycYk7SnkItqEF3AHiaTgG6MwMg+K6B1TsmZEUOtj4VlCHgg5xmynpa+sapde1WOG3nK mHx+fM65BYK5HTZmO8SfqUE1+FQQaK+4CvncmeTHmlcp7p3vodS0BzbF5OWD1hzzbvjZ B56gK634q98LnyCFqO1yLsXu/kTv9fFIcA4YloKiI9BtvUjO20lRbBkgsaPwE+Z6HYaF AZhqRiKRxvSOdi+4Q/tTSik1WTQn/YW13JQ3Cl5xd0DR7Ika2opy3UxUOlDRd0ALTCDG 5lWg== X-Gm-Message-State: AIkVDXKxCcWQtGAO+uvFELFQCiN8XwHvhY+lDnLlBid4VJiunBwdVYGAC3+oO6WVd2OL+EpY 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 Cc: khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, linux-usb@vger.kernel.org, b-liu@ti.com, sergei.shtylyov@cogentembedded.com, linux-arm-kernel@lists.infradead.org, Alexandre Bailon 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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;