From patchwork Wed Aug 11 12:38:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 12431219 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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 E47F6C4320E for ; Wed, 11 Aug 2021 12:50:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8EF246056C for ; Wed, 11 Aug 2021 12:50:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8EF246056C Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3tyx6ggkNZAhRak2oZBF4S2e0lOuymNxK3Um6LpdBeQ=; b=bb8j+5iwuyMtsG m1I9zDbiB22BeNmxxnZYRrcudVN47Q77nrfrNTqINUvl8Lrcve9lPPxrtToiFrYNe/PPLIm20wrFX 6ajjk7zMVUptRvQ9JZvJ8QUBmdfQFUIa8793bAS74Pawmg9CkLlTSFo8E/eZK4+Ism8Lw90jIiq7U /SsIs01F3rJCopWhDugZxLermuh4felvRrPQAfvJC9yzxTbECa1TCagJUGjRUNVy5IMf1RVzpBMhE 9e7SrtDt+k9WqfH9zuuKATA9UTHx09NuRQ/cb0ixHZg5eMak6xCJ6z3Pv4LGj8GmA2RVorsD0DGJE 787ltxRBvWm2oEhwtPVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDnee-007BIs-UM; Wed, 11 Aug 2021 12:48:21 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDnVY-0077Dz-VM for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 12:39:00 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 17BCcpDx018046; Wed, 11 Aug 2021 07:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1628685531; bh=pHvrbMNdD6ZqFqlIVcWlZcPt0n1QzBmXRLI7yry//as=; h=From:To:CC:Subject:Date; b=iv504BLIU5mYMTDZbZ6J0lilFMqCmft/7aBf8s+xxcKkcyXyGd1jBmRKRb41NbH1i 4WNSzusDLeRLMDKvKKCFvEfuutNwN7uAdT85Nah3ehKais/FUBJx5qZPYYlPFj55TO +cf+v4+agb2nL6prbj58o+qGmPDmxCD3hAFLc2U0= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 17BCcpw5018400 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Aug 2021 07:38:51 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 11 Aug 2021 07:38:51 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 11 Aug 2021 07:38:51 -0500 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 17BCckKx053470; Wed, 11 Aug 2021 07:38:47 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Marc Zyngier , Rob Herring , Bjorn Helgaas CC: Lokesh Vutla , , , , , Subject: [PATCH 0/2] PCI: Add legacy interrupt support in pci-j721e Date: Wed, 11 Aug 2021 18:08:44 +0530 Message-ID: <20210811123846.31921-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210811_053857_270188_CB67F236 X-CRM114-Status: GOOD ( 11.84 ) 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 Patch series adds support for legacy interrupt in pci-j721e. There are two HW implementations of legacy interrupt controller, one specific to J721E and the other for J7200/AM64. In both these implementations, the legacy interrupt is connect to pulse interrupt of GIC and level to pulse is handled by configuring EOI register. EOI to convert level to pulse is broken in J721E due to an errata but is functional in J7200. Hence legacy interrupt support is not added for J721E v1 of the patch series can be found @ [1] Patch series is created on top of [2] Changes from v2: 1) Dropped legacy interrupt support for J721e 2) Enable legacy interrupts registers in .irq_enable callback Changes from v1: 1) Only the legacy interrupt specific part is sent as part of this series. Rest are split and sent as a separate series [2] 2) Created irq_chip for legacy interrupt and used it's ops for enabling, disabling the interrupts. [1] -> http://lore.kernel.org/r/20210325090936.9306-1-kishon@ti.com [2] -> https://lore.kernel.org/linux-omap/20210811123336.31357-1-kishon@ti.com/ Kishon Vijay Abraham I (2): dt-bindings: PCI: ti,j721e: Add bindings to specify legacy interrupts PCI: j721e: Add PCI legacy interrupt support for J7200 .../bindings/pci/ti,j721e-pci-host.yaml | 15 +++ drivers/pci/controller/cadence/pci-j721e.c | 119 ++++++++++++++++++ 2 files changed, 134 insertions(+)