Received: by 10.213.65.68 with SMTP id h4csp235611imn; Fri, 23 Mar 2018 03:34:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELthJdkufq8Ucp2PR2nx8+z0aRyPPpLMFd6R3GJcPGE8LCIrIyAkym5Kn2dvT8Gas+d4Ei8j X-Received: by 10.101.90.10 with SMTP id y10mr6297967pgs.34.1521801257484; Fri, 23 Mar 2018 03:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521801257; cv=none; d=google.com; s=arc-20160816; b=U37A6zfAVQBHpaQbLRH1cXCFlDqAiQFOtWiI5cNPp7vfHaPlzbfVvRkUnP5EioAOWU Rh0gCBPT5cnxy3L5Aa1hHY8thE/SD/tR1Dk1s5a1KikH5NRl9lhwiUk2IoWb+gxic8by BYqqTkZHRAzZ7aUZYZB1QcF/9w2RcEn6eVWWBSxpAokJh/QWI145WtJ96MAHoInYrMcj 7XPWaCxOoMoLWJjzGHFGpSJFHiExtF+bM5wmDQQj1lTIo1QwS1Tc0T4Z5SpQ381d67tN EOt5JHjV4T86W+3bDAciBdR5jvgn5528xjBSWjzuR+TuMCSO6QmcPuCnaIfET8B9209o cWIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1TQoPuRHd/4iDYRFrjy7M+k7/Hgq8NYk/KiaWC8KVvE=; b=O0zrpj6OJT1xll6E7fS+KWQByAnVUEJ1oa5I0RDtDBrzSPv8f7dBtZfzlSZJqGLYMv Wdp6LCWRpOVGxH1xvYeDsR9wSIvPQ2jTF4vCE1ILcgpPNx96tJ2+rMdOMWsmg9oAdIJx TlO7Aikq96ogqZa4HoDxKgvu0JdIO9GOTtfb3djH486rjFOwN58n/cj+Y3ZcA4Bb0WN7 7luuF50TG/x4G5JLeAxa7/sjpHjUaYbe2hAYj2F/PUXJaiUA4K5RdcPYffHsKk8q+TTm EZIgYjs3pG7VBicJHkUphVe+Lnhu4KjD/8DCKE/3VeHbqLB1FCbJ7jIJyPX1GKSkTzOz dXsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u70si5773670pgd.354.2018.03.23.03.34.02; Fri, 23 Mar 2018 03:34:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756248AbeCWKdD (ORCPT + 99 others); Fri, 23 Mar 2018 06:33:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47638 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756105AbeCWKSY (ORCPT ); Fri, 23 Mar 2018 06:18:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DAE99F2F; Fri, 23 Mar 2018 10:18:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Edgar Cherkasov , Michael Brunner , Viktor Krasnov , Jean Delvare , Mika Westerberg , Wolfram Sang , Sasha Levin Subject: [PATCH 3.18 07/47] i2c: i2c-scmi: add a MS HID Date: Fri, 23 Mar 2018 10:54:58 +0100 Message-Id: <20180323094248.435128683@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094248.117679641@linuxfoundation.org> References: <20180323094248.117679641@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Edgar Cherkasov [ Upstream commit e058e7a4bc89104540a8a303682248614b5df6f1 ] Description of the problem: - i2c-scmi driver contains only two identifiers "SMBUS01" and "SMBUSIBM"; - the fist HID (SMBUS01) is clearly defined in "SMBus Control Method Interface Specification, version 1.0": "Each device must specify 'SMBUS01' as its _HID and use a unique _UID value"; - unfortunately, BIOS vendors (like AMI) seem to ignore this requirement and implement "SMB0001" HID instead of "SMBUS01"; - I speculate that they do this because only "SMB0001" is hard coded in Windows SMBus driver produced by Microsoft. This leads to following situation: - SMBus works out of box in Windows but not in Linux; - board vendors are forced to add correct "SMBUS01" HID to BIOS to make SMBus work in Linux. Moreover the same board vendors complain that tools (3-rd party ASL compiler) do not like the "SMBUS01" identifier and produce errors. So they need to constantly patch the compiler for each new version of BIOS. As it is very unlikely that BIOS vendors implement a correct HID in future, I would propose to consider whether it is possible to work around the problem by adding MS HID to the Linux i2c-scmi driver. v2: move the definition of the new HID to the driver itself. Signed-off-by: Edgar Cherkasov Signed-off-by: Michael Brunner Acked-by: Viktor Krasnov Reviewed-by: Jean Delvare Reviewed-by: Mika Westerberg Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-scmi.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/i2c/busses/i2c-scmi.c +++ b/drivers/i2c/busses/i2c-scmi.c @@ -18,6 +18,9 @@ #define ACPI_SMBUS_HC_CLASS "smbus" #define ACPI_SMBUS_HC_DEVICE_NAME "cmi" +/* SMBUS HID definition as supported by Microsoft Windows */ +#define ACPI_SMBUS_MS_HID "SMB0001" + ACPI_MODULE_NAME("smbus_cmi"); struct smbus_methods_t { @@ -51,6 +54,7 @@ static const struct smbus_methods_t ibm_ static const struct acpi_device_id acpi_smbus_cmi_ids[] = { {"SMBUS01", (kernel_ulong_t)&smbus_methods}, {ACPI_SMBUS_IBM_HID, (kernel_ulong_t)&ibm_smbus_methods}, + {ACPI_SMBUS_MS_HID, (kernel_ulong_t)&smbus_methods}, {"", 0} }; MODULE_DEVICE_TABLE(acpi, acpi_smbus_cmi_ids);