Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19427394rwd; Wed, 28 Jun 2023 09:09:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IS2eN6kSeiRlZ3v20jUwv8e3fEVWw8k1uX12rnZM5wgij1aGy64uKRo0uzfYR24kl1eYL X-Received: by 2002:a2e:3803:0:b0:2b5:9e51:2912 with SMTP id f3-20020a2e3803000000b002b59e512912mr9338271lja.24.1687968561278; Wed, 28 Jun 2023 09:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687968561; cv=none; d=google.com; s=arc-20160816; b=KeayOoDJcWslqe6lMaj/W6Rcv+cyvMUJWFiV1CeXzEa3kKFGAcJWoENwfTNEbNZIwj CFrscJqncj8PgCZt3FXFRtXj4yd7DMGWTYBmd8b/C0yACmaj2EWlBl0JpnqBd+HQc3fw V8TrO52mSxmHFnqYkuYMX8UwCfTdVh9SjGc1ofrS007sCbabLTPV56r+juTCQ9Am2maY lEB4LnssIoq2HIe9P9y1UDfS9DeASapcQva0JQ/ERCRxtB8WTJ5+vpShYLH7c8M0c9Kk AiZK3+IYD6HW1u3nFHOg2Jc9/wxUOTlFKy5luK35s7efiAbBsLhsX2tORz1iYvkurJJI xHSw== 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=PO+prm10+BVG1AzD/w6d3eEKt1bmLfuDsGNfOBFFobQ=; fh=mw2fUl3JdPDnL3wjh36ziJj6tnuApi+C59bHyHIGLMw=; b=mBvt5VuZma6VMMbrn1aGuxU9WmgeKaY259HVbZaAaIY+fcWuM/sNbIrrZ2KUDULftR V/TqCzwnjAHHXmgIc8Ps4AtE/9eRjg5SWyNdaqYWR2E/F1DLaPwLRI1omxynWeR+v09Q CXNcu6b+dWPd21112INXH9jYnu1v5QnIC6l9BcnpbhyfpoSpw7icwOTN6z0uuTEG/xIg +ZXlHwR0hfry8n3Fvp+/pzA5TLgPXXAsXhegc49huGcC1YXzslWU56Gci3oG+IqnQMaP CUhEsk6ihBc9ktoFtPk3UQK8P5xQxwQcqfAZeG7iDa/zpv/GkAAAGdd2II7VWEv6XLkX XP/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U64Ow9jX; 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 sb23-20020a170906edd700b0098922462edbsi5785020ejb.802.2023.06.28.09.08.56; Wed, 28 Jun 2023 09:09:21 -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=U64Ow9jX; 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 S231454AbjF1P6H (ORCPT + 99 others); Wed, 28 Jun 2023 11:58:07 -0400 Received: from mga05.intel.com ([192.55.52.43]:20599 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbjF1P6D (ORCPT ); Wed, 28 Jun 2023 11:58:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687967883; x=1719503883; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=K5zT2FY0Az4cbHZonZ/hBNeNzPWJNFzal6qbbQFy0DU=; b=U64Ow9jXTUpQU+JRimRbhOu7QgI5l8iYFx+jhu0WWTOIPH1m+yWL4KzQ 19liz2OOkmeAxNcksaYUhqeB+ptRIFcr7uREdtPtW12uaOxDcHzuGYOBy a41D/ZrHr52b48q2TMfJIJtvM5hFk0Htm9t2U++4XxbFIf2/tw2O1fANu tPcIQmmMhUNE+OgjhNmudvvciOfE0Vd9GqWBP3iaCXeqGCBtEGR5n+VyD Ug3aA6vAzub921r3jcikmQphAqHXvcv+bFcIs254blfDzpw446gNvv4u5 cQ3VSGJB46VE8IrYuSsFFDxWKzJVy32TAy7HGpkeYq1zJojziomFaQhhj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="448269762" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="448269762" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 08:58:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="841122398" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="841122398" Received: from sdiskin-mobl.ger.corp.intel.com (HELO [10.251.217.207]) ([10.251.217.207]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 08:57:59 -0700 Message-ID: Date: Wed, 28 Jun 2023 17:57:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [RFC PATCH 0/8] PCI: Define Intel PCI IDs and use them in drivers Content-Language: en-US To: Andy Shevchenko , =?UTF-8?Q?Amadeusz_S=c5=82awi=c5=84ski?= Cc: Bjorn Helgaas , Mark Brown , Takashi Iwai , alsa-devel@alsa-project.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Cezary Rojewski , Kai Vehmanen References: <20230628205135.517241-1-amadeuszx.slawinski@linux.intel.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/23 16:49, Andy Shevchenko wrote: > On Wed, Jun 28, 2023 at 10:51:27PM +0200, Amadeusz Sławiński wrote: >> PCI IDs for Intel HDA are duplicated across quite a few drivers, due to >> various configurations and historical reasons. Currently almost all uses >> of HDA PCI IDs have corresponding comment telling which platform it is. >> Additionally there are some inconsistencies between drivers about which >> ID corresponds to which device. >> >> Simplify things, by adding PCI IDs to global header and make use of them >> in drivers. This allows for removal of comments by having IDs themselves >> being self explanatory. Additionally it allows for removal of existing >> inconsistencies by having one source of truth. > > I'm in favour of this series. It allows to use PCI_DEVICE_DATA() in many places. > With that said, I think you can also add some more definitions to PCI IDs header > for the sake of being able to use that macro. I don't have any objections on the change. The big open is how we add new definitions without a 3-way deadlock between PCI, sound and ASoC trees, and how those definitions can be added to the -stable trees. This isn't an hypothetical case, we have 2 pending submissions for LunarLake [1] and ArrowLake [2] which will be provided as soon as the merge window closes. It's not clear to me if Bjorn is ok to let those audio-specific PCI IDs go the audio trees, and how things would work between Mark and Takashi. [1] https://github.com/thesofproject/linux/pull/4425 [2] https://github.com/thesofproject/linux/pull/4437