Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp802166imm; Mon, 21 May 2018 14:45:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq7pmGHUrDpq2NRk+ZryerGFwSj1ww3aUQh2zSynx0mhyV65qP5BgO7pJwE+pBZNyvmPdya X-Received: by 2002:a63:6d4e:: with SMTP id i75-v6mr10923800pgc.154.1526939156444; Mon, 21 May 2018 14:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939156; cv=none; d=google.com; s=arc-20160816; b=ADJpqkB2xVWhAlhPTtB44v5xGyxo2ihGRccEJ4X/EJumBLlQYMDLo8EFaUYZDOQTzu rENjFYN3FWHpz8WWn1YQhaXxZys2A6msjU4t8KlWZ+mqFIfFhnJUmofa03TmstlW3Cxm PFqC58uqXZGnORyd6PpO7qBs4AUJ9h2PritMxXJl/RphS+kDaUz6S0vl50xb692sFwny WOVmGJqA/zHnbW+IOwDuaFLq/77wQac5+iL6TtYjDVwTFSVg54H8nMb8ujJTcgnluKN7 eQi/wpI2A3Y+W6mnSSP6kQodEkkLb8xQEcZivnWbhUsZzlSjHl8iQE6JWeDYbkjB2SKl rlMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=NfLV3jthL6RRVbsvIZhZzjAVmuBomJEPk0T63fTH7J8=; b=NGtRnhXcV8o+jGtmXpPEy2x8BfKXWDZmNnlC1QoK7GuCaik7Ak0Z5bWXeZk3ld0Ctv 1xGN3W4orRcVXvSoggVzempZ5/E8NCAWifwqi1lYjkBv2feYpqDVp5b6wvdBfQP0sbPv uwdDBljnC9eCYGQVerZVMDc+QeFfoVHVU8jckwntnw3ByRwtfihEOntBDzuPatqECZd9 teDEKNa17k1QdmIAB/fziEL8QeKSSkIsun0lSCGBCUY7kLoILq6fDZn7wYHYpdR7637o 4esmgYkeC9AcUzI4uXWqam+wro9jdctSDeL3xFQTJep8YdR38zM+ZwVbaF+tgfYtZWdN 0zKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q7wxvIUH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t127-v6si11313689pgc.519.2018.05.21.14.45.41; Mon, 21 May 2018 14:45:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=q7wxvIUH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932289AbeEUVod (ORCPT + 99 others); Mon, 21 May 2018 17:44:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:39046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932189AbeEUVYI (ORCPT ); Mon, 21 May 2018 17:24:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C82E920873; Mon, 21 May 2018 21:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937847; bh=l2Y8P0m+OOiSfDCHDk5xLoAHoVLvjZ1Y1wOPHO8GBGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q7wxvIUHCPrc5tZqreZgdvo99dgFY8zbRyGthzuyCUn0MU/2e+UO+LnqMJxMALUFS RIX38X4ksVWY9w2/mWx+uPm+WWWI51Y9vP2iDGY9bpGt3HPOOTq+6iejiGVl/Z7DRk Tzl6MV+lbGjE9+V+F2pHiVc5DS5EyPHYS6tBL/0A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Chevallier , Gregory CLEMENT Subject: [PATCH 4.16 030/110] ARM64: dts: marvell: armada-cp110: Add mg_core_clk for ethernet node Date: Mon, 21 May 2018 23:11:27 +0200 Message-Id: <20180521210506.440063348@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maxime Chevallier commit f43194c1447c9536efb0859c2f3f46f6bf2b9154 upstream. Marvell PPv2.2 controller present on CP-110 need the extra "mg_core_clk" clock to avoid system hangs when powering some network interfaces up. This issue appeared after a recent clock rework on Armada 7K/8K platforms. This commit adds the new clock and updates the documentation accordingly. [gregory.clement: use the real first commit to fix and add the cc:stable flag] Fixes: e3af9f7c6ece ("RM64: dts: marvell: armada-cp110: Fix clock resources for various node") Cc: Signed-off-by: Maxime Chevallier Signed-off-by: Gregory CLEMENT Signed-off-by: Greg Kroah-Hartman --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 9 +++++---- arch/arm64/boot/dts/marvell/armada-cp110.dtsi | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) --- a/Documentation/devicetree/bindings/net/marvell-pp2.txt +++ b/Documentation/devicetree/bindings/net/marvell-pp2.txt @@ -21,9 +21,10 @@ Required properties: - main controller clock (for both armada-375-pp2 and armada-7k-pp2) - GOP clock (for both armada-375-pp2 and armada-7k-pp2) - MG clock (only for armada-7k-pp2) + - MG Core clock (only for armada-7k-pp2) - AXI clock (only for armada-7k-pp2) -- clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk" - and "axi_clk" (the 2 latter only for armada-7k-pp2). +- clock-names: names of used clocks, must be "pp_clk", "gop_clk", "mg_clk", + "mg_core_clk" and "axi_clk" (the 3 latter only for armada-7k-pp2). The ethernet ports are represented by subnodes. At least one port is required. @@ -80,8 +81,8 @@ cpm_ethernet: ethernet@0 { compatible = "marvell,armada-7k-pp22"; reg = <0x0 0x100000>, <0x129000 0xb000>; clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>, - <&cpm_syscon0 1 5>, <&cpm_syscon0 1 18>; - clock-names = "pp_clk", "gop_clk", "gp_clk", "axi_clk"; + <&cpm_syscon0 1 5>, <&cpm_syscon0 1 6>, <&cpm_syscon0 1 18>; + clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk"; eth0: eth0 { interrupts = , --- a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi @@ -40,9 +40,10 @@ compatible = "marvell,armada-7k-pp22"; reg = <0x0 0x100000>, <0x129000 0xb000>; clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>, - <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 18>; + <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 6>, + <&CP110_LABEL(clk) 1 18>; clock-names = "pp_clk", "gop_clk", - "mg_clk", "axi_clk"; + "mg_clk", "mg_core_clk", "axi_clk"; marvell,system-controller = <&CP110_LABEL(syscon0)>; status = "disabled"; dma-coherent;