From patchwork Thu Oct 12 20:52:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 825084 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MvL35VnA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yCjjY5H7Lz9sPr for ; Fri, 13 Oct 2017 07:53:05 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755144AbdJLUwh (ORCPT ); Thu, 12 Oct 2017 16:52:37 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:46377 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755121AbdJLUwc (ORCPT ); Thu, 12 Oct 2017 16:52:32 -0400 Received: by mail-pf0-f179.google.com with SMTP id p87so6598384pfj.3 for ; Thu, 12 Oct 2017 13:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=uEp3azcKbVhg0kwTURhNo+A02lnKtE3sSwV6C4RgeEo=; b=MvL35VnAqkqU2a+s8++82toZGTtOISIiWZt1V9iLTCI8cYuZ4ckvKLL/7v3yPLDnWN UuXYM6BvzZhY+Zp54yw8gLPEw40dcBEp0qaZCYu2LOGHI1tVu7qiRY7aJU3vPtfy3q21 RuiKUOSjwhcsxfBPD+nEveHu+eB1f2G3CY190= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uEp3azcKbVhg0kwTURhNo+A02lnKtE3sSwV6C4RgeEo=; b=dH4Cvb4Xf6Hbpl3WUzpxdxJlv3oRK1olY1xwy8uAf/94PFuonABeSHI76fh55yrnRR lodDL+d8V0kDZE9BIOH8ZGFZyO0LcxfqsHE1WK4I54UV3rnaxGPaZxYNhnDQm27ORVdF Uz4V3djBDheQCkeDynNpAvLVJT1LRRY3fDHyxS6oGiO32UpOwwGxHSXQMNYIqBST/QXy CddnwvpxxgU123AeeYARE9iGlt6lXn+k0aWfz9vgeGZhjAdveSb9h4rEbrAzQ06glXdc zuQzuAQXXxwoq2YA5QRk+4Ml5H67jdnnd2PO86ndYYElHWVNK3Iocg/MD2TZIVkpYeeb mq6A== X-Gm-Message-State: AMCzsaVHEdnKlwQ8JFPXbellOhI5gKxkx7/VOLvUR5/KXe9P9DaZ2QE5 a4VXjy+b33yPDeb+5i6FiM575g== X-Google-Smtp-Source: AOwi7QDcv+/Cikh5v4WB8kq+7bXwODfxLi8EsdkanLgWKaem4Z5R1KeKpPb+woV0x4k2rPzHZR3ZXg== X-Received: by 10.84.135.101 with SMTP id 92mr1212651pli.180.1507841551569; Thu, 12 Oct 2017 13:52:31 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.113.17]) by smtp.gmail.com with ESMTPSA id h1sm25048704pgp.37.2017.10.12.13.52.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 13:52:30 -0700 (PDT) From: Brian Norris To: Bjorn Helgaas Cc: Rajat Jain , Rob Herring , Mark Rutland , Frank Rowand , Shawn Lin , Heiko Stuebner , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Brian Norris Subject: [PATCH 0/3] PCI: rockchip: assert PERST# in S3 Date: Thu, 12 Oct 2017 13:52:17 -0700 Message-Id: <20171012205220.130048-1-briannorris@chromium.org> X-Mailer: git-send-email 2.15.0.rc0.271.g36b669edcc-goog Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, This patch series should mostly be self-descriptive, but it's motivated by the fact that I've found differing requirements from PCIe endpoint makers regarding the state of PERST# when in system suspend (S3). Additionally, some existing boards are not especially well suited for holding PERST# low in S3 (e.g., the pin is driven by a non-PMU GPIO, so it's hard or impossible to keep it asserted). So the solution is...give it a device tree property! Brian Brian Norris (3): Documentation/devicetree: Add pcie-reset-suspend property of/pci: Add of_pci_get_pcie_reset_suspend() to parse pcie-reset-suspend PCI: rockchip: Support configuring PERST# state via DT Documentation/devicetree/bindings/pci/pci.txt | 11 +++++++++++ drivers/of/of_pci.c | 25 +++++++++++++++++++++++++ drivers/pci/host/pcie-rockchip.c | 7 +++++++ include/linux/of_pci.h | 7 +++++++ 4 files changed, 50 insertions(+) Reviewed-by: Douglas Anderson