From patchwork Fri Jan 20 03:15:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "David E. Box" X-Patchwork-Id: 46119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp679756wrn; Thu, 19 Jan 2023 19:33:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfzvRIFveiZYxsrLmkAqHtwOBgeN5wmsbNAEyRT0lOLhG+HVkRzeAsZANoKtP+YNL41R4e X-Received: by 2002:a17:90b:35c9:b0:229:8344:2a59 with SMTP id nb9-20020a17090b35c900b0022983442a59mr13040365pjb.13.1674185581964; Thu, 19 Jan 2023 19:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674185581; cv=none; d=google.com; s=arc-20160816; b=tl8mLIb6zefXNYe3sXBedAoo8hxreeaDgl8Iu888bOGAThRsQNgb+A162h2R4N2z9c tW7tY8gMhWZRBEH8n2w4LfB7fB5OHrNiqhSobXT47EY0wOrZkQI82nlJ9rmIwt2JtIOx en+uZPE2Off50EXsPWmJGedek2GdxjT2EtGewjCH4YSkJCjd2zleIJi/nrvejToB4geq A/9E4bBeZgryDdBW1XMbg0ZeUMJF4klRPwUM1Xm1q9a5EXSFNuwQ9VDi2FhVWVR2NLTD 9nmoTOINIqnu5VulfiA1blmiG/PstA3T/9qIRIR9Nx/N2ouUlN4gbR+fGyLu+O6qIFCV ejmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RsUrdQ1n1f/YzVqDCR91WSsso0GRzuADsbVSJaXbqY8=; b=HSEKE6cV+qUH9Rb1icGwge1RZDkjNbSfFteYi5KMzmvrbRddJjadNxysoQVolmkMbn D94fVcloerLoP+POWNct8/AyV1tHNonTSQp7YQ2g+mEDh7wfsdZpVKG/oY04adRun+JR 7xt6hdvmO/2IlNSn+Bdjx5DIA3HdpFZv5z9evrXcoWfKePMUjsRCq31bf03SMqVVRCi5 MPzfHfVuqOqf55AYFiFcJ6UR06xbPXGa8PK/sbDd3GcViN/ZgA5JdPIut6r/cvjk/EBG QivLCjimn1SocDZWk9pL7HhEP+bnbYqzGHZwG8Gbotdc7C2BUKy4efxFBLrCvIUao4gq glDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dCAbiwXA; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb11-20020a17090b060b00b0022932d0b810si1198499pjb.44.2023.01.19.19.32.49; Thu, 19 Jan 2023 19:33:01 -0800 (PST) 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=@intel.com header.s=Intel header.b=dCAbiwXA; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbjATDPi (ORCPT + 99 others); Thu, 19 Jan 2023 22:15:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbjATDP3 (ORCPT ); Thu, 19 Jan 2023 22:15:29 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D634FAE7; Thu, 19 Jan 2023 19:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674184527; x=1705720527; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Mgdt2t5MbqMc36Ij8W4BDJHachCKFX3KwgqQXYMUwBg=; b=dCAbiwXA14KKxTJLDNzA0+tX/JBEIhs0xEQIs28zGvwhBVLjqn4eRI4I ZKYKUF76RHuclhGh4m93e9+uotuuTtu/LCrFT8edQbnkWcTrWM6X0sDrI 9gC4wZmsNOyILDoFbuoL8Y+3WUqUQw4HgQB6aW190+PjcW7BHW5/Ochl+ bs8yczbixCdx0fhrQ2W0E9jGSWKAkmtAwU/NgAGWcsyaECrQ8mW4SVt59 mtGDC2UW9ROyAISN22kVGEjt88l6OTkuBnxbJDWlDVl8gym6JJ2sP25KN Vw7H5qL3/PWieZs5fphbYAxJnOjh1C8yAH9lVQcsTJebdr9i0JVfI98k+ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="390012687" X-IronPort-AV: E=Sophos;i="5.97,230,1669104000"; d="scan'208";a="390012687" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 19:15:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="638009310" X-IronPort-AV: E=Sophos;i="5.97,230,1669104000"; d="scan'208";a="638009310" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 19 Jan 2023 19:15:23 -0800 Received: from debox1-desk4.intel.com (unknown [10.212.255.207]) by linux.intel.com (Postfix) with ESMTP id 29087580C4A; Thu, 19 Jan 2023 19:15:23 -0800 (PST) From: "David E. Box" To: david.e.box@linux.intel.com, nirmal.patel@linux.intel.com, jonathan.derrick@linux.dev, lorenzo.pieralisi@arm.com, hch@infradead.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, michael.a.bottini@intel.com, rafael@kernel.org, me@adhityamohan.in Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V10 2/4] PCI: vmd: Use PCI_VDEVICE in device list Date: Thu, 19 Jan 2023 19:15:20 -0800 Message-Id: <20230120031522.2304439-3-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230120031522.2304439-1-david.e.box@linux.intel.com> References: <20230120031522.2304439-1-david.e.box@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,UPPERCASE_50_75 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755510820509231033?= X-GMAIL-MSGID: =?utf-8?q?1755510820509231033?= Use PCI_VDEVICE to simply the device table. Signed-off-by: David E. Box Reviewed-by: Jon Derrick Reviewed-by: Nirmal Patel --- V10 - Changed commit message. V9 - No change V8 - No change V7 - New Patch. Separate patch suggested by Lorenzo drivers/pci/controller/vmd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index 769eedeb8802..1fc3f2174359 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -1017,33 +1017,33 @@ static int vmd_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(vmd_dev_pm_ops, vmd_suspend, vmd_resume); static const struct pci_device_id vmd_ids[] = { - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_201D), + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_201D), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0), + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_CAN_BYPASS_MSI_REMAP,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x467f), + {PCI_VDEVICE(INTEL, 0x467f), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4c3d), + {PCI_VDEVICE(INTEL, 0x4c3d), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa77f), + {PCI_VDEVICE(INTEL, 0xa77f), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x7d0b), + {PCI_VDEVICE(INTEL, 0x7d0b), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xad0b), + {PCI_VDEVICE(INTEL, 0xad0b), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,}, - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B), + {PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B), .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | VMD_FEAT_HAS_BUS_RESTRICTIONS | VMD_FEAT_OFFSET_FIRST_VECTOR,},