Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9583922rwd; Wed, 21 Jun 2023 09:08:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6FSP2qkAGuQADSse2ca7kFHzq7QGqkSk2+gxJ2M09L6T1TfCnumq6U74VaDds1vBjgKrK6 X-Received: by 2002:a17:902:ce8b:b0:1b6:a99b:cece with SMTP id f11-20020a170902ce8b00b001b6a99bcecemr324339plg.30.1687363727720; Wed, 21 Jun 2023 09:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687363727; cv=none; d=google.com; s=arc-20160816; b=Z5rBGnc0Z9BePB/LFseWSdKJtQffkYwDgL/6aswCXoOVOe1ZuVYx/n7v5fG4KdkjPo ZXImf5Qr6mdkQFmdO5wwoPrnTJiXNmjyv7A/iV/1pxZfvtDBjFtFNHpLc9jtNnYdjm8t ReqgbChorFTkje13045MTVz32WAYu4SLR14F+RhCKNBTTSoNdLPwPRpkrjtjxfQwVoxZ 07yMOEHrSbCnrBtvlzSHwTBl0kZsyfgJ/bnasXCSUjRW/k34F02bb9AziyqZIlg0D57I q1a9DNzGN0yd3J5ImR3SmQx/HF1CT1D/QVOwdP/EhPLZop5Fwn3XJceInrlobV43Mc7u 7wow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JmqNX7X2p+hMMe/iMYjhtb+g0pf6bbuy+PahdrB+afg=; b=UEt/0tko7tp+4VpfaGg6awz4eT98Qa850yA2DJK8Ri9cBA6v44J1HvL7du88RoqVil RGdYI3wp+moQNitJiu4uQrUsBYKkIwx277Hf6I30CWFGsm0gYG5w/yX57C7FYSfgoX4W 9VEVc5Kty+WX1IXI1Tcl+yajG+p16fnQTbiizl8Qm9RHifiGMWmO+agWQFw6VNDaDmdG eHMHip7rNrjtYSvIcMhBXf3LZ+BNHaGaEF5yOWPj2mgsuBwRAJ5dMp0aDgSQ81uDsevE 2OPEfMUQj3zxua4EUHLwVn+8ZwvRl1N4vmNzU5Lt6Fgj9AnOWObyCQejBEiu80VfNj0O vV3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bfMDzeCK; 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 j5-20020a170902da8500b001b53a3fbcc3si5168425plx.328.2023.06.21.09.08.35; Wed, 21 Jun 2023 09:08:47 -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=bfMDzeCK; 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 S231510AbjFUPUM (ORCPT + 99 others); Wed, 21 Jun 2023 11:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbjFUPTx (ORCPT ); Wed, 21 Jun 2023 11:19:53 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D832ED2; Wed, 21 Jun 2023 08:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687360610; x=1718896610; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BZCM5lLaApqKK/yTbVaJKND0T8mjA20qNjOsA8/s5nU=; b=bfMDzeCKjGK6H4FHShn/5ZdLutzkHVU11a33O9iqmeqxrfBZJt9ZBljw rSF/InNEnMxd7QULv5c7U0DXmoQdykfDSwJB7tzQO3Z4ARh8o7kJfN+Hi zISSaxlRaMmD9ucQsXB6pauKiGSHaZgDaffPtYEWAPh5umNzHJ5EYMTsX 1jGCQOjCYLIhb1/sj+T5+HqK00ggbpqYokCVIO7DXS/Qw74zVtMBVoNhx 8lJZxg58k9eHqYsrmEclLp4c8i5OuMDQIp+kyFXrtTz9Y/ALITd6Hp8Aa DpM967FR8z6EpgbMbPN3uq9qzoxMtYjKMHelf6FAxI6DUVdgwlsSWzuRM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="446584496" X-IronPort-AV: E=Sophos;i="6.00,260,1681196400"; d="scan'208";a="446584496" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2023 08:16:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="664702536" X-IronPort-AV: E=Sophos;i="6.00,260,1681196400"; d="scan'208";a="664702536" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 21 Jun 2023 08:16:45 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 8D4D0241; Wed, 21 Jun 2023 18:16:56 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, acpica-devel@lists.linuxfoundation.org Cc: "Rafael J. Wysocki" , Len Brown , Andi Shyti , Robert Moore Subject: [PATCH v2 2/2] ACPI: platform: Move SMB0001 HID to the header and reuse Date: Wed, 21 Jun 2023 18:16:52 +0300 Message-Id: <20230621151652.79579-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230621151652.79579-1-andriy.shevchenko@linux.intel.com> References: <20230621151652.79579-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 There are at least two places in the kernel that are using the SMB0001 HID. Make it to be available via acpi_drivers.h header file. While at it, replace hard coded one with a definition. Reviewed-by: Andi Shyti Link: https://lore.kernel.org/r/20230620163534.1042-2-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko --- v2: added tag (Andi) drivers/acpi/acpi_platform.c | 2 +- drivers/i2c/busses/i2c-scmi.c | 3 --- include/acpi/acpi_drivers.h | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 089a98bd18bf..e86f76ee3473 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -20,7 +20,7 @@ #include "internal.h" static const struct acpi_device_id forbidden_id_with_resourses[] = { - {"SMB0001", 0}, /* ACPI SMBUS virtual device */ + {ACPI_SMBUS_MS_HID, 0}, /* ACPI SMBUS virtual device */ { } }; diff --git a/drivers/i2c/busses/i2c-scmi.c b/drivers/i2c/busses/i2c-scmi.c index 104570292241..421735acfa14 100644 --- a/drivers/i2c/busses/i2c-scmi.c +++ b/drivers/i2c/busses/i2c-scmi.c @@ -13,9 +13,6 @@ #include #include -/* SMBUS HID definition as supported by Microsoft Windows */ -#define ACPI_SMBUS_MS_HID "SMB0001" - struct smbus_methods_t { char *mt_info; char *mt_sbr; diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 8372b0e7fd15..b14d165632e7 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -27,6 +27,8 @@ #define ACPI_BAY_HID "LNXIOBAY" #define ACPI_DOCK_HID "LNXDOCK" #define ACPI_ECDT_HID "LNXEC" +/* SMBUS HID definition as supported by Microsoft Windows */ +#define ACPI_SMBUS_MS_HID "SMB0001" /* Quirk for broken IBM BIOSes */ #define ACPI_SMBUS_IBM_HID "SMBUSIBM" -- 2.40.0.1.gaa8946217a0b