From patchwork Mon Nov 14 04:36:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9426417 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 3951B60484 for ; Mon, 14 Nov 2016 04:55:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 264D4288B0 for ; Mon, 14 Nov 2016 04:55:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1628A288ED; Mon, 14 Nov 2016 04:55:36 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B75C5288B0 for ; Mon, 14 Nov 2016 04:55:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c69HT-0003lt-Jd; Mon, 14 Nov 2016 04:54:07 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c69HP-0003kz-J7; Mon, 14 Nov 2016 04:54:04 +0000 Received: by mail-pg0-f66.google.com with SMTP id e9so7593164pgc.1; Sun, 13 Nov 2016 20:53:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wn5oBqIKSV3Wh/UCVSxXbMNCN3fhFQkA6sUIx9R/XCQ=; b=bigszZvNnCQgCZi2lM5oWh5x1TVXK1FYBswm0JYva/Is7ZuV4nWdwM1rX0SFFhKgvr YVAxaZWX+w4e0p4/EuRSLgnchqON5F5dsUt+UB5ONPZhoyEjEOOlv9QNF4HID6xA0RIG tDmh4EwAQG30W1E8t1Wdm8SNlS16S5blw2ASmuc8tAXeFONwMOwetKwrYIGZXaGm4mKC Mc0MrHspDBXpG4J0qtMOZEfN7Gxh6G40zKftCqNSd9E0ibV8VoX1egoNwaCUV/P+0LNU ObtwMTuYdHs/nylZTBSMdr5mesXiU7VFRaVAr0bh/EpvdOiqEqHV2vGDnRKYn9too6y5 2YmQ== X-Gm-Message-State: ABUngvebkMl95by+09jjHMOEAd6H1AVQYC+UpEllDCGmp6olOEpArRWWTynaTx2XgeUFZA== X-Received: by 10.98.81.70 with SMTP id f67mr31730104pfb.179.1479098212337; Sun, 13 Nov 2016 20:36:52 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id cm6sm11933087pad.3.2016.11.13.20.36.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Nov 2016 20:36:51 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH] arm64: dts: rockchip: add gmac needed clk for rk3399 pd Date: Mon, 14 Nov 2016 12:36:39 +0800 Message-Id: <1479098199-20170-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161113_205403_708212_FE31DF31 X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhangqing@rock-chips.com, Jeffy Chen , dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Caesar Wang 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 From: Jeffy Chen This patch fixes that sometimes hang at start-up time of the system. As the below log: ... [ 11.136543] calling pm_genpd_debug_init+0x0/0x60 @ 1 [ 11.141602] initcall pm_genpd_debug_init+0x0/0x60 returned 0 after 11 usecs [ 11.148558] calling genpd_poweroff_unused+0x0/0x84 @ 1 In some cases, the rk3399 should turn off the gmac power domain to save power if some boards didn't register the gmac device node for rk3399. Then, rk3399 need to make sure the gmac's pclk enabled if we need operate the gmac power domain. (Due to the NOC had enabled always) Signed-off-by: Jeffy Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 172e7ed..e8b9df9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -825,7 +825,8 @@ /* These power domains are grouped by VD_LOGIC */ pd_gmac@RK3399_PD_GMAC { reg = ; - clocks = <&cru ACLK_GMAC>; + clocks = <&cru ACLK_GMAC>, + <&cru PCLK_GMAC>; pm_qos = <&qos_gmac>; }; pd_vio@RK3399_PD_VIO {