Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1045013rdb; Tue, 19 Sep 2023 19:47:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbctLIpWFTgXJXSaaezvNWuefbeBLURD633G9tTM6MPykKn3uUf1s5XqOQYMeb+ER37ADs X-Received: by 2002:a05:6808:8d0:b0:3a7:52b9:cbfe with SMTP id k16-20020a05680808d000b003a752b9cbfemr1057832oij.32.1695178066026; Tue, 19 Sep 2023 19:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695178065; cv=none; d=google.com; s=arc-20160816; b=KVZKjFCTSxiNtYTa7lCQ01kkCCeV0hhq40UlNbp5hYbx0DxGPtdeaIKMMlbiMR0Qeu 3Sf2m88WlDjMqBVNp3+0vrbGQ26E/bNjPAZHZXYFkxGg5gYg5J24PtxkCeV6QOyXov3j WfyRz4MxzoqsmIyvo1bzLYWjkaWvjVZOPZBCon+vchHIu1geEMIoE71CS0u2v3vxY/Ji f3i8KjuUuBl0ZnlAZnDEUSkkZ2KQLBq8m4ajxyIN5RV58nzRDdSPGHE2oiApfqJUTfqB fj8YnipfFH1NsyqNKZyUettcxkMY/OyDawgcOmzydJKpodo+ndzYo9jOasDDw3v+C8wH hh8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=4qq2yyd+qDMGGl+2Z+cE0iurkNbXZOmKsLRbj8d9nG0=; fh=4AlDLenq4VbEZYtNnnivQ3agvNHKBaeFP9Rpz1hkT2o=; b=00Tf2NVVRrDySSV5LakSlVRowUowzEAmd6XGjZ+l/BJ9kVNXTfRbN0ZKFbvYA0PXKk qKw2aY3Xcn5GINnhxutJb+P1uEKFm9DeDew9nNq5QHN9xxpyZL6leG1JkaY1ttbyLzxL 2geBh6MwamlxpkWFg6UviThnkP14DapgyQi6GPxeZUdkUy0SoRWMLARpTK4n8NGkzckG BU04tm9up0742AtWw7aWkgShtJQwGtPJ9f1zMTF+3/QuBxQ1wYFNdKGagdgwBtkECHvV /2Xr9IL2ux4PKtfsT6k1AaxgypdUL35zvmPuTLtwvv/OsmJAydsbbsGSdnM9QpZFWLdv tumw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t32-20020a056a0013a000b0068e4c3f3ac2si1104653pfg.245.2023.09.19.19.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 19:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BCD7E806BE3B; Tue, 19 Sep 2023 19:47:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbjITCq6 (ORCPT + 99 others); Tue, 19 Sep 2023 22:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjITCq5 (ORCPT ); Tue, 19 Sep 2023 22:46:57 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD21699; Tue, 19 Sep 2023 19:46:49 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8AxZ+gXXQplBCIqAA--.44903S3; Wed, 20 Sep 2023 10:46:47 +0800 (CST) Received: from [10.20.42.43] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxP90HXQplwS4MAA--.26420S3; Wed, 20 Sep 2023 10:46:44 +0800 (CST) Message-ID: Date: Wed, 20 Sep 2023 10:46:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 0/5] Add the pci_get_base_class() helper and use it To: "Deucher, Alexander" , Sui Jingfeng , Bjorn Helgaas Cc: "alsa-devel@alsa-project.org" , "nouveau@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-pci@vger.kernel.org" References: <20230825062714.6325-1-sui.jingfeng@linux.dev> Content-Language: en-US From: suijingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8CxP90HXQplwS4MAA--.26420S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Zr45ZFW8ZF4rJr43KF4rWFX_yoW8ur4kpF 43AF4YkF1kJrsrGr97Wrn3uF18G3ykXryrJr1v934I93s0vrnIqan7Cw4Du39IvrWY9a1q qrWIyr12g34YqagCm3ZEXasCq-sJn29KB7ZKAUJUUUUx529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUPIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07 AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWU AVWUtwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI4 8JMxk0xIA0c2IEe2xFo4CEbIxvr21lc7CjxVAaw2AFwI0_JF0_Jw1l42xK82IYc2Ij64vI r41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_JF0_Jw1lx2IqxVAqx4xG67 AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIY rxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14 v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8 JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j5o7tUUU UU= X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 19:47:09 -0700 (PDT) Hi, On 2023/8/25 21:18, Deucher, Alexander wrote: > [Public] > >> -----Original Message----- >> From: amd-gfx On Behalf Of Sui >> Jingfeng >> Sent: Friday, August 25, 2023 2:27 AM >> To: Bjorn Helgaas >> Cc: alsa-devel@alsa-project.org; Sui Jingfeng ; >> nouveau@lists.freedesktop.org; linux-kernel@vger.kernel.org; dri- >> devel@lists.freedesktop.org; amd-gfx@lists.freedesktop.org; linux- >> pci@vger.kernel.org >> Subject: [PATCH 0/5] Add the pci_get_base_class() helper and use it >> >> From: Sui Jingfeng >> >> There is no function that can be used to get all PCI(e) devices in a system by >> matching against its the PCI base class code only, while keep the sub-class code >> and the programming interface ignored. Therefore, add the >> pci_get_base_class() function to suit the need. >> >> For example, if an application want to process all PCI(e) display devices in a >> system, it can achieve such goal by writing the code as following: >> >> pdev = NULL; >> do { >> pdev = pci_get_base_class(PCI_BASE_CLASS_DISPLAY, pdev); >> if (!pdev) >> break; >> >> do_something_for_pci_display_device(pdev); >> } while (1); >> >> Sui Jingfeng (5): >> PCI: Add the pci_get_base_class() helper >> ALSA: hda/intel: Use pci_get_base_class() to reduce duplicated code >> drm/nouveau: Use pci_get_base_class() to reduce duplicated code >> drm/amdgpu: Use pci_get_base_class() to reduce duplicated code >> drm/radeon: Use pci_get_base_class() to reduce duplicated code >> > Series is: > Reviewed-by: Alex Deucher Thanks a lot. What to do next then? By the way, Bjorn, what's your opinion? I'm ask because I don't know what to do next with this series. As they belong to different system of Linux kernel, the rest of patch (0002 ~ 0005) depend on the first one. I think, merge the 0001-patch firstly, then wait it arrive at drm-misc, alsa branch. Or, to do something else?