From patchwork Wed Jul 3 18:02:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 13722657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6629BC30653 for ; Wed, 3 Jul 2024 18:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Message-Id:Date :Subject:Cc:To:From:Reply-To:MIME-Version:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sXoHFPAPIaQmDAF3KHW6XMwd8w4f2CrF1NLOeoXNBzw=; b=VKJL1A1Isn6+6Um041g9XvJhhD Us0/vduQeDHGoH78Dsy8cGhm1BkSOtErX0rQPe4A290+7rHibTT03aLToxKbUIBEW6gYojEqKuUlb vjUokbJTLSGDpmX4t3jHukRjNjwaEIDGaMzeXin/nEwgwERV2nmXIfMtJ0KxdPtvnJkvcHtn955lZ nVolaJE4kHrcytkHwgXdz6s30swMeUpAzbpXC+DCMTm4jAF3SThbU3Y/AWAFqJdQR32CPPTpXe7bp ThAgtRivPQnz2HpwYuFUDirU4UUD2wYiMON+vJC9i1ZCAvOmJylqj1Xy+Tx5iRQlLGiKtCwqHWM/c miVHE4lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP4KB-0000000B58N-3Oey; Wed, 03 Jul 2024 18:03:23 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP4Ju-0000000B4vy-2Tsj for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 18:03:08 +0000 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-6b5e4466931so3779426d6.0 for ; Wed, 03 Jul 2024 11:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1720029784; x=1720634584; darn=lists.infradead.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sXoHFPAPIaQmDAF3KHW6XMwd8w4f2CrF1NLOeoXNBzw=; b=OrFyndnboQ9DrsQpSmCQTjJHKsrtrCYy8G6Mz5J7vPPzeNm32RQHkWzQ5Y1SXLhmuK wD9dovP0fR4ce2oNWGUxwv5epxaDrazrt1oO8aBZhniH1OVFFW5xQWN/VH/4NHLL5n9a s5MGhBPUNTQWOj8FDf9CjT/PmUdxZGhrejAH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720029784; x=1720634584; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sXoHFPAPIaQmDAF3KHW6XMwd8w4f2CrF1NLOeoXNBzw=; b=wxn8Ennpee9054NnwnKX7AgAHjdM+nveKu8dXyGNfWGut9wVVyBW0yOYLoJXQRLjgO TXUNQKlD2i6VwsFBGSB0auFK/ba7QZpA43qjUeU4cGXulyRwndN7yDnF6rir6LALju7a YG/Q1lev985Yr8NoTWc5uNvNN1GglXmjI2wEG0lo6bWM7I7YKKLI8aUZFLlQ2T9QuZg/ fnclPGyuLMd9o1NwsdYFcAnAq+QOMG4Dh7PcWnLSC/eDAbl1C+egDW5PPzMSUs977tcy OfhNHxFLsG3Q2ZCoheZBNhwJJ2XxaujZGPc9HoetjLID7+Hj1C6fnUDwBexa+IaXVpHQ RYmw== X-Forwarded-Encrypted: i=1; AJvYcCXPiOR8S57zRMXuD0TuqN1Qmuy6+oQ6H/v3ROO40zzr8KV2F6MPwvuxYFWlfAJhfL/jL997sLllyebSSVYa8ae7z9MB22AAuiXKmHddUVRWLDaZEoM= X-Gm-Message-State: AOJu0YxdyhcriQneaJj23QBULQGJW9AM/w/zKzmZHZEQN24bWYm9OYhg 0iXq7HWrCUv6LKEyQNSgsW6pyrMop9OYLT4iZ3XZK556QygG5FxdyIrOpYKHkQ== X-Google-Smtp-Source: AGHT+IFDM4q/dSiohmeYRmbwqhg2/w1yGALoq+tXk+J4gFRMKAnMc5J7i/1W2ipQ4CiLed4t5I/lPw== X-Received: by 2002:a05:6214:202b:b0:6b0:8fe5:4a98 with SMTP id 6a1803df08f44-6b5b7125599mr156917486d6.36.1720029783811; Wed, 03 Jul 2024 11:03:03 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b59e5f1a6dsm55589626d6.83.2024.07.03.11.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 11:03:02 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Stanimir Varbanov , bcm-kernel-feedback-list@broadcom.com, jim2101024@gmail.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 00/12] PCI: brcnstb: Enable STB 7712 SOC Date: Wed, 3 Jul 2024 14:02:44 -0400 Message-Id: <20240703180300.42959-1-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_110306_657487_42B12C15 X-CRM114-Status: UNSURE ( 8.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org V2 Changes (note: four new commits): o Commit "dt-bindings: PCI ..." -- s/Adds/Add/, fix spelling error (Bjorn) -- Order compatible strings alphabetically (Krzysztof) -- Give definitions first then rules (Krzysztof) -- Add reason for change in maintainer (Krzysztof) o Commit "Use swinit reset if available" -- no need for "else" clause (Philipp) -- fix improper use of dev_err_probe() (Philipp) o Commit "Use "clk_out" error path label" -- Improve commit message (Bjorn) o Commit "PCI: brcmstb: Make HARD_DEBUG, INTR2_CPU_BASE offsets SoC-specific" -- Improve commit subject line (Bjorn) o Commit (NEW) -- Change field name from 'type' to 'model' -- Added as requested (Stanimir) o Commit (NEW) -- Check return value of all reset_control_xxx calls -- Added as requested (Stanimir) o Commit (NEW) "Get resource before we start asserting reset controllers" -- Added as requested (Stanimir) o Commit (NEW) -- "Remove two unused constants from driver" V1: This submission is for the Broadcom STB 7712, sibling SOC of the RPi5 chip. Stanimir has already submitted a patch "Add PCIe support for bcm2712" for the RPi version of the SOC. It is hoped that Stanimir will allow us to submit this series first and subsequently rebase his patch(es). The largest commit, "Refactor for chips with many regular inbound BARs" affects both the STB and RPi SOCs. It allows for multiple inbound ranges where previously only one was effectively used. This feature will also be present in future STB chips, as well as Broadcom's Cable Modem group. Jim Quinlan (12): dt-bindings: PCI: Add Broadcom STB 7712 SOC, update maintainer PCI: brcmstb: Use "clk_out" error path label PCI: brcmstb: Use bridge reset if available PCI: brcmstb: Use swinit reset if available PCI: brcmstb: Get resource before we start asserting reset controllers PCI: brcmstb: PCI: brcmstb: Make HARD_DEBUG, INTR2_CPU_BASE offsets SoC-specific PCI: brcmstb: Remove two unused constants from driver PCI: brcmstb: Don't conflate the reset rescal with phy ctrl PCI: brcmstb: Refactor for chips with many regular inbound BARs PCI: brcmstb: Check return value of all reset_control_xxx calls PCI: brcmstb: Enable 7712 SOCs PCI: brcmstb: Change field name from 'type' to 'model' .../bindings/pci/brcm,stb-pcie.yaml | 44 +- drivers/pci/controller/pcie-brcmstb.c | 394 +++++++++++++----- 2 files changed, 326 insertions(+), 112 deletions(-) base-commit: 55027e689933ba2e64f3d245fb1ff185b3e7fc81