Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp400023ybn; Tue, 1 Oct 2019 23:22:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJdDzXGl/Y1bSJ5jV+6efOYXhR2yXT4QyHrs2FyCSLzzg3WsFhxEihALkK23YagSuErDDj X-Received: by 2002:a50:eac4:: with SMTP id u4mr2143905edp.36.1569997366759; Tue, 01 Oct 2019 23:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569997366; cv=none; d=google.com; s=arc-20160816; b=hz8+FbmXNG9wfefVLnpW/SldmA3tfKN5C393FzfIygJvkKejYJvzIQiY9rdJEJBrcg bgwTZRKPpCeWnhI9B8UEbNeQQPvmjR2ttxi0L7huQZr+zjZkAvDa/T4Zc1bBA7vvtaXE 6Rq+MdkbdRkpqu3VILkRBu0ayelsVB8M3Od0HczIK22Engvksj0dtvBW+dPsX30dReKn DvyMH1evpQ9iyo5MDdmKOuECNtRrKT4bwYqIgol98dKsBe2byWElvAW9HmbVfnD5VJ9e 8IIWjlNbswp7UdMWBlEo38FYx01ITkfuyruoolo5bx5MKZoegGmpxYkHw6KyPQkPinxd uZiA== 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=C5nItK5bjIURIDmffM9Bvs1xS/xACCUW8Q7cn7S1Vw4=; b=amaQ3KkdZPSiKVF8M1ehK30JAUO8Au6R4AoxvKR0TcvAyLp3HjS6c2AeX8lNSOLwoX ax7R7nHUHtuBHtlJHL3Qi71F68FczHzM0yACOIvZ/w9RiXi6mMDWCgNVXBiudlu051j/ Y8WtQgasoQ1Wjb+o+qbOKTwpuAuzPaw1+NVTM36vYjGxnEU24rxqlz9PSi+7DsCKAI/x 1Q0sJjyQFyXWtH7157GCTq8IDf4XZKFrxGqU9wb2mXUA7Gg+qY/uU1Vz+dJbrcOTYE7t q600gWQkdsE0Mafw58pRcmMVguufDIE9UIAgcJmjil0UBAyXGknD0h9rZfKG1b6MippW npjw== 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 v7si10152689edr.125.2019.10.01.23.22.22; Tue, 01 Oct 2019 23:22:46 -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 S1729374AbfJBAyB (ORCPT + 99 others); Tue, 1 Oct 2019 20:54:01 -0400 Received: from mail.loongson.cn ([114.242.206.163]:55873 "EHLO mail.loongson.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfJBAyA (ORCPT ); Tue, 1 Oct 2019 20:54:00 -0400 Received: from [10.20.41.27] (unknown [10.20.41.27]) by mail (Coremail) with SMTP id QMiowPDxL18P9ZNdkUgGAA--.132S3; Wed, 02 Oct 2019 08:53:54 +0800 (CST) Subject: Re: [PATCH] PCI: Add Loongson vendor ID and device IDs To: Bjorn Helgaas References: <20191001125010.GA38575@google.com> Cc: Andrew Murray , zenglu@loongson.cn, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org From: Tiezhu Yang Message-ID: Date: Wed, 2 Oct 2019 08:53:36 +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: <20191001125010.GA38575@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-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g_TUUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/01/2019 08:50 PM, Bjorn Helgaas wrote: > On Tue, Oct 01, 2019 at 10:53:44AM +0800, Tiezhu Yang wrote: >> On 09/30/2019 10:02 PM, Andrew Murray wrote: >>> On Mon, Sep 30, 2019 at 12:55:20PM +0800, Tiezhu Yang wrote: >>>> Add the Loongson vendor ID and device IDs to pci_ids.h >>>> to be used 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 >>>> >>>> Co-developed-by: Lu Zeng >>>> Signed-off-by: Lu Zeng >>>> Signed-off-by: Tiezhu Yang >>>> --- >>>> include/linux/pci_ids.h | 19 +++++++++++++++++++ >>>> 1 file changed, 19 insertions(+) >>>> >>>> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h >>>> index 21a5724..119639d 100644 >>>> --- a/include/linux/pci_ids.h >>>> +++ b/include/linux/pci_ids.h >>>> @@ -3111,4 +3111,23 @@ >>>> >>>> #define PCI_VENDOR_ID_NCUBE 0x10ff >>>> >>>> +#define PCI_VENDOR_ID_LOONGSON 0x0014 >>>> +#define PCI_DEVICE_ID_LOONGSON_HT 0x7a00 >>>> +#define PCI_DEVICE_ID_LOONGSON_APB 0x7a02 >>>> +#define PCI_DEVICE_ID_LOONGSON_GMAC 0x7a03 >>>> +#define PCI_DEVICE_ID_LOONGSON_OTG 0x7a04 >>>> +#define PCI_DEVICE_ID_LOONGSON_GPU_2K1000 0x7a05 >>>> +#define PCI_DEVICE_ID_LOONGSON_DC 0x7a06 >>>> +#define PCI_DEVICE_ID_LOONGSON_HDA 0x7a07 >>>> +#define PCI_DEVICE_ID_LOONGSON_SATA 0x7a08 >>>> +#define PCI_DEVICE_ID_LOONGSON_PCIE_X1 0x7a09 >>>> +#define PCI_DEVICE_ID_LOONGSON_SPI 0x7a0b >>>> +#define PCI_DEVICE_ID_LOONGSON_LPC 0x7a0c >>>> +#define PCI_DEVICE_ID_LOONGSON_DMA 0x7a0f >>>> +#define PCI_DEVICE_ID_LOONGSON_EHCI 0x7a14 >>>> +#define PCI_DEVICE_ID_LOONGSON_GPU_7A1000 0x7a15 >>>> +#define PCI_DEVICE_ID_LOONGSON_PCIE_X4 0x7a19 >>>> +#define PCI_DEVICE_ID_LOONGSON_OHCI 0x7a24 >>>> +#define PCI_DEVICE_ID_LOONGSON_PCIE_X8 0x7a29 >>> Hi Tiezhu, >>> >>> Thanks for the patch - however it is preferred to provide new PCI >>> definitions along with the drivers that use them. They don't >>> provide any useful value without drivers that use them. >> Thanks for your reply. This is the first step of the Loongson kernel >> team, we will submit other related individual driver patches step by >> step in the near future, these small patches make an easily >> understood change that can be verified by reviewers. > There are two opposing goals here: > > 1) The "publish early, publish often" idea that posting small things > early helps get useful feedback. > > 2) The idea of waiting until things can be published in logical > units so readers can see context and how things fit together. > > I think Andrew's point (which I agree with) is that an individual > trivial patch like this is not enough to give meaningful feedback. I > think you'll get better feedback if you wait and collect things until > you can post a series that actually fixes a bug or adds a small > feature. It also makes it easier for me to track patches if I can > deal with a whole series at once instead of trying to figure out which > individual patches are related. > > So I'd encourage you to think in terms of a series of 3-10 patches > that are all related and together produce something useful. That's > easier for readers to digest than the same patches posted > incrementally over several days or weeks. Hi Bjorn, Thanks for your valuable suggestion, it is very useful. In the next work, I will submit a series of patches as soon as possible. Thanks, Tiezhu Yang > > Bjorn