From patchwork Tue Apr 24 19:56:04 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: 10360891 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 DA877602D6 for ; Tue, 24 Apr 2018 19:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CABCC28B76 for ; Tue, 24 Apr 2018 19:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF13F28C51; Tue, 24 Apr 2018 19:56:21 +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 6285D28BB1 for ; Tue, 24 Apr 2018 19:56:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751165AbeDXT4U (ORCPT ); Tue, 24 Apr 2018 15:56:20 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45581 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbeDXT4T (ORCPT ); Tue, 24 Apr 2018 15:56:19 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 05557217D0; Tue, 24 Apr 2018 15:56:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 24 Apr 2018 15:56:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hmh.eng.br; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+t7dxTYLZ6RpgWC5T KktKVZ7OjC5trdtx3ibqeT3GFU=; b=qcsRDPSH72dBOpsgQhQb5MTqsaeThu0dn 5qxL6JbSRz7WlIK7JZE55CKR+QwWHBT8QOAEVRbL+cB8wAFl3jOOuK/yjExyjt6S DueNHGOKB6jFNocT06ih3gnscGecgfYjNZ4r1zkhQeQtynCg9lb+kudnllGBu7HU enzSUAlzSu4Xzv9+gXpRIeozMRsJ5PouOf7y/Ysyvh5pBlZ8bJEMHH7hObw9HtfO axg7r4dHzOOJHtCCt6VRgLLgr/jjN6emZvMYzXzU8q+2thBbjcwx2ZtiKH8rs3IU WInweVCjKtvuJxafyOHce7g4tjV3Ezi+7NIT/M+QYpL61+0vkSTxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=+t7dxTYLZ6RpgWC5TKktKVZ7OjC5trdtx3ibqeT3GFU=; b=XybgT177 g+mC3o6LPo7nCDYFHIRllA9/qMu+kiuY+cwlwZ1nbreKeCmIOhP7bZsY06TIeEgO duXJv/PStrmnbPRfzbPhoE9swFzYUB7UTM8X0SpFjoJDhpggh7FvcPb5mxIG/uA7 8etFsvF5JbsDMLx0FSNlWgcuMlySrXdlWREilNGkwH4aeDXGgSxtFVczqD2Rsos7 hkRmDr9wfOZAdUtW0NBNk/vjbzpI5vbJ/GSwirbtlvBdk0ie/FDnxcT6OKRVzf3b ScBe3y9jn26S9kt627LPtdTXKbOMhSZsOjXUgitVAD8eohXppAPVLyPOuOYZVO0Q zHOnvYS1fOOiIw== X-ME-Sender: Received: from khazad-dum.debian.net (unknown [201.82.128.91]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E7A810263; Tue, 24 Apr 2018 15:56:18 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by localhost.khazad-dum.debian.net (Postfix) with ESMTP id 463253401325; Tue, 24 Apr 2018 16:56:17 -0300 (-03) X-Virus-Scanned: Debian amavisd-new at khazad-dum.debian.net 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 FAI6Q7nz1TUA; Tue, 24 Apr 2018 16:56:16 -0300 (-03) Received: by khazad-dum.debian.net (Postfix, from userid 1000) id D3A3C340131B; Tue, 24 Apr 2018 16:56:16 -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: [PATCH 2/3] thinkpad-acpi: do not report thermal sensor state for tablet mode switch Date: Tue, 24 Apr 2018 16:56:04 -0300 Message-Id: <20180424195605.17526-2-hmh@hmh.eng.br> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: 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 Tested-by: Jordan Glover --- 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: