Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3342528ybl; Sun, 8 Dec 2019 12:58:25 -0800 (PST) X-Google-Smtp-Source: APXvYqw4ScGCzS8HQ4iB+whL0fQUCgHZrWkq8+r9jZB9ysGheT5k04H6pvaO1+RJ3OzKNZhI/sbT X-Received: by 2002:a9d:7a4d:: with SMTP id z13mr15745733otm.148.1575838704949; Sun, 08 Dec 2019 12:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575838704; cv=none; d=google.com; s=arc-20160816; b=tLPIeCymAjfgsTCGVDONKLJsl9JG7TwggGNYTSOmAEVt6vppiA9g1+7zWe0f+yH8cl zxSrJJPldwJf6/n23LPsBLH3eBkZb3JP7e9hLU1D3zQ6g4ECvQLF/m9LIA8KzmdU5wg8 29jBFiExZNDydLkPt0vpa+BcOOuyR3y7MEXaTC2XNHloJuJvlHCcg7rrcwdsrVEBM2RK CnSRGEuWcVAapvNFbavcfsbJuzgNdfdvcpvy6nA//mMPKXxDxX8nltfYcahE86OsCjGa nbwv94hdo3lUfL7/+1qIdpCHGTMxxaDBkesRZbcCcFZC0cq6Txh6PceouNkgKq5t8req ib3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4mjdyFhDqb5hqxAdpkRetdYcyZ61G714e64fzqDYooc=; b=OVo/ujV8YnGCrbPWNmt/TnTBQcGWPoCPP2ahYa7WPz5C7UHu0pw7yFE/YtiqmjvY3k SZZMqG6xtpbsNX0IWVewoBDpWcXvBcXICY9+GGFa5sHj3mI2l2RyicStD+VwyxuLi0Nd dGQ9Q8B+NpcpW2MvJlP/0zjApTHTg1RXWKNCIRE/IaN227T7tNHX9ICM2PEnQa6lMUV+ 9WmKPxRK6On492gAUWAVT+DdwSl6BUzX2PWkqA8WfvMVa5bV7itC4ENkm8tBcH+SmAda PSrfbSaTRrlp9bK23eendQi3RSXUH6JF8EioHExjC1NniY9FbN1lULqGskszSnq4rQtB ySjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 14si10985863oie.181.2019.12.08.12.58.01; Sun, 08 Dec 2019 12:58:24 -0800 (PST) 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; 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 S1726661AbfLHUzM (ORCPT + 99 others); Sun, 8 Dec 2019 15:55:12 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:40445 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbfLHUzM (ORCPT ); Sun, 8 Dec 2019 15:55:12 -0500 X-Originating-IP: 88.190.179.123 Received: from localhost (unknown [88.190.179.123]) (Authenticated sender: repk@triplefau.lt) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E6B7AC0005; Sun, 8 Dec 2019 20:55:07 +0000 (UTC) From: Remi Pommarel To: Neil Armstrong , Jerome Brunet , Kevin Hilman , Yue Wang Cc: Michael Turquette , Stephen Boyd , Lorenzo Pieralisi , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Remi Pommarel Subject: [PATCH 0/2] PCI: amlogic: Make PCIe working reliably on AXG platforms Date: Sun, 8 Dec 2019 22:03:18 +0100 Message-Id: <20191208210320.15539-1-repk@triplefau.lt> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PCIe device probing failures have been seen on some AXG platforms and were due to unreliable clock signal output. Setting HHI_MIPI_CNTL0[26] bit solved the problem. After being contacted about this, vendor reported that this bit was linked to PCIe PLL CML output. This serie adds a way to set this bit through AXG clock gating logic. Platforms having this kind of issue could make use of this gating by applying a patch to their devicetree similar to: clocks = <&clkc CLKID_USB &clkc CLKID_MIPI_ENABLE &clkc CLKID_PCIE_A - &clkc CLKID_PCIE_CML_EN0>; + &clkc CLKID_PCIE_CML_EN0 + &clkc CLKID_PCIE_PLL_CML_ENABLE>; clock-names = "pcie_general", "pcie_mipi_en", "pcie", - "port"; + "port", + "pll_cml_en"; resets = <&reset RESET_PCIE_PHY>, <&reset RESET_PCIE_A>, <&reset RESET_PCIE_APB>; Remi Pommarel (2): clk: meson: axg: add pcie pll cml gating PCI: amlogic: Use PCIe pll gate when available drivers/clk/meson/axg.c | 3 +++ drivers/clk/meson/axg.h | 2 +- drivers/pci/controller/dwc/pci-meson.c | 5 +++++ include/dt-bindings/clock/axg-clkc.h | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) -- 2.24.0