Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp296437ybl; Fri, 24 Jan 2020 00:06:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzwbHd0TgqJwQtyVUSv8EC4QQd3z8RqMzTd1NF8vV6T9mXF9kFHXBrpeEi1wEX7f+4DWe2b X-Received: by 2002:a05:6830:18d4:: with SMTP id v20mr1847862ote.29.1579853183072; Fri, 24 Jan 2020 00:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579853183; cv=none; d=google.com; s=arc-20160816; b=g4otv/X0o3lIsYRTwX0UJEqOEVk6njQdvnpAX5Izaba/ygiYJXWttMF/0l0G52qUJ/ lk0uoYJ3A0uUdftPgGC4gwTHYi0Quyi7dIYLcUeMT62/pEdRj3LEplp5EJZVt+bKZRZK Dq9CbtQkrFleJIu36yLEFl/aL2HkaxO5rH2Iq3fzebs19yzkwrL46si/HQPRSY3r0Bzt xwlnm9OAGNmDM9+g9Ni7dbQkxU/OvniF2D+09A6+lGA27jtszyIhNyesGgKfqdCxxymV QUFYcGqwp6bmf8ztX6SHUyYClN5dCVtVTBBKk/rSwMLICBc/q8qn/ccbJnIsCnqzAuuw rUMQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=OlLbxKAm24kk7BqwIB6TdUq5++JUPjcTVNPlce6GGcA=; b=KEYL6FLKqRvXvmqU/QKDnVydZT//G1kqQq2u3D6H4PC1w2MCGBISaVPoloSV8JM1aS uxg4uFSOBn9azgnQifwi8/wGnUFuT57L+ZHUvzCx0e8vI6K8nv2i+In2xbgX3KNVsCM8 GRUK7HoHPnJW1PIRpUKokHrSC1owVSDRvr4LuhQ53TDS5fNCTkN+CJ7mLhkvkLXNqgjM QosThfeTi4rEiWktq8tFt+EVOD/zwux9pxqjGfZMxS1/Df0U8Lj6ZRDJwQ4pJ5PnUymp 8hgLKGk82gs4q/U9sDYOaTYG7y7yh2KJnY9Q4w9fCoV9fOrk0XdHDMK9/8n1dZMTUDCF eDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yYskb3nR; 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 x68si2157645oia.227.2020.01.24.00.06.11; Fri, 24 Jan 2020 00:06:23 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=yYskb3nR; 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 S1729304AbgAXICR (ORCPT + 99 others); Fri, 24 Jan 2020 03:02:17 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39718 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727163AbgAXICR (ORCPT ); Fri, 24 Jan 2020 03:02:17 -0500 Received: by mail-wr1-f68.google.com with SMTP id y11so823039wrt.6 for ; Fri, 24 Jan 2020 00:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OlLbxKAm24kk7BqwIB6TdUq5++JUPjcTVNPlce6GGcA=; b=yYskb3nRQojn0YR1a1/P0UHdl5YnI3pCUdr4PPlNU5LW0kRu1w3guS8Ad6Z3JSiCyx /gE+u5fYheiNhvXdQYXXJReZrGE36JOdZApYsKt6rlQ2V71bSakZ+hxzFdiu0pnPB9w4 SPwrcVj7Pa6Ex7DwmVPDOpp1NEQElepcVu/GVtHzF6NdPeFeOI3VzAMXQ/34f4Bvu0aW feJh3i9mUJuyShUjnLBz2BKn0yjstr9M8ASaDXDMmPUPzIMgKfIRQ51VxNuiuJjGxP0x 7zGobXhRWAmeJ6mKNpYcqy7g8XHLqSA7o6PrxAivqHVguWFNWbhVjqqiFtchypjYFL1s ci3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=OlLbxKAm24kk7BqwIB6TdUq5++JUPjcTVNPlce6GGcA=; b=iOQA5HoCT+BIQvDSUixEzt/6DEGGac0d0Xl24YZHfZq0tAGjRhsZb0GOG43T6xQvlT SK1MwAqJSO+OTe/8f+skkz0M2jjlvmjGraNfZMrX9lEU55B3M7XufkDlAXOhFUA0jPA6 oRGU4DRErikzV2sNdBs3JuYj0m3G5ndNrgREgmzvJEF8xx3BTGWvPhZ9j+0WOJi0E0or oDREDcwdMYMeyWAy3rZPJSDGglvqIFWCgV3eN3uIbHiejcKIlppJ0QDGwE5B0Nrw2uOx vwRQW3s3Pk1sTxZPJT6/WYHJF2hI3KyOBU8PCMvlzmYqJCFMi7sBPnpAS79QzwSuSTED zHhQ== X-Gm-Message-State: APjAAAXhZdwbKn3tmAtrYCujQUvPIg6UgCoiUe+WfVhUCyD7UKm+QxCc 2BcEwjCyx9YAd49PcKQoLBLKJg== X-Received: by 2002:adf:ec0d:: with SMTP id x13mr2722298wrn.400.1579852934189; Fri, 24 Jan 2020 00:02:14 -0800 (PST) Received: from [10.1.2.12] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id p5sm6201089wrt.79.2020.01.24.00.02.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jan 2020 00:02:13 -0800 (PST) Subject: Re: [PATCH v6 0/7] PCI: amlogic: Make PCIe working reliably on AXG platforms To: Remi Pommarel , Kishon Vijay Abraham I , Yue Wang , Kevin Hilman , Lorenzo Pieralisi , Bjorn Helgaas , Martin Blumenstingl , Rob Herring Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org References: <20200123232943.10229-1-repk@triplefau.lt> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkEpQ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Eo561r6pSHr5JGHe8hwBQUcNPd/9l 2ynP57YTSE9XaGJK8gIuTXWo7pzIkTXfN40Wh5jeCCspj4jNsWiYhljjIbrEj300g8RUT2U0 FcEoiV7AjJWWQ5pi8lZJX6nmB0lc69Jw03V6mblgeZ/1oTZmOepkagwy2zLDXxihf0GowUif GphBDeP8elWBNK+ajl5rmpAMNRoKxpN/xR4NzBg62AjyIvigdywa1RehSTfccQARAQABwsBf BBgBAgAJBQJNWQbPAhsMAAoJEBaat7Gkz/iuteIH+wZuRDqK0ysAh+czshtG6JJlLW6eXJJR Vi7dIPpgFic2LcbkSlvB8E25Pcfz/+tW+04Urg4PxxFiTFdFCZO+prfd4Mge7/OvUcwoSub7 ZIPo8726ZF5/xXzajahoIu9/hZ4iywWPAHRvprXaim5E/vKjcTeBMJIqZtS4u/UK3EpAX59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: <64b5d857-569a-ab2e-a467-9cdb47cf20e4@baylibre.com> Date: Fri, 24 Jan 2020 09:02:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200123232943.10229-1-repk@triplefau.lt> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 24/01/2020 00:29, Remi Pommarel wrote: > PCIe device probing failures have been seen on AXG platforms and were > due to unreliable clock signal output. Setting HHI_MIPI_CNTL0[26] bit > in MIPI's PHY registers solved the problem. This bit controls band gap > reference. > > As discussed here [1] one of these shared MIPI/PCIE analog PHY register > bits was implemented in the clock driver as CLKID_MIPI_ENABLE. This adds > a PHY driver to control this bit instead, as well as setting the band > gap one in order to get reliable PCIE communication. > > While at it add another PHY driver to control PCIE only PHY registers, > making AXG code more similar to G12A platform thus allowing to remove > some specific platform handling in pci-meson driver. > > Please note that CLKID_MIPI_ENABLE removable will be done in a different > serie. > > Changes since v5: > - Add additionalProperties in device tree binding documentation > - Make analog PHY required > > Changes since v4: > - Rename the shared MIPI/PCIe PHY to analog > - Chain the MIPI/PCIe PHY to the PCIe one > > Changes since v3: > - Go back to the shared MIPI/PCIe phy driver solution from v2 > - Remove syscon usage > - Add all dt-bindings documentation > > Changes since v2: > - Remove shared MIPI/PCIE device driver and use syscon to access register > in PCIE only driver instead > - Include devicetree documentation > > Changes sinve v1: > - Move HHI_MIPI_CNTL0 bit control in its own PHY driver > - Add a PHY driver for PCIE_PHY registers > - Modify pci-meson.c to make use of both PHYs and remove specific > handling for AXG and G12A > > [1] https://lkml.org/lkml/2019/12/16/119 > > Remi Pommarel (7): > dt-bindings: Add AXG PCIE PHY bindings > dt-bindings: Add AXG shared MIPI/PCIE analog PHY bindings > dt-bindings: PCI: meson: Update PCIE bindings documentation > arm64: dts: meson-axg: Add PCIE PHY nodes > phy: amlogic: Add Amlogic AXG MIPI/PCIE analog PHY Driver > phy: amlogic: Add Amlogic AXG PCIE PHY Driver > PCI: amlogic: Use AXG PCIE > > .../bindings/pci/amlogic,meson-pcie.txt | 22 +- > .../amlogic,meson-axg-mipi-pcie-analog.yaml | 35 ++++ > .../bindings/phy/amlogic,meson-axg-pcie.yaml | 52 +++++ > arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 16 ++ > drivers/pci/controller/dwc/pci-meson.c | 116 ++--------- > drivers/phy/amlogic/Kconfig | 22 ++ > drivers/phy/amlogic/Makefile | 12 +- > .../amlogic/phy-meson-axg-mipi-pcie-analog.c | 188 +++++++++++++++++ > drivers/phy/amlogic/phy-meson-axg-pcie.c | 192 ++++++++++++++++++ > 9 files changed, 543 insertions(+), 112 deletions(-) > create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-axg-mipi-pcie-analog.yaml > create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-axg-pcie.yaml > create mode 100644 drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c > create mode 100644 drivers/phy/amlogic/phy-meson-axg-pcie.c > You forgot to keep the Reviewed-by/Acked-by tags from the previous reviews. Neil