Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1906454rdb; Mon, 9 Oct 2023 06:47:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMa2LtSv3t8Mop2ck7x4a61vYhclpCCM5l7rFQ/m7N6FGHb4zER6ldtErcmkCMfHnqXt84 X-Received: by 2002:a17:90b:3809:b0:262:ecd9:ed09 with SMTP id mq9-20020a17090b380900b00262ecd9ed09mr11877722pjb.33.1696859260838; Mon, 09 Oct 2023 06:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696859260; cv=none; d=google.com; s=arc-20160816; b=1H4UQjh/AFGSzsi5hxvM5hYkx1XOmBvr/GA2vjwel1Jb6mQjD9aB/OPVpu3m0qXRHR FpIszaV18YuhCI/jM9AT0BSdrjZmn0tvDPANxatSXAoQwoaScewENKk6dCDSVStYALd+ e/tF5Qp6zuyt4K51ivNOFnQuw1r1XTvV+0U8I5qtuou1rip7nA0CJybQA+Eab80pQBMR X9iBQ0YgLaMd5L1IniLIHBbPUi8bsEDW6pbC7PRxO2K7JLKfAPN/oXXfJ73cOHBp8XfH mx5F8w6Ry1FCBtT2yZBujnT3/dTXRJgtu1vZ32khKf8xKNBtS+PwIdq8wv/qO+6Xtpga qMmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uTxOCcSE8Lb1zS32Ww4esUwgcdDzf56f4w+GuYkMhTk=; fh=zyFAItzoHFGrd2AbUkrdG8zo9j3L2b9vW4Bs4ZsCj6U=; b=Dmw3dC1aY7xOmaWgL2ftxI384GPc7eCubiV1AR8g1Ei4rKf23vaveiWdteUTcaFa03 2oRvwu9Ll6CI0gutguOflz0RimjtIAI8JriZvw46NHrwfem4IZzWF1zsOoYE7uD/S4Fj 7UTJAvmnoBEV3pA4vZtoSnOi/gJLL9+1GSeOL0CtOe15PbyWQ3NXYebmpWXNMAwlAwhr wCVJFFHaxuDZHVRwpkDpiBDFTNgR1TQzp0IAOTAOf4Y+x0Xm3QBvOM4IOmZ+/6FIG4NV CqmUmqGGmzbd2CXegkDo/doKD0WionbJizOHXtdfUUMsoPZr12MxsJA2oTIFxWobKVDA no/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CZzsiW7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s4-20020a17090aad8400b00274d3f62044si9426833pjq.111.2023.10.09.06.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 06:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CZzsiW7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 874DC80F5862; Mon, 9 Oct 2023 06:47:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377459AbjJINrM (ORCPT + 99 others); Mon, 9 Oct 2023 09:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377451AbjJINrH (ORCPT ); Mon, 9 Oct 2023 09:47:07 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC60DE; Mon, 9 Oct 2023 06:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1696859220; x=1728395220; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SlvDLYB0oglmklYG+xENDJiKBJ2G7iU9PK0HzxKFLAw=; b=CZzsiW7rgBCMq9saiq9m6SCD0Ens1qfBSk1wlS308pWrk4dJbufNJSP2 pjvZ76qjC3T5hU11n0fe/KYxNokoaDf6jto2vC6v1O3VcZkAVCa+nHpEf bR82+IjRd7nqmpF54C0n0PijpCKEDNV+dvLWzMpThQFi60haHmegwYf98 u0XATcUC01pqCIL31nZ+CwO4LO49s/cUxWKZv2Pv16Tra531fDfkvAAfT NDQU3gpgzKmY2Lsb6f79ERCGYMFgq0+XjmhRqOtdnd8VkOT0SD5r6n2Q+ NDsY9hkyHypBbx2fS4dZUnYDTFxlsnoxFuKVp/PYJQSfcsPD+DrnXmyRl A==; X-CSE-ConnectionGUID: 8CTYty34Syqm9xqn5/aKfw== X-CSE-MsgGUID: IysqB0iZTpy7oqmZ6t34yA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="asc'?scan'208";a="9487183" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 09 Oct 2023 06:46:59 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 9 Oct 2023 06:46:59 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 9 Oct 2023 06:46:55 -0700 Date: Mon, 9 Oct 2023 14:46:35 +0100 From: Conor Dooley To: Minda Chen CC: Daire McNamara , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Emil Renner Berthing , , , , , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , "Philipp Zabel" , Mason Huo , Leyfoon Tan , Kevin Xie Subject: Re: [PATCH v7 12/19] PCI: microchip: Add INTx and MSI event num to struct plda_event Message-ID: <20231009-remix-commodore-b034a3b71861@wendy> References: <20230927100802.46620-1-minda.chen@starfivetech.com> <20230927100802.46620-13-minda.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wD+DKiC4dNhhAd6L" Content-Disposition: inline In-Reply-To: <20230927100802.46620-13-minda.chen@starfivetech.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 06:47:37 -0700 (PDT) X-Spam-Level: ** --wD+DKiC4dNhhAd6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Wed, Sep 27, 2023 at 06:07:55PM +0800, Minda Chen wrote: > The INTx and MSI interrupt event num is different > in Microchip and StarFive platform. BTW, please use the full 72 columns, not just 50, for your commit messages. Acked-by: Conor Dooley Thanks, Conor. >=20 > Signed-off-by: Minda Chen > --- > drivers/pci/controller/plda/pcie-microchip-host.c | 6 ++++-- > drivers/pci/controller/plda/pcie-plda.h | 2 ++ > 2 files changed, 6 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/pci/controller/plda/pcie-microchip-host.c b/drivers/= pci/controller/plda/pcie-microchip-host.c > index e3c7d5e66150..fb09b6c34e01 100644 > --- a/drivers/pci/controller/plda/pcie-microchip-host.c > +++ b/drivers/pci/controller/plda/pcie-microchip-host.c > @@ -807,6 +807,8 @@ static int mc_request_event_irq(struct plda_pcie_rp *= plda, int event_irq, > =20 > static const struct plda_event mc_event =3D { > .request_event_irq =3D mc_request_event_irq, > + .intx_event =3D EVENT_LOCAL_PM_MSI_INT_INTX, > + .msi_event =3D EVENT_LOCAL_PM_MSI_INT_MSI, > }; > =20 > static int plda_pcie_init_irq_domains(struct plda_pcie_rp *port) > @@ -947,7 +949,7 @@ static int plda_init_interrupts(struct platform_devic= e *pdev, > } > =20 > intx_irq =3D irq_create_mapping(port->event_domain, > - EVENT_LOCAL_PM_MSI_INT_INTX); > + event->intx_event); > if (!intx_irq) { > dev_err(dev, "failed to map INTx interrupt\n"); > return -ENXIO; > @@ -957,7 +959,7 @@ static int plda_init_interrupts(struct platform_devic= e *pdev, > irq_set_chained_handler_and_data(intx_irq, plda_handle_intx, port); > =20 > msi_irq =3D irq_create_mapping(port->event_domain, > - EVENT_LOCAL_PM_MSI_INT_MSI); > + event->msi_event); > if (!msi_irq) > return -ENXIO; > =20 > diff --git a/drivers/pci/controller/plda/pcie-plda.h b/drivers/pci/contro= ller/plda/pcie-plda.h > index 4e0712c9365e..af5e69718342 100644 > --- a/drivers/pci/controller/plda/pcie-plda.h > +++ b/drivers/pci/controller/plda/pcie-plda.h > @@ -156,6 +156,8 @@ struct plda_pcie_rp { > struct plda_event { > int (*request_event_irq)(struct plda_pcie_rp *pcie, > int event_irq, int event); > + int intx_event; > + int msi_event; > }; > =20 > irqreturn_t plda_event_handler(int irq, void *dev_id); > --=20 > 2.17.1 >=20 --wD+DKiC4dNhhAd6L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSQEOwAKCRB4tDGHoIJi 0vf7AP0f+KHqn88qjg0XQA9OArkRPsMZ5RNRAOJQ8uJiiVp75wEArXl7IgtlC7l9 Voc6hFgZ+1ST01jjkJ5eKHnkn3g4rgw= =13zv -----END PGP SIGNATURE----- --wD+DKiC4dNhhAd6L--