From patchwork Mon Nov 30 21:11:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 11941321 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,MIME_NO_TEXT, SPF_HELO_NONE,SPF_PASS,T_TVD_MIME_NO_HEADERS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CA9DC63777 for ; Mon, 30 Nov 2020 21:12:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15B1F206A5 for ; Mon, 30 Nov 2020 21:12:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="YsvxNkkQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728178AbgK3VMi (ORCPT ); Mon, 30 Nov 2020 16:12:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729243AbgK3VMg (ORCPT ); Mon, 30 Nov 2020 16:12:36 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03BF7C0613D3 for ; Mon, 30 Nov 2020 13:11:56 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id m9so10862094pgb.4 for ; Mon, 30 Nov 2020 13:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=qMgB8usSBwyEogyGsMziFs4UuTCNB2pcZ/WPEIOccA0=; b=YsvxNkkQAdXoSFhxPDR5wHwf0d9EHjezlN6CHTFwropGKIMxMVW4lpXOkY4FRJxvRX n1htlGIFhEQ/boiwRzLGg0iwEnck6uzwVmgf6RSQQvhE0xTJfqy8poZ6gYHM9uNMU82X FclgDZ/ytH1gQgYjZ9PfKBYxQXuACfkbCZxZM= 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=qMgB8usSBwyEogyGsMziFs4UuTCNB2pcZ/WPEIOccA0=; b=JqD+zbPM4YLxmIr/8tM5D0r3C3OfMwFtO29qOboJVjiLIT4J/fyuY2ehKiwRWtEzJy VKmX/tSa/5hlKWwcWmWxGkZXV2jxVSMJnSyIHJz4Sg/HVdWqLGoEKSJfupXVWOBC/3G5 mhrnCPKgHcaTg7zutcq194KjSc5A/WMo/7aSD+gVwprDB+xi/CLYSuGRPkx+lCJ9v9Nx UCfG5ufTwAPvkIQ91lfSTJ3pcGryTKfZ8yEvRP1Rj4Oewe8DnzWsJcHV6Le8yW/pLWS+ TpWiEaF/R5u8V6/s3O7y/rVV8EalJxLgBTrfsaA+epeNW+k46N6QovsnNRX3O6eDHt+D kQ0g== X-Gm-Message-State: AOAM531l1q9iCQv/DvRpiL9kV16UNDAtyUCLpIKS1jV+Aw3HBqGIG9AG pckC8nEWcrkUVDt1bd966ODcekyizsIq6PSeDWXkI0hD2hz6qIfOHcUiZj9yvKU7xtO3/ps13NT FIbGFy0e1OSPG1EN3SM7W2ErbztE7oeXyP6kAS0CWSZbDG9rxOXV6v0wYIXARu2MsQOXn/Gm4wT TzdlU7 X-Google-Smtp-Source: ABdhPJxd4yJEv3hQRv/8j06c/RxanWnkUmo9Ev/BhEeCZHHVPk7YAsqLxNa+8EFM/Lvz99JZpgALJg== X-Received: by 2002:a65:42c7:: with SMTP id l7mr4671889pgp.438.1606770714916; Mon, 30 Nov 2020 13:11:54 -0800 (PST) Received: from stbsrv-and-01.and.broadcom.net ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id m7sm18320441pfh.72.2020.11.30.13.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 13:11:54 -0800 (PST) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , broonie@kernel.org, bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list), linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), Rob Herring Subject: [PATCH v2 0/6] brcmstb: add EP regulators and panic handler Date: Mon, 30 Nov 2020 16:11:37 -0500 Message-Id: <20201130211145.3012-1-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org v2 -- Use regulator bulk API rather than multiple calls (MarkB). v1 -- Bindings are added for fixed regulators that may power the EP device. -- The brcmstb RC driver is modified to control these regulators during probe, suspend, and resume. -- 7216 type SOCs have additional error reporting HW and a panic handler is added to dump its info. -- A missing return value check is added. Jim Quinlan (6): dt-bindings: PCI: Add bindings for Brcmstb EP voltage regulators PCI: brcmstb: Add control of EP voltage regulator(s) PCI: brcmstb: Do not turn off regulators if EP can wake up PCI: brcmstb: Give 7216 SOCs their own config type PCI: brcmstb: Add panic/die handler to RC driver PCI: brcmstb: check return value of clk_prepare_enable() .../bindings/pci/brcm,stb-pcie.yaml | 12 + drivers/pci/controller/pcie-brcmstb.c | 219 +++++++++++++++++- 2 files changed, 228 insertions(+), 3 deletions(-)