From patchwork Fri Dec 20 03:54:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinath Mannam X-Patchwork-Id: 1213892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="J7pcTxw2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47fFHd4v24z9sRf for ; Fri, 20 Dec 2019 14:54:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727135AbfLTDyf (ORCPT ); Thu, 19 Dec 2019 22:54:35 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:55265 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727063AbfLTDyf (ORCPT ); Thu, 19 Dec 2019 22:54:35 -0500 Received: by mail-pj1-f66.google.com with SMTP id ep17so3494853pjb.4 for ; Thu, 19 Dec 2019 19:54:35 -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=PoLshNDzrJ34zNiIcguyofrG58V/A2F+YEa2ClLgm0M=; b=J7pcTxw2cF3I1+9MhU6RvI2RCWdIsCwvKIRtRkrOgsADvQScweskX2fQ21XcvlXRGD YXMvNbK9KYj9Ixm2dXRnRNkFMtGW13JfRdGr/Sq6lQbIW/7+uJbZ10Htlt2lcW0iwhLR 2+o3yepAZjv1lsnqqssRQ+VSURCqIFraFtJHc= 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=PoLshNDzrJ34zNiIcguyofrG58V/A2F+YEa2ClLgm0M=; b=K1fvSmy1z+PEheimWKrRPm+ceGIwT8YqUCArjspzhnHlsHopYP55K21KQipxpYX2KU yR/ki1fSJ2f6CyvXg7va7wAQLzVrsCfVw09r38FpJj98SQ4ealhtq+bP07qNKGQEIiiB k+9KPsr2NZF8yIRK8qL3N98sKvmRxEoJsP6kchRXPM40AZLQcXXEl5YpCzUXbXipQ8lo i36yoDpJ9gT6H9FkmTfeKAl2k/ii9016ndnPxVarPqeK+5ZjzWhf1Q1ZOULv3c7tOYAE 3s+ZMBtHBCcjaFKW6q3w31wSqsNE0Uoqb0FYjhwgGPsHiqPEJQehA3dbsdyZqChu+ipu 1mig== X-Gm-Message-State: APjAAAVGG7ACcyDCtTiVyRQjYdy9MY1Yn653QnR1plLcC/YKgQhXDiPk FI5LVPaByJGBRR9PugAZcUhe3A== X-Google-Smtp-Source: APXvYqz5gbwIuxN8xP8ES2rSbow/hVGo5nLVK4ha6qxGjm0meTH2KyQMRtB2mycw7ogT+3QFA53bNg== X-Received: by 2002:a17:902:b90c:: with SMTP id bf12mr12676383plb.286.1576814074673; Thu, 19 Dec 2019 19:54:34 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id t65sm10522205pfd.178.2019.12.19.19.54.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Dec 2019 19:54:33 -0800 (PST) From: Srinath Mannam To: Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , Ray Jui , Rob Herring , Mark Rutland , Andy Shevchenko , Andrew Murray , Arnd Bergmann Cc: bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinath Mannam Subject: [PATCH v4 0/6] PAXB INTx support with proper model Date: Fri, 20 Dec 2019 09:24:12 +0530 Message-Id: <1576814058-30003-1-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patch series adds PCIe legacy interrupt (INTx) support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system. This is now modeled by using its own IRQ domain. Also update all relevant devicetree files to adapt to the new model. This patch set is based on Linux-5.5-rc1. Changes from v3: - Addressed Andrew Murray's comments - Add change to dispose VIRQ when disabling INTx Changes from v2: - Addressed Lorenzo's comments - Corrected INTx to PIN mapping. Changes from v1: - Addressed Rob, Lorenzo, Arnd's comments - Used child node for interrupt controller. - Addressed Andy Shevchenko's comments - Replaced while loop with do-while. Ray Jui (6): dt-bindings: pci: Update iProc PCI binding for INTx support PCI: iproc: Add INTx support with better modeling arm: dts: Change PCIe INTx mapping for Cygnus arm: dts: Change PCIe INTx mapping for NSP arm: dts: Change PCIe INTx mapping for HR2 arm64: dts: Change PCIe INTx mapping for NS2 .../devicetree/bindings/pci/brcm,iproc-pcie.txt | 48 +++++++-- arch/arm/boot/dts/bcm-cygnus.dtsi | 30 +++++- arch/arm/boot/dts/bcm-hr2.dtsi | 30 +++++- arch/arm/boot/dts/bcm-nsp.dtsi | 45 +++++++-- arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi | 28 +++++- drivers/pci/controller/pcie-iproc.c | 108 ++++++++++++++++++++- drivers/pci/controller/pcie-iproc.h | 6 ++ 7 files changed, 268 insertions(+), 27 deletions(-)