Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2583841rdg; Mon, 14 Aug 2023 07:12:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHosfoq9YYeD8z1iPolOrgNnSvllf8RW3blkC4QYw+Gay1kOl/HwrVpaX7VE32X9hNvSVbN X-Received: by 2002:a17:903:2286:b0:1bb:9f07:5e0 with SMTP id b6-20020a170903228600b001bb9f0705e0mr14500911plh.60.1692022373983; Mon, 14 Aug 2023 07:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692022373; cv=none; d=google.com; s=arc-20160816; b=brLsZybAoImsbez/pEemszreRWp5bYOZNWJbA9wQ8seT0nPEHlI4PdrrcaMjE0EsnQ 2a2nBwYCkRIQUiu3s1Te26fYnYhudw+rho9PvBMMI6tPuIrwJSovrXaI+iRiqmd8WbQq SemxXwcPnjYecAa6Gw+aSLT37lrcRboHLJhIVoHb1fy8LZoQnU119YxrWJu4Z4p4GN3n CzwvUibDulk2LTkzQZ1C8hrjjTy0shM1Dnsed8VAE4fitxe8OEyDWDdb2+ORMpdGQLAW bws5OMms1+1ccofHXx4Jsy6b0PiezAtghZpBU4N32B8qJ2t29bO9QUMpeF/938IwmRsp WfuQ== 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=M6Y/C6jHLkxbkNruGv0k+nAC+j5LkD8YMexQ1RqGPvc=; fh=aN5KzZoLdlmLUMX7tD7+lzFrkq9Ulq9jqLPUccgbqtU=; b=ZLh26wySCLTnzD9Qg5aOpLdNgAlvVWpvvF4dUfx68JV/dHvGdF8ztIWD8ve0rs0h/4 PjVfjXWU9DjThtBi1WVMHG89TT5fyFRoBFgbT7rVYaON4oalLZjbST/8/wFX7L3kP/Nt fhQ+d97m1bEAbDPJLMMX5RBE0T6Bsi2c/nm3/4ybF6twUlUsHLxaTg7yWOREuNdjTYF9 IYy0OBTn7lfhD6obiw0R+GBLoQrzssoVnoo6zLvhQckXmyTtc3S02U/WqLTcaFaPZr5c X6txqlN5ONDpEZyW9JJhYdY0Tim71mcGcrKqRAkOjrJtciZM0dlEbY9TZ+0YuwHmZAVg OQUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CP5rEIQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a636d07000000b005642e996827si8138658pgc.508.2023.08.14.07.12.39; Mon, 14 Aug 2023 07:12:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CP5rEIQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbjHNNnV (ORCPT + 99 others); Mon, 14 Aug 2023 09:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbjHNNnH (ORCPT ); Mon, 14 Aug 2023 09:43:07 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2531A1BD; Mon, 14 Aug 2023 06:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1692020585; x=1723556585; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3RJki/UyBhVD4cEMr5FQ7PWWAd+xOqV2/EbyzQNzzuY=; b=CP5rEIQCpGrfFmA+69R0x6vb9iGMZmsJByMaNZW01WtMKgGtUw0XhuyM P5WsSKj+HDFCju+bxfS/dwz/Nlxzpya9T96gNR/XgYsLIqNrSdP7NU5hf vxOStIkSxnoDvLHysi2+MvtDvum62FDAHBwsa7vhAX7RhOUG45qTCAZJA +RDGFyBxnA6lLzgYEjWZ/9cN8BtZeyp3MIbvagpDQK/SC3z2IFct/gHn6 kgVEc2KzKWx+nPAOS9sVAC6C0gyzGJcfXALiEvs1ujibPk0R4f8rCM6JZ T79mFu8VYrqOUN+49yNYqXdT5gbtYQhuElMEgz9snhTfUhXUlhlOHsMoJ Q==; X-IronPort-AV: E=Sophos;i="6.01,172,1684825200"; d="asc'?scan'208";a="241510632" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Aug 2023 06:43:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 14 Aug 2023 06:43:04 -0700 Received: from wendy (10.10.115.15) 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 via Frontend Transport; Mon, 14 Aug 2023 06:43:00 -0700 Date: Mon, 14 Aug 2023 14:42:21 +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 , , , , , Pali =?iso-8859-1?Q?Roh=E1r?= , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie Subject: Re: [PATCH v3 04/11] PCI: microchip: Rename data structure and functions Message-ID: <20230814-earshot-batting-607d70ccc051@wendy> References: <20230814082016.104181-1-minda.chen@starfivetech.com> <20230814082016.104181-5-minda.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RnUNCLF+ofFKLsLa" Content-Disposition: inline In-Reply-To: <20230814082016.104181-5-minda.chen@starfivetech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RnUNCLF+ofFKLsLa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 14, 2023 at 04:20:09PM +0800, Minda Chen wrote: > Rename mc_* to plda_* for common data structures, > setup and IRQ functions. >=20 > The modification includes: > - Add related data structures of PCIe host instance. > mc_pcie --> plda_pcie_rp (Get most of data members) > mc_msi --> plda_msi > - function rename list: > mc_pcie_setup_window --> plda_pcie_setup_window > mc_pcie_setup_windows --> plda_pcie_setup_iomems > mc_allocate_msi_domains --> plda_allocate_msi_domains > MSI interrupts related functions and IRQ domain > (primary function is mc_handle_msi): > mc_handle_msi --> plda_handle_msi > INTx interrupts related functions and IRQ domain > (primary function is mc_handle_intx): > mc_handle_intx --> plda_handle_intx >=20 > Signed-off-by: Minda Chen > --- > .../pci/controller/plda/pcie-microchip-host.c | 216 ++++++++---------- > drivers/pci/controller/plda/pcie-plda.h | 20 ++ > 2 files changed, 120 insertions(+), 116 deletions(-) >=20 > diff --git a/drivers/pci/controller/plda/pcie-microchip-host.c b/drivers/= pci/controller/plda/pcie-microchip-host.c > index 5ab11741f406..e25459f34891 100644 > --- a/drivers/pci/controller/plda/pcie-microchip-host.c > +++ b/drivers/pci/controller/plda/pcie-microchip-host.c > @@ -21,9 +21,6 @@ > #include "../../pci.h" > #include "pcie-plda.h" > =20 > -/* Number of MSI IRQs */ > -#define MC_MAX_NUM_MSI_IRQS 32 > - > /* PCIe Bridge Phy and Controller Phy offsets */ > #define MC_PCIE1_BRIDGE_ADDR 0x00008000u > #define MC_PCIE1_CTRL_ADDR 0x0000a000u > @@ -175,22 +172,9 @@ struct event_map { > u32 event_bit; > }; > =20 > -struct mc_msi { > - struct mutex lock; /* Protect used bitmap */ > - struct irq_domain *msi_domain; > - struct irq_domain *dev_domain; > - u32 num_vectors; > - u64 vector_phy; > - DECLARE_BITMAP(used, MC_MAX_NUM_MSI_IRQS); > -}; > - > struct mc_pcie { > + struct plda_pcie_rp plda; I'm not super keen on the "rp"s that've been introduced here and elsewhere when "port" is what's used all over the shop. Not a big gripe though, so Reviewed-by: Conor Dooley Thanks, Conor. --RnUNCLF+ofFKLsLa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZNovPQAKCRB4tDGHoIJi 0p3PAQC3LAlrzFZcNKEUSHbTg6enYHF6mQCSbRaaKuQ/dLhhRgEAgRII9idgkq6C 1wdA8wsy+0T0C19t6hlAmb4RkChLAAg= =44Tv -----END PGP SIGNATURE----- --RnUNCLF+ofFKLsLa--