From patchwork Fri Apr 20 15:16:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrique de Moraes Holschuh X-Patchwork-Id: 10352967 X-Patchwork-Delegate: andy.shevchenko@gmail.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 4560E602B1 for ; Fri, 20 Apr 2018 15:16:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 368E2287A7 for ; Fri, 20 Apr 2018 15:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B1B2287A9; Fri, 20 Apr 2018 15:16:52 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, 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 D121D287A7 for ; Fri, 20 Apr 2018 15:16:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755313AbeDTPQv (ORCPT ); Fri, 20 Apr 2018 11:16:51 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41655 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755326AbeDTPQu (ORCPT ); Fri, 20 Apr 2018 11:16:50 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E059220975; Fri, 20 Apr 2018 11:16:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 20 Apr 2018 11:16:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h=cc :date:from:in-reply-to:in-reply-to:message-id:references :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=JTtnNxDpLezNpoQBJzey3Ek7xuRNv1hdx7BTATOB0Hc=; b=Yp1AZDce 4Un8nlQVIv/HMsx1vKRakk1oLtWL+XqJ+lgiwQpDo1o/6oeOV6GwW5m/R2yPS2DR TkoOxThxwX8PcLEDSuUSeSgZ6VzK80srXXE7bSkHIMyn4R9G7q9JboTF21FVrQ2x qD+R45hsRiaIjWVtgv9efrd1hfl7tpPkFxMlZJwuiZ6dmVytfLCjvPHGA5s1x83k iJsZmYHmNmR/+Ax/sse51Yk/FYeClN1oGkMjXcXHjbZg1QSQSN7wjLKji2hUHMA7 eCVJlSOLsB7bY//Ul8QGfyma4Bln3HsD7glxY1RTXjKp0xVFbmkak9RXHBWlUPK3 gDLpABsvXQa1Dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:in-reply-to :message-id:references:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=JTtnNxDpLezNpoQBJzey3Ek7xuRNv 1hdx7BTATOB0Hc=; b=DodxySfyTBdRuBb8rGIvfxkZ9Y7NQtqH/H6DDkrydjzeO KQoDxycRTQjXD2UqzX3BQCNIAWqIv9FnYOwHSxC0CdVyR77Cak5Twl5efZF4sdLM IwkCmLJ37FgeLJtgOlB9LjgHBtfwPh2e9vhkSA8ZmwzyE4Zd8xE6dg4rQyxaxJUK nxDPlJhqYdg7kS3N/1Fo+RaGYiEAtwpO3ZZ0AHak4SKBB6sYG9StFb0ExjgfSMJI aDocKouDA2INaRhEs6rTR3itVZ+PgoagHJ5JfqLyr+Rbjw00roEXQU76JiphVvO2 U9rO8coxq4a3hAviWTfYTpauPaJAXAJECEXLaSL0w== X-ME-Sender: Received: from khazad-dum.debian.net (unknown [201.82.128.91]) by mail.messagingengine.com (Postfix) with ESMTPA id 84054E5083; Fri, 20 Apr 2018 11:16:49 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 268553401FF5; Fri, 20 Apr 2018 12:16:48 -0300 (-03) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from khazad-dum.debian.net ([127.0.0.1]) by localhost (khazad-dum2.khazad-dum.debian.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3_oAqbIej4pE; Fri, 20 Apr 2018 12:16:47 -0300 (-03) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id AD97C3401FE8; Fri, 20 Apr 2018 12:16:47 -0300 (-03) From: Henrique de Moraes Holschuh To: Platform Driver Cc: Henrique de Moraes Holschuh , Andy Shevchenko , Darren Hart , Christian Kellner , ibm-acpi-devel@lists.sourceforge.net, bberg@redhat.com, Golden_Miller83@protonmail.ch, FP1 Zhang Subject: [UNTESTED 2/3] thinkpad-acpi: do not report thermal sensor state for tablet mode switch Date: Fri, 20 Apr 2018 12:16:28 -0300 Message-Id: <20180420151629.12993-2-hmh@hmh.eng.br> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180420151629.12993-1-hmh@hmh.eng.br> References: <20180420151629.12993-1-hmh@hmh.eng.br> In-Reply-To: <-B_kuLAsoL7HNLV_as9l197VeKXFOu7R-GfEj_oV2TRu40VHMh4SRkEpgaOEMhEqi5-t9Qdk4c8_vMNOXDk_QHuNj-EPKs2afxrL0zTBZxc=@protonmail.ch> References: <-B_kuLAsoL7HNLV_as9l197VeKXFOu7R-GfEj_oV2TRu40VHMh4SRkEpgaOEMhEqi5-t9Qdk4c8_vMNOXDk_QHuNj-EPKs2afxrL0zTBZxc=@protonmail.ch> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We should not do a thermal sensors state dump to the kernel log just because the laptop is reporting that it changed into or out of tablet mode. Signed-off-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index cf25f0121d3b..3d70ef7e8a68 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -4098,7 +4098,7 @@ static bool hotkey_notify_6xxx(const u32 hkey, tpacpi_input_send_tabletsw(); hotkey_tablet_mode_notify_change(); *send_acpi_ev = false; - break; + return true; case TP_HKEY_EV_PALM_DETECTED: case TP_HKEY_EV_PALM_UNDETECTED: