Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20398642rwd; Thu, 29 Jun 2023 01:32:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K6mdyDbqHWxlOMfnBiR57Heo06fwLVmLCn7kj+XGlHb7B/Cyj3qqTiK6j8UHYZF3d6gG3 X-Received: by 2002:a54:4e81:0:b0:3a1:b54f:8353 with SMTP id c1-20020a544e81000000b003a1b54f8353mr13490149oiy.47.1688027545637; Thu, 29 Jun 2023 01:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688027545; cv=none; d=google.com; s=arc-20160816; b=cILVbhnLmz2M9NpMIr/qhvMLoV9+vtSeFyr0kQ6K48Ucr/sSef7fqjqs3YELlvnREK USjC00WkeXwRyhd0vDkNgpyc5hylHkVUbaNssE2u9yz+KXPjQDyXq0SutJjEXyyt5GtI LRJGK6PjE3WxpJy4NyrEo3bmbT1OSR3JCxaB5dUB7ihbfGzZYRmczYf8eiW5pliSsnQ/ Wy/QUIuDCOvXriBlRQpLVBjK5whJmE+KBDqeZi5Pe5MMd94rCuxFnfNcjBPpcFlmL74Z 8usNymeM0fiYCjrgfkQiKPzevSTLgWEaJQwri8BVFjf6ehX2zs24m60WsQ8DBTyNg4sn TEdQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4sZlZo/VLYbz8UsERXvqwoqnhL08tpvZOXX+M9Bp3YE=; fh=xgeRpCly30Wdj5SAelET1H1cuCptF+BK7ILF+4xdgU4=; b=Xe/s7ZweACEfFq8RmBbeh0WLP8OAplcE5CM/D8YNFZ25gfVqqj+yXsktmznDrkiTkG Qh6kZ/ZIa3bri3jj4tXhRqyVfbWAurdRP/xI+vEsVE36qgO0B8Bj08smlWIy7CgbGW1d NfWaMffL/fQapCCAX80Sit4AgRY/8hO2xt1b4uaan6pESrhWSX+XLRKZh8xLhCEJ+3fT oUA8hiyoznDnx4vm2lKk66QJbvYtBXXBPlGhNTZIAQI5VPZnz3IQJq+RXd/HmQnePPdJ 9d/PbzjLpUOEKmbx7jyouE7OCjKlf+QRzMlwTfUTYNX9X6r5IiDOLwt8Qx5ClQoP9o62 /zgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iyNRgDZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a634201000000b00553ebb05d22si10409107pga.34.2023.06.29.01.32.10; Thu, 29 Jun 2023 01:32:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iyNRgDZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232511AbjF2IVl (ORCPT + 99 others); Thu, 29 Jun 2023 04:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232636AbjF2IUV (ORCPT ); Thu, 29 Jun 2023 04:20:21 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A5935B0; Thu, 29 Jun 2023 01:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688026742; x=1719562742; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=bwl4CrAT36OPSAV+5Pw0nBFpLFCNkMjbBXcbb8Asm+c=; b=iyNRgDZlnCLOLLsc2ocN2NeJtGai03BaaWR8maqEcWxvz9kIDKl5bbxd ScTfskkKRrGfZE8LjXFCTbTJQkh7nbGJPjA+Kg+mxkbRTWxZMi0L/YtDi UQPdGBOibY2pcI0fPr6pneNALtbj0LrD9d8su6ujgtXaheQPpXi/uOAxo jpcAqNdlzk4Op1uZGLoO5yF1SIhjomsGDTwL7v5GGedNxAuW0xeF6NmwW EcJHN/ZQhunEzKp3gscCOziQo0CXVHhOF46oYPOE7x8WUaeoN1TgCXDB0 wqaM1NrYNi3wRPQVRPtk3Rau8/NwVPgU073i+bujLHuCoVkygVV6qoTLO Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="351854317" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="351854317" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 01:19:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="891331233" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="891331233" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.99.16.144]) ([10.99.16.144]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 01:18:59 -0700 Message-ID: Date: Thu, 29 Jun 2023 10:18:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC PATCH 3/8] ALSA: hda: Update PCI ID list Content-Language: en-US To: Andy Shevchenko Cc: Bjorn Helgaas , Mark Brown , Takashi Iwai , alsa-devel@alsa-project.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Cezary Rojewski , Pierre-Louis Bossart , Kai Vehmanen References: <20230628205135.517241-1-amadeuszx.slawinski@linux.intel.com> <20230628205135.517241-4-amadeuszx.slawinski@linux.intel.com> From: =?UTF-8?Q?Amadeusz_S=c5=82awi=c5=84ski?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/2023 4:47 PM, Andy Shevchenko wrote: > On Wed, Jun 28, 2023 at 10:51:30PM +0200, Amadeusz Sławiński wrote: >> Use PCI device IDs from pci_ids.h header and while at it change to using >> PCI_VDEVICE macro, to simplify declarations. This allows to change magic >> number PCI vendor IDs to macro ones for all vendors. For Intel devices >> use device IDs macros where defined. > > ... > >> ((pci)->device == 0x490d) || \ >> ((pci)->device == 0x4f90) || \ >> ((pci)->device == 0x4f91) || \ >> ((pci)->device == 0x4f92))) > > Why are not these be added in the header as well for the sake of consistency? Will do. > > ... > >> /* CPT */ >> - { PCI_DEVICE(0x8086, 0x1c20), >> + { PCI_VDEVICE(INTEL, 0x1c20), >> .driver_data = AZX_DRIVER_PCH | AZX_DCAPS_INTEL_PCH_NOPM }, > > With the first patch seems all of these (x86) can be converted > to use PCI_DEVICE_DATA(). > Main reason is that some of device ids are missing and PCI_DEVICE_DATA() requires them to be defined. I didn't want to mix both PCI_VDEVICE() and PCI_DEVICE_DATA().