Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp730078rdg; Wed, 11 Oct 2023 04:06:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/OfW5Bj9lUUJYCvuIVsszOZhW5DLRC0b8cM/F/zH107cExT3RnPeECUDADIFD0sb9hGnR X-Received: by 2002:a17:90b:4d82:b0:274:4f21:deae with SMTP id oj2-20020a17090b4d8200b002744f21deaemr15773729pjb.35.1697022403946; Wed, 11 Oct 2023 04:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697022403; cv=none; d=google.com; s=arc-20160816; b=EVSFurSwCo6zcIbWsW9vhPdDx68SB8qbMQti2cfALtWrLk07QQvsAdlHYoVuwB0o0u 1hkEWqse495z3kdWN8VJPkhr1JI5VtwQbyf6sXEpZUm1i68ksIV+pZqOlvEDtdkMiIpN WUns6fGnmavqDQJApm1ay+7JC5y5VVmkDk4TET3sRdMMbWINJ/TA+5En7iAjZIkt5s1G f/mtd4ixVN46fNjJ/Z1qBUWNkm/bvGE4ALfEf55rE5+W37VPgZJ+IN1gYv7f9DDpj/0m SRWVM2S64cFE97ZZccAwe9KQ7Mam3gENBpMlHR2rGY0UVyEVLuiCG7klh7xa+r7OeN+3 Z10Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=L3B58wd2weHwLeYZ+jHDzF78G28FmJHW/A3v5F+2YHk=; fh=ld3UXb1S5Y4IkunPfuj6e9Ppmc+fy6ncC+eQtrVLfK8=; b=WdGmgap1beTeG/XeRAGOaIaf1LRkaSf/Ckn12iY2g31TYsMVX3kd4ScuFXbfBwOSrM XA3NlbfJUHmILe4siLGwbpL/rThhl4cNsbZYCN6dj+VWQ7KfxY5Lq6p2fVe7B4rU4+mo 54TqO6z2hQfWzLcJwYjAyM/VbzKFx3stI7RXxPnD5WtYiCLTvJCxRURm8L4Kk+8v9OOx DudhxbqAYlYDn/PU4Q3MuAKxHccIRFqksNRHLYIH75HN57nYzcM19NQ5nFRobSy0VQSw XAo/pRDTohUwSuqw+gXrs6YON6/Z5vKtFy3jKwIIQUZZoAUM6L7VCv4waTIwiPDGK/37 TCWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id lr12-20020a17090b4b8c00b00274681ee3adsi16019220pjb.8.2023.10.11.04.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 04:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6C7BB80EE77D; Wed, 11 Oct 2023 04:06:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234952AbjJKLGW (ORCPT + 99 others); Wed, 11 Oct 2023 07:06:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234860AbjJKLF2 (ORCPT ); Wed, 11 Oct 2023 07:05:28 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA06C0; Wed, 11 Oct 2023 04:05:27 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 47E7F24E2F4; Wed, 11 Oct 2023 19:05:25 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 11 Oct 2023 19:05:25 +0800 Received: from ubuntu.localdomain (183.27.96.95) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 11 Oct 2023 19:05:23 +0800 From: Minda Chen To: Conor Dooley , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , "Daire McNamara" , Emil Renner Berthing , Krzysztof Kozlowski CC: , , , , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie , Minda Chen Subject: [PATCH v8 10/22] PCI: plda: Add PLDA default event IRQ handler Date: Wed, 11 Oct 2023 19:05:02 +0800 Message-ID: <20231011110514.107528-11-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231011110514.107528-1-minda.chen@starfivetech.com> References: <20231011110514.107528-1-minda.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.96.95] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 04:06:38 -0700 (PDT) X-Spam-Level: ** Add PLDA default event IRQ handler. This is first patch of refactoring IRQ handling codes. The handler function will be referenced by later patch. Signed-off-by: Minda Chen --- drivers/pci/controller/plda/pcie-plda-host.c | 5 +++++ drivers/pci/controller/plda/pcie-plda.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/pci/controller/plda/pcie-plda-host.c b/drivers/pci/controller/plda/pcie-plda-host.c index 19131181897f..21ca6b460f5e 100644 --- a/drivers/pci/controller/plda/pcie-plda-host.c +++ b/drivers/pci/controller/plda/pcie-plda-host.c @@ -18,6 +18,11 @@ #include "pcie-plda.h" +irqreturn_t plda_event_handler(int irq, void *dev_id) +{ + return IRQ_HANDLED; +} + void plda_pcie_setup_window(void __iomem *bridge_base_addr, u32 index, phys_addr_t axi_addr, phys_addr_t pci_addr, size_t size) diff --git a/drivers/pci/controller/plda/pcie-plda.h b/drivers/pci/controller/plda/pcie-plda.h index 3deefd35fa5a..7ff7ff44c980 100644 --- a/drivers/pci/controller/plda/pcie-plda.h +++ b/drivers/pci/controller/plda/pcie-plda.h @@ -120,6 +120,7 @@ struct plda_pcie_rp { void __iomem *bridge_addr; }; +irqreturn_t plda_event_handler(int irq, void *dev_id); void plda_pcie_setup_window(void __iomem *bridge_base_addr, u32 index, phys_addr_t axi_addr, phys_addr_t pci_addr, size_t size); -- 2.17.1