Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2417823rwp; Fri, 14 Jul 2023 06:03:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5/NFvRW/NDPsqotqA+jry4fjMvwTHVlTnOILUJC1VF4x/dposhhc9HSu0BSGEADwDIBEq X-Received: by 2002:a17:907:7709:b0:94f:3521:394 with SMTP id kw9-20020a170907770900b0094f35210394mr3586182ejc.51.1689339800638; Fri, 14 Jul 2023 06:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689339800; cv=none; d=google.com; s=arc-20160816; b=o3z8/abefWuZTNRICViEmS/TETKQIN5s53hsD5R2dqWo/5Xz4mdOmsHmidy6Z+a7jM 6mTVk2GsdsE2cm4AxdUDNNqGctN8ANn3uybbqf8BBXak6kceZNivurpMUF4o1rvKrXca QWBvrhpd/zKayVce72n8TAbmpd12VH3c+CA1RvPudzScjbWQmgbHlNuMQxeDicm7FtPd u7w8MzDYx4yEOb9cifKL7kecjq3tHp7M47/FOl7YgIL88rSU52bp0gSe7vI4xBjo8/5U +Z/DbrVlC/SGgEvYIlLkAiyqSr6pVVQjLysrqP9CNUdt4CknKXxBxatCedF8441zXoH4 KpnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eaA3+hauyjNuZ72S1T9eOFbQgTSYckkUVc1JvuaX1Jw=; fh=Qv6WL51Wks4lACc/LeAFcosM1zsLH+q3LL8cm89/wmY=; b=bEi4mCjlk3X6LPoWt8O61ga8ZUCOEvqqG4tf3KzH/ONUo103mFoR4dawg9BJfuCEJz CMyl4sed+p/D4IHPgewZJSXO9+YWcrv11Kp8BH3kkbakFOOOvivtCAg8PBHzAbh7Lf3s fONPyJLvAioqowEmqXke3LR99kZlqiKBLw2tovDg7yXI4LAW7D5pgrk/1XkCKNf4+YNm nvRXnSWW5BrK+lAUR/muUchXZs9rD+J94UqAfoHTS9y9SkrMZ1nUwObm6H63pG6lEcFq YnOTiM9wMTDJzmzeQeX8PL13K+tqeaPMNgdWIU+OsBiKh2NEhYUAIaYtR0eKOLVtVMc9 ax1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WLc2MOSX; 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 p9-20020a170906140900b00992ae2a902dsi9054814ejc.786.2023.07.14.06.02.56; Fri, 14 Jul 2023 06:03:20 -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=WLc2MOSX; 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 S235965AbjGNMlN (ORCPT + 99 others); Fri, 14 Jul 2023 08:41:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235894AbjGNMlG (ORCPT ); Fri, 14 Jul 2023 08:41:06 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2582D269F; Fri, 14 Jul 2023 05:41: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=1689338462; x=1720874462; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=kOKU0Oxxh2EfZONWCEwEiRbt3oUTbJJvsq5FBiKlLUE=; b=WLc2MOSX2pjMOz1yMPVBQxpF/nz5R2ILh4I1QBVarpiIghIbEosKECOB WaVj3Nc5cZ4/fuBJKLRHMDAyhaSCRI8fu6mJGRIa+cYZXlSjs5JOGqxJJ AfWL8ArWKI7QRsAPxzVNb8fXtPZIa6gz7mW3thVFFHwyA86z8EZorr9Ck a2xe7iQwxpd1loC1iAvciZ1eEsoAwvStN30V192/U5EvfnpNpffnNE7OP yY6hq1BIc/zM+qfuywAI4y18xWuxW5PiyQXuOJJ3KbahVPvMivWxl+EtP Bw+Dd9zx3F1n2yP8soGS65xy31UjoyzUNa7zDqGYiaWgh8pYB6llgIZcA Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="368103722" X-IronPort-AV: E=Sophos;i="6.01,205,1684825200"; d="scan'208";a="368103722" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2023 05:41:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10770"; a="812421841" X-IronPort-AV: E=Sophos;i="6.01,205,1684825200"; d="scan'208";a="812421841" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jul 2023 05:40:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qKI6S-002f1l-2H; Fri, 14 Jul 2023 15:40:56 +0300 Date: Fri, 14 Jul 2023 15:40:56 +0300 From: Andy Shevchenko To: Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= 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 , Hans de Goede Subject: Re: [PATCH v3 15/15] ASoC: Intel: sst: Convert to PCI device IDs defines Message-ID: References: <20230714202457.423866-1-amadeuszx.slawinski@linux.intel.com> <20230714202457.423866-16-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230714202457.423866-16-amadeuszx.slawinski@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Jul 14, 2023 at 10:24:57PM +0200, Amadeusz Sławiński wrote: > Use PCI device IDs from pci_ids.h header. BSW replaces CHV, as 0x22a8 > was added in PCI header as BSW ID for consistency, as they are same > (similar) platforms. The ACPI IDs are used only internally and lower > 16 bits uniquely define the device as vendor ID for Intel is 8086 for > all of them. Use PCI_DEVICE_DATA() to match PCI device to be consistent > with other Intel audio drivers. One nit-pick below, otherwise Reviewed-by: Andy Shevchenko ... > - unsigned int dev_id; > + unsigned short dev_id; Thinking more about this change I would probably add a comment on top of sst_alloc_drv_context() call in sst_acpi.c to tell that in this case the driver handles PCI IDs in ACPI and we are using only device ID part. (If real ACPI ID appears, the kstrtouint() returns error, so we are fine with the change) So, summarize above and add a comment. -- With Best Regards, Andy Shevchenko