Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp197076ybh; Mon, 9 Mar 2020 19:33:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs2yWX9vuzc0SX3DQKjk+j3i7opP2Grjhg33nR21/DfM1/RbJiJ60BPxM7Cf6OxuVKJ9jUD X-Received: by 2002:aca:dc56:: with SMTP id t83mr83409oig.105.1583807596614; Mon, 09 Mar 2020 19:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583807596; cv=none; d=google.com; s=arc-20160816; b=g8QzKAMwwRzet0YMLPmEIctUiNHEopPd/ThUelWwcf5NidSy0Ffd/cRnxAV+g6d35e 02ICKYDEG7GvOuJ0kN2i2XgKWSsoRb6qz85oTks/PO61uzvTiLAKl7JhO7t4C1DwbQoM 5CGPQw+4IZRmliC9rUbNPWrq/04S0zA3I4yMEZ0YTwahhk/3okiuFh5KHiP7besrDMon DZYpMyrwiDYxoJRRcf5Ccu7me+PNG3DskSd9nrbWqQb6Sdk7EvJfScoFo1woFR7LL9v5 CjfCxc2CtD2jUBfiZylgbu3wluEP0eQ6E6vJXLs0Rj4URIjFdo/0PHd2xjl5jI8K1IZF 8r9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=HN7jgYu4xu1Qc0057al8+zdBGXUaSif2JuDrkWx/kks=; b=J6EBy3gOc8JFgwTTayzlImLN3rXAM/AEiZ9a4PgsYLNy4Y7K4jJw7Qv/N9yFf2sJ5z HzgUNwoOBohH1WZE+vM9KAvrBFk3rXxQf52FYE6/TbZAwjl9oRywfMrI+CbrJVNPTMWp xH6jTv3G1zrHMZOcbcBUV/rcxHaltV1k/vDDPJ10qBJvSQIHUGjZGuIJbyVvGXJ02roA 3lArmf61CR/9QmGojE2eW7pn3Bsle0sEPdmereUncv6oSXYQjnfM6JNoYMDOhxvWtCbr BdXnU/KzeGtgJuNyT53H6lCBaewsnyKrhLLLZ41GRQXvHaFU0u2C+oO7Cdp1CElOOv9w AkGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si4692549oic.75.2020.03.09.19.33.04; Mon, 09 Mar 2020 19:33:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbgCJCcn (ORCPT + 99 others); Mon, 9 Mar 2020 22:32:43 -0400 Received: from mail.loongson.cn ([114.242.206.163]:55576 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726450AbgCJCcm (ORCPT ); Mon, 9 Mar 2020 22:32:42 -0400 Received: from [10.130.0.70] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxJuoc_GZe9QYZAA--.37S3; Tue, 10 Mar 2020 10:32:04 +0800 (CST) Subject: =?UTF-8?Q?Re:_=e5=9b=9e=e5=a4=8d:[PATCH_1/6]_PCI:_Add_Loongson_vend?= =?UTF-8?Q?or_ID_and_7A1000_device_IDs?= To: Jiaxun Yang References: <1583742206-29163-1-git-send-email-yangtiezhu@loongson.cn> <1583742206-29163-2-git-send-email-yangtiezhu@loongson.cn> <170be7ca00e.133ea84fa2305.7803335422925759322@flygoat.com> Cc: Thomas Bogendoerfer , Huacai Chen , Bjorn Helgaas , Jens Axboe , linux-mips , linux-pci , linux-ide , linux-kernel , Xuefeng Li From: Tiezhu Yang Message-ID: <2ba6de2e-7880-d322-a0f6-5cea2647ea50@loongson.cn> Date: Tue, 10 Mar 2020 10:31:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <170be7ca00e.133ea84fa2305.7803335422925759322@flygoat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9AxJuoc_GZe9QYZAA--.37S3 X-Coremail-Antispam: 1UD129KBjvJXoW7CF18Cw45KrWrZFW5WFyrCrg_yoW8uF4Dpr 10vFs3KFs7trWfZ3Z2qrn8GrZ3JFs8tw1UuFya9r45JFn3Xw18GrnFyr45CrW2qrsxX3yx Zr1qk3y3CwnxtwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUB014x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr 1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628v n2kIc2xKxwCYjI0SjxkI62AI1cAE67vIY487MxkIecxEwVAFwVW8JwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480 Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7 IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k2 6cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x 0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUF3kuDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2020 04:50 PM, Jiaxun Yang wrote: > ---- 在 星期一, 2020-03-09 16:23:21 Tiezhu Yang 撰写 ---- > > Add the Loongson vendor ID and 7A1000 device IDs to pci_ids.h > > to be used by the controller driver in the future. > > > > The Loongson IDs can be found at the following link: > > https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/tree/pci.ids > > > > Signed-off-by: Tiezhu Yang > > --- > > include/linux/pci_ids.h | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > > index 352c0d7..0125ab4 100644 > > --- a/include/linux/pci_ids.h > > +++ b/include/linux/pci_ids.h > > @@ -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.h, otherwise it seems a little disorganized. Thanks, Tiezhu Yang > >> + > > #endif /* _LINUX_PCI_IDS_H */ > > -- > > 2.1.0 > > > >