From patchwork Wed Jan 25 11:09:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9536795 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 54C98601D7 for ; Wed, 25 Jan 2017 11:12:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 424EF27C0C for ; Wed, 25 Jan 2017 11:12:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 372C527D9B; Wed, 25 Jan 2017 11:12:29 +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 BF52E27C0C for ; Wed, 25 Jan 2017 11:12:28 +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 1cWLV2-0001ZQ-It; Wed, 25 Jan 2017 11:12:24 +0000 Received: from mail-wm0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cWLTk-0000bm-2n for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2017 11:11:06 +0000 Received: by mail-wm0-f47.google.com with SMTP id c85so20936048wmi.1 for ; Wed, 25 Jan 2017 03:10:42 -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=iFeco+KLqQmGjBqlwvFTMQN6Sfc2XocSqjK8mbRR3pI=; b=S8J4BkPEv0K1/xZPcCxt8Xbxd9Ayxk5K7TVivhVaISFx+hF243ECTZrj4FPJkbngzH cQPHZVAHd17nd1VVMCYak3nNhATpP1d1kfFKMNdL7w18MTxVM8F97160PcQKFYfK6eOe RfTak+Nn78szb+IE2/VukR315kYjmCa0O3FxSilI1r8czzLFND8rYIVzq9AbEzWb6XSm ZMXVS+OH3JSEN2k+E0px3uSzD0hJkUUbhL42RdmpVd4r9oxzedKvXqSQt4NJvS+WFh91 At9Uk8tpA+Og0wTa80P2gI8e8vzi+1YkuuJFkBAbGtk+/NXtU/R0aK8Oc8vG2eCYjAZi +h2w== 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=iFeco+KLqQmGjBqlwvFTMQN6Sfc2XocSqjK8mbRR3pI=; b=jgZ4VONw/3+5jond6/4pbqXco7+25IV+flo2eWq7us5qC9s7wc5ZAETeI+k3xzCQv+ fAf0Z3l9ntVcb//k9Rxf7pfvbpVDmF255Ef62pVehihcgw5+fGVm56sPE9wdQnzMEDpy To4PmNdi0qehkOTsLRNzHaTT9Lf43Nu9dtu2qSC0n7Ei/fJecob+CkGfwyqSvAkm5p/O h9yVDjvFA/FnqasaRJKy28p0y4d30kRQSc4376+LvikwaOiJ0j5VJ6Z2NvUryOkLOp5p vF9lfah5h+HdJt4UcUU2oiIezmeaE8ZpH1PYDUdXVKbibSKRsPV/++koVYiFyo1Zazau bfGg== X-Gm-Message-State: AIkVDXJ7oCGkhyyBDGQf7kaY8Kb2VxAF4KEVspfxXYrz8O+ggfRnkZ1kqZR+ZGpOLCsL2k5Q X-Received: by 10.28.94.8 with SMTP id s8mr21242103wmb.117.1485342581436; Wed, 25 Jan 2017 03:09:41 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o2sm16024957wra.42.2017.01.25.03.09.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 03:09:40 -0800 (PST) From: Alexandre Bailon To: nsekhar@ti.com Subject: [PATCH v3] ARM: davinci: Make the usb20 clock available to PM runtime Date: Wed, 25 Jan 2017 12:09:35 +0100 Message-Id: <20170125110935.20247-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-20170125_031104_287561_9A336C2F X-CRM114-Status: GOOD ( 10.15 ) 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 Since USB20 subsystem uses just one clock, there is no need of a con_id, so we are using NULL. 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;