From nobody Wed Dec 17 15:11:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F2B8C77B76 for ; Tue, 18 Apr 2023 22:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjDRW6L (ORCPT ); Tue, 18 Apr 2023 18:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjDRW6J (ORCPT ); Tue, 18 Apr 2023 18:58:09 -0400 Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C12072B4; Tue, 18 Apr 2023 15:58:08 -0700 (PDT) From: Patrick McLean To: Dave Airlie , Thomas Zimmermann , David Airlie , Daniel Vetter , Bjorn Helgaas , dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR AST SERVER GRAPHICS CHIPS), linux-kernel@vger.kernel.org (open list), linux-pci@vger.kernel.org (open list:PCI SUBSYSTEM) Cc: Patrick McLean Subject: [PATCH] PCI: Add ASPEED vendor ID Date: Tue, 18 Apr 2023 15:57:57 -0700 Message-Id: <20230418225757.1361301-1-chutzpah@gentoo.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Currently the ASPEED PCI vendor ID is defined in drivers/gpu/drm/ast/ast_drv.c, move that to include/linux/pci_ids.h with all the rest of the PCI vendor ID definitions. Rename the definition to follow the format that the other definitions follow. Signed-off-by: Patrick McLean Acked-by: Bjorn Helgaas Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/ast/ast_drv.c | 4 +--- include/linux/pci_ids.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index d78852c7cf5b..232e797793b6 100644 --- a/drivers/gpu/drm/ast/ast_drv.c +++ b/drivers/gpu/drm/ast/ast_drv.c @@ -70,12 +70,10 @@ static const struct drm_driver ast_driver =3D { * PCI driver */ =20 -#define PCI_VENDOR_ASPEED 0x1a03 - #define AST_VGA_DEVICE(id, info) { \ .class =3D PCI_BASE_CLASS_DISPLAY << 16, \ .class_mask =3D 0xff0000, \ - .vendor =3D PCI_VENDOR_ASPEED, \ + .vendor =3D PCI_VENDOR_ID_ASPEED, \ .device =3D id, \ .subvendor =3D PCI_ANY_ID, \ .subdevice =3D PCI_ANY_ID, \ diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 45c3d62e616d..40e04e88ca5a 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2553,6 +2553,8 @@ #define PCI_DEVICE_ID_NETRONOME_NFP3800_VF 0x3803 #define PCI_DEVICE_ID_NETRONOME_NFP6000_VF 0x6003 =20 +#define PCI_VENDOR_ID_ASPEED 0x1a03 + #define PCI_VENDOR_ID_QMI 0x1a32 =20 #define PCI_VENDOR_ID_AZWAVE 0x1a3b --=20 2.40.0