Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp201108ybh; Mon, 9 Mar 2020 19:39:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt++fMfKOI6hUkc6CaJoy14elFBrSYma69NBYSQXdvIhR4O6d7vUht1yY6yagi7rgdIS4xP X-Received: by 2002:a9d:19c8:: with SMTP id k66mr3444561otk.43.1583807984934; Mon, 09 Mar 2020 19:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583807984; cv=none; d=google.com; s=arc-20160816; b=zb8gHpH1fAn46dqKHbfpKGZAJGaQV3beWcV8Fz1wvtyWxGHfHh9OIgQUYf62kmBeBx up/tKRh/VazfzUk4WBW2UntlAV1mS+Yi0syWuDIu6qXxJNS6HuEMZYMLlFfZHQnNTOOS pt7D1SQ6aQoO6w2quZYOzxlIepIbjOQ1DopHE6P+b8twgQOWpzQeijIiAqXPtAkgeKtw JcTMqw+wtXxYtEqwAl87OvN9VEFmgTaTh+d8iF5K0haoiGOi1BEjZTvOWV0yFc+PvaHc Vb+YLPkDYsy0urrTJl8QjBwazsOW7Yeptt91olEkKNf0ifqKBKDJyx922d5NPEPxOwtv UJuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=SRB4gI+kmNulvAgHVpKm0WCkLF/bIFaCvoqIj9M+hWw=; b=vWLu7K8Gw2MfW+Mk9YMlBnNlhQ8sSqhpJMmXFJJ8wbfsuS5pfdi+suLVb4Gyb1lhAS IvYFb0gmucRy+giNAYhJ3jocZtt3e6jP+eSx3IoAM+iWsuu8OOw0UASygptTD/uyi3ik onlXCa/gKFMb7+Vcccb5G3Ilk/LdAmHQhXSK2gA52zrlzozlXo7i/brWZ50HMiiTcGHS /gAKvglvd6HR7N/hKFYlSfZ9HCV7pJAH37cnQtHIsh2oRFpqDDRUanU6QlO507jAtvst Gd4kskn7X873Zwx2TbSqoRarfVm797ndZDx57UBSnv2+swubKdUy75QEnWl8sFdcCBIM +UKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=eyGcaXh5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v137si4769390oif.170.2020.03.09.19.39.33; Mon, 09 Mar 2020 19:39:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=mail header.b=eyGcaXh5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbgCJCiJ (ORCPT + 99 others); Mon, 9 Mar 2020 22:38:09 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17897 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbgCJCiJ (ORCPT ); Mon, 9 Mar 2020 22:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583807858; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=Date:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:To:CC:From:Message-ID; bh=SRB4gI+kmNulvAgHVpKm0WCkLF/bIFaCvoqIj9M+hWw=; b=eyGcaXh590ZfA2qIFavo5UB/lXnKcszs4kKUn+ApMEHHjltR70wUbnBtE3175l8s u0f4rA2VxxvQgOjrAMxyxZgDYOfxwHHPMqK5FaTYcYDgTa6LDJakuetiI4KseWtZ6h5 SoTvq6VMRHANbwimgGILboxE0HqSu2sHqvpZlQLk= Received: from [10.233.233.252] (125.120.190.194 [125.120.190.194]) by mx.zoho.com.cn with SMTPS id 158380785586338.32031942445258; Tue, 10 Mar 2020 10:37:35 +0800 (CST) Date: Tue, 10 Mar 2020 10:37:34 +0800 User-Agent: K-9 Mail for Android In-Reply-To: <2ba6de2e-7880-d322-a0f6-5cea2647ea50@loongson.cn> References: <1583742206-29163-1-git-send-email-yangtiezhu@loongson.cn> <1583742206-29163-2-git-send-email-yangtiezhu@loongson.cn> <170be7ca00e.133ea84fa2305.7803335422925759322@flygoat.com> <2ba6de2e-7880-d322-a0f6-5cea2647ea50@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?UTF-8?Q?Re=3A_=E5=9B=9E=E5=A4=8D=3A=5BPATCH_1/6=5D_PCI=3A_Add_Loongs?= =?UTF-8?Q?on_vendor_ID_and_7A1000_device_IDs?= To: Tiezhu Yang CC: Thomas Bogendoerfer , Huacai Chen , Bjorn Helgaas , Jens Axboe , linux-mips , linux-pci , linux-ide , linux-kernel , Xuefeng Li From: Jiaxun Yang Message-ID: <7262AFE6-B850-4F34-A79F-2B59341C9B88@flygoat.com> X-ZohoCNMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E4=BA=8E 2020=E5=B9=B43=E6=9C=8810=E6=97=A5 GMT+08:00 =E4=B8=8A=E5=8D=881= 0:31:56, Tiezhu Yang =E5=86=99=E5=88=B0: >On 03/09/2020 04:50 PM, Jiaxun Yang wrote: >> ---- =E5=9C=A8 =E6=98=9F=E6=9C=9F=E4=B8=80, 2020-03-09 16:23:21 Tiezh= u Yang > =E6=92=B0=E5=86=99 ---- >> > Add the Loongson vendor ID and 7A1000 device IDs to pci_ids=2Eh >> > to be used by the controller driver in the future=2E >> > >> > The Loongson IDs can be found at the following link: >> > >https://git=2Ekernel=2Eorg/pub/scm/utils/pciutils/pciutils=2Egit/tree/pci= =2Eids >> > >> > Signed-off-by: Tiezhu Yang >> > --- >> > include/linux/pci_ids=2Eh | 18 ++++++++++++++++++ >> > 1 file changed, 18 insertions(+) >> > >> > diff --git a/include/linux/pci_ids=2Eh b/include/linux/pci_ids=2Eh >> > index 352c0d7=2E=2E0125ab4 100644 >> > --- a/include/linux/pci_ids=2Eh >> > +++ b/include/linux/pci_ids=2Eh >> > @@ -3113,4 +3113,22 @@ >> > >> > #define PCI_VENDOR_ID_NCUBE 0x10ff >> > >> > +#define PCI_VENDOR_ID_LOONGSON 0x0014 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_HT 0x7a00 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_APB 0x7a02 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_GMAC 0x7a03 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_OTG 0x7a04 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_DC 0x7a06 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_HDA 0x7a07 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_SATA 0x7a08 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_PCIE_X1 0x7a09 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_SPI 0x7a0b >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_LPC 0x7a0c >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_DMA 0x7a0f >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_EHCI 0x7a14 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_GPU 0x7a15 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_PCIE_X4 0x7a19 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_OHCI 0x7a24 >> > +#define PCI_DEVICE_ID_LOONGSON_7A1000_PCIE_X8 0x7a29 >> >> Devices IDs are unlikely to be reused by mutiple subsystems, so >probably we don't need >> to add them here? > >Hi Jiaxun, > >I think it is better to define the device IDs in pci_ids=2Eh, >otherwise it seems a little disorganized=2E Please read the comment at the start of this file=2E New entries should be added only if they're shared by multiple drivers=2E That's the rule=2E And probably you can split these two patches into a new series as they're likely to be accepted=2E Thanks=2E > >Thanks, > >Tiezhu Yang > >> =20 >>> + >> > #endif /* _LINUX_PCI_IDS_H */ >> > -- >> > 2=2E1=2E0 >> > >> > --=20 Jiaxun Yang