From patchwork Wed Jan 10 19:59:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 10156067 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8F7A601A1 for ; Wed, 10 Jan 2018 19:59:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA35A27DA4 for ; Wed, 10 Jan 2018 19:59:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E7772836F; Wed, 10 Jan 2018 19:59:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44DFB27DA4 for ; Wed, 10 Jan 2018 19:59:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751263AbeAJT7w (ORCPT ); Wed, 10 Jan 2018 14:59:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50128 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152AbeAJT7w (ORCPT ); Wed, 10 Jan 2018 14:59:52 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0748E61D1F; Wed, 10 Jan 2018 19:59:52 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-105.ams2.redhat.com [10.36.116.105]) by smtp.corp.redhat.com (Postfix) with ESMTP id E639680CF; Wed, 10 Jan 2018 19:59:50 +0000 (UTC) From: Hans de Goede To: Zhang Rui , Eduardo Valentin Cc: Hans de Goede , linux-pm@vger.kernel.org Subject: [PATCH] thermal: int3400_thermal: Ignore charger events Date: Wed, 10 Jan 2018 20:59:49 +0100 Message-Id: <20180110195949.27535-1-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 10 Jan 2018 19:59:52 +0000 (UTC) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ignore events of type 0x86 which are fired of when plugging in / out the charger, judging from both observed behavior and the AML code on an Asus T100HA. This silences these kernel errors on the T100HA: [ 86.599918] acpi INT3400:00: Unsupported event [0x86] [ 120.133024] acpi INT3400:00: Unsupported event [0x86] Signed-off-by: Hans de Goede --- drivers/thermal/int340x_thermal/int3400_thermal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c b/drivers/thermal/int340x_thermal/int3400_thermal.c index 8ee38f55c7f3..e92e7a2b401a 100644 --- a/drivers/thermal/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/int340x_thermal/int3400_thermal.c @@ -17,6 +17,7 @@ #include "acpi_thermal_rel.h" #define INT3400_THERMAL_TABLE_CHANGED 0x83 +#define INT3400_CHARGER_EVENT 0x86 enum int3400_thermal_uuid { INT3400_THERMAL_PASSIVE_1, @@ -210,6 +211,8 @@ static void int3400_notify(acpi_handle handle, kobject_uevent_env(&priv->thermal->device.kobj, KOBJ_CHANGE, thermal_prop); break; + case INT3400_CHARGER_EVENT: + break; default: dev_err(&priv->adev->dev, "Unsupported event [0x%x]\n", event); break;