Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5917159imu; Mon, 26 Nov 2018 06:53:38 -0800 (PST) X-Google-Smtp-Source: AJdET5c9lxWpFxVt08Ogqy4TwiNKvRvmFKWJW+F8yQ/joKOy+BWkqQX7gxmhrN7NhUZ0LmuPmDPv X-Received: by 2002:a62:5dd1:: with SMTP id n78mr27890538pfj.58.1543244018318; Mon, 26 Nov 2018 06:53:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543244018; cv=none; d=google.com; s=arc-20160816; b=fgkJ2XhiFcqlpVU4h8WTX8kMIwDfvPEU0NT1GfJwf7W1RqdUZud7RXj+ofNxRLhQwH r7zOOfUHwAgl34HfUqW6GC02yztEq8W6Viax1c7Q0mijX/m+mNeGtN6hIgdOw8Kg7x2I 2hvwZ8C4eWNTYWyyisTWCeXJCWWM5DNw39nuXXdKCttwvqWdg1BVjyBx5BROCCP/2gNO KF/J7/zJWoOm+/Sk/8fpV44zcnR+CdBNhdXWbGPcJg38DMYVqce3qFpM969ViEPa9mGW vaYkAI5DPl9hl0p7QVJ2FuX/LoRR7Cb7Vg9V1I2Q3AoR3kODSrdNCa9eooFvQEt2P23E seew== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kFMebdd3rVDX4F6Wrh7uYRhO+8QF8tMUU/jfte+pZG4=; b=RB4ZjbzrdlWsWBct4A27ZYyc8n7sSTZdW618OcfYLy2/WdKnO+3xKPa2LKxg12Ak4j Nib+0X/DtlAk3Ym2nWbC6gJDPJd6/uPCyALryDK1jSg8xTJzcZ5w4nmKPNEJ/pV1Woog cI0aLN4+avqx+8+TaqraWJAu0/jm3AdJwgUBzrxoyaoRWr+JD/v18pNHblxkf2mVNPB3 zsVPKgS1twcNBs6scok7xHwRvySQGTqUAZMRuJOl1TiDaBsjVTLs8FrlxVbfWyBEqhXp q7Ky2yXnKUOKopg3LtAOsWSBdo9e5NzYmNlLvCd5e6suMN8wZH64Fl4QgWZoodGOipq7 Tf+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OORiYMsI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si459088plo.293.2018.11.26.06.53.05; Mon, 26 Nov 2018 06:53:38 -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=@google.com header.s=20161025 header.b=OORiYMsI; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726592AbeK0Bp0 (ORCPT + 99 others); Mon, 26 Nov 2018 20:45:26 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:56307 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbeK0BpZ (ORCPT ); Mon, 26 Nov 2018 20:45:25 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so18455145wmc.5 for ; Mon, 26 Nov 2018 06:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kFMebdd3rVDX4F6Wrh7uYRhO+8QF8tMUU/jfte+pZG4=; b=OORiYMsI47DjN8FRvdpYvwaaDHYcAYetF9/8pgwWigafI284I4oMtPNY5Yb+bfSc7j ZAhNRzdwsWvFhBzzUUAj5yH46W/rGulFcf6r5z/zMGxvQYCEVWa9hDbWlAtxpYCgqVtd UcxbLakWWthfiDkfwP6dkqUa9sM3eD7Yba2wu148qiXxpHy0lT45Cwf8EoxH8PXZkSEt 1tE6RCUaaBwSheHdQ8LVvouNLM6q6xr2voFSjI18GAtA3lgezqgZNWb+pkUi8M9z4vOH mK1ooIcWPy+I71Nmw38yLsMUhAXs1rzF29p2Kz5YF/fpjoCJDEBPgRlBOwYl2sj+HJRb DvJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kFMebdd3rVDX4F6Wrh7uYRhO+8QF8tMUU/jfte+pZG4=; b=In5ZE7T2oScXRYr+4dIJ17e21FeWD0Uk3k0vbw6yDw05SfsNAFtaPMHwCzIVU+MqTm uxncfb3mFD2Hc9U4qO0Wab5YKhMt4LdfNdv05HSkIhYRano31A17lnQhAEyM28WPQAkE dd2JcPpd0IKrsZyMvBL9gw5Ev5+620F8iZVZ/1Qdjyw5SSg1HZfU9kGrVW5VRx3csSf2 cINxMmBR1skE+NtQPNE3SkMNZxfntMLSWh1A7S3/fKFyoMFxxL0MawItoIYm/X8tzk10 lJhnnB1cITQeklw7p78v3wX12GR06TnHV3Hw/H7AyFaLUk0rEiO1wv2ees8eFgIhV2gE HSuQ== X-Gm-Message-State: AGRZ1gLySGqsjjyfyHquu9b/hfCrB7hKLb3iEQvBSouByV2yyqrCgl1n AU03DHowIQ9vo1uxqo5mwRJTwkGBFoFy4Uy15GyA X-Received: by 2002:a1c:4046:: with SMTP id n67mr23174655wma.123.1543243862859; Mon, 26 Nov 2018 06:51:02 -0800 (PST) MIME-Version: 1.0 References: <20181123141831.8214-1-miquel.raynal@bootlin.com> In-Reply-To: <20181123141831.8214-1-miquel.raynal@bootlin.com> From: Bjorn Helgaas Date: Mon, 26 Nov 2018 08:50:51 -0600 Message-ID: Subject: Re: [PATCH 00/12] Bring suspend to RAM support to PCIe Aardvark driver To: miquel.raynal@bootlin.com Cc: gregory.clement@bootlin.com, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , thomas.petazzoni@bootlin.com, devicetree@vger.kernel.org, Rob Herring , Mark Rutland , Lorenzo Pieralisi , linux-pci@vger.kernel.org, Linux Kernel Mailing List , linux-arm , antoine.tenart@bootlin.com, maxime.chevallier@bootlin.com, Nadav Haklai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 23, 2018 at 8:18 AM Miquel Raynal w= rote: > > Hello, > > As part of an effort to bring suspend to RAM support to Armada 3700 > SoCs (main target: ESPRESSObin), this series handles the work around > the PCIe IP. > > First, more configuration is done in the 'setup' helper as inspired > from the U-Boot driver. This is needed to entirely initialize the IP > during future resume operation (patch 1). > > Then, reset GPIO, PHY and clock support are introduced (patch 2-4). As > current device trees do not provide the corresponding properties, not > finding one of these properties is not an error and just produces a > warning. However, if the property is present, an error during PHY > initialization will fail the probe of the driver. > > Note: To be sure the clock will be resumed before this driver, a first > series adding links between clocks and consumers has been submitted, > see [1]. > > Patch 5 adds suspend/resume hooks, re-using all the above. > > Finally, bindings and device trees are updated to reflect the hardware > (patch 6-12). While the clock depends on the SoC, the reset GPIO and > the PHY depends on the board so the clock is added in the > armada-37xx.dtsi file while the two other properties are added in > armada-3720-espressobin.dts. > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/6= 14527.html > > Thanks, > Miqu=C3=A8l > > > Miquel Raynal (12): > PCI: aardvark: configure more registers in the configuration helper > PCI: aardvark: add reset GPIO support > PCI: aardvark: add PHY support > PCI: aardvark: add clock support > PCI: aardvark: add suspend to RAM support > dt-bindings: PCI: aardvark: describe the reset-gpios property > dt-bindings: PCI: aardvark: describe the clocks property > dt-bindings: PCI: aardvark: describe the PHY property > ARM64: dts: marvell: armada-37xx: declare PCIe reset pin > ARM64: dts: marvell: armada-3720-espressobin: declare PCIe reset GPIO > ARM64: dts: marvell: armada-37xx: declare PCIe clock > ARM64: dts: marvell: armada-3720-espressobin: declare PCIe PHY Hi Miqu=C3=A8l, Thanks for your work! If/when you post a v2, please run "git log --oneline" and adjust your subject lines to match the capitalization conventions, i.e., for PCI, start the description with a capital letter: "PCI: aardvark: Add suspend to RAM support". BTW, I notice you closed your email with "Miqu=C3=A8l", but the patches contain "Miquel". you *should* be able to use the correctly accented version of your name in the Signed-off-by lines. I have tripped over some tool issues, but if we pay attention, we should be able to get it to work. > .../devicetree/bindings/pci/aardvark-pci.txt | 9 + > .../dts/marvell/armada-3720-espressobin.dts | 4 + > arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 5 + > drivers/pci/controller/pci-aardvark.c | 214 ++++++++++++++++++ > 4 files changed, 232 insertions(+) > > -- > 2.19.1 >