Received: by 10.213.65.68 with SMTP id h4csp281433imn; Fri, 23 Mar 2018 04:39:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/2nYBRxnWpHelJ0BVUkmziwQNq8MeWAZOfOeFuZb9ArBAyHTu96erCkC7abRAZpvGxLjD X-Received: by 2002:a17:902:468:: with SMTP id 95-v6mr29470885ple.360.1521805165399; Fri, 23 Mar 2018 04:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521805165; cv=none; d=google.com; s=arc-20160816; b=qOfeS0EqpZhp4ThHkYIl7tLxSSe4HuqUdvhPuQVOz7zyTIdEDKeQ+afYI4OA/ohtGW O4NtLueuZybCFTCKF01lvq+LnWftb9LEnO4ukVeo3Qsft0Y15M6i5RLr62K+4mnLxJal 0lnzdVLKT0TXDGyMX+t6occAPkfe+LJgwwCUGIfYtMefpaQ+jnovYixtfyjG19+3dqLw aFDzB+O0jD1b4DtvSYzgrY/xdDP419vcJRZ1llqqQCN3HqITt7Dfw5XHJMLhbgOa55CK YznfJOJfSvvUjdww8bh+eMzwwyrZNSU6Z1YY4wydeIVL2+UlWXwqNV8pgFv0U0oiYPO6 rG4g== 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=ilc6dHdC0zmZ1Qfujw99Crkz6r3k5s3/99nJbgM/hZg=; b=tbfpKNNg4t6mk2fD+hcJ0J1t5x5tB/KenR4WZrn100cx5T92VdB7eWTKfC54kxcHiK V7xfDoBYz1Ldu9n6s8DGKcMvmOyE/BtVLOrfSAWw6zmUvnYXI4+sPWM3StrZFN4DgpOO TzoDDQEj+/cC/CxHpGSKJAEJFPDWLwJPZjZ/dJE/Zi3lMZ5NII6NuQ+oelKt92+GTYFQ hdSYuZ3r/8JV91qDOYZHbmJM3Caun2njbYQVzCWYEyo5FsxzbiUjP4vQW16sNJqryxge 1jyioUgCtu0mTOj2Z5TD+CsnFDFB8028nI7cSxJ1tBu6DiWufncFxctRnyi9nuyrBtkf 6TOQ== 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 k12si635396pff.356.2018.03.23.04.39.10; Fri, 23 Mar 2018 04:39:25 -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 S1754780AbeCWKEo (ORCPT + 99 others); Fri, 23 Mar 2018 06:04:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39242 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754220AbeCWKEk (ORCPT ); Fri, 23 Mar 2018 06:04:40 -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 82A4913DA; Fri, 23 Mar 2018 10:04:39 +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 4.9 020/177] i2c: i2c-scmi: add a MS HID Date: Fri, 23 Mar 2018 10:52:28 +0100 Message-Id: <20180323094206.080544433@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094205.090519271@linuxfoundation.org> References: <20180323094205.090519271@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 4.9-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);