From patchwork Wed Sep 9 17:28:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Azael Avalos X-Patchwork-Id: 7147771 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A53639F314 for ; Wed, 9 Sep 2015 17:28:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5C3520A17 for ; Wed, 9 Sep 2015 17:28:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0E6A20A06 for ; Wed, 9 Sep 2015 17:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754979AbbIIR2a (ORCPT ); Wed, 9 Sep 2015 13:28:30 -0400 Received: from mail-ob0-f178.google.com ([209.85.214.178]:34345 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754959AbbIIR20 (ORCPT ); Wed, 9 Sep 2015 13:28:26 -0400 Received: by obbda8 with SMTP id da8so13765448obb.1; Wed, 09 Sep 2015 10:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KMqzTYlVhJNzuoEWm0GlglbAlOOBYfQyLek2iXNZJEU=; b=utHEvJBITSXr4A7diPFYuQIjSfPSy/5jsf/eTa6ovy+gP/ubK0Cf8s9yNfZDXe6VAG 74y+lNxnvxZ80PCyBTkmsKPIVnS9TV5tbTdrStF0lEwNKN2AWZIFUMs6mzyNWCWrjyCk 2B97cMJfI+tHq7Sy2EvT6owrUd31xGiSPVGVuQt7dpmX3CQj03mBEe/77Ngt2pIIgaN3 xOZOXWNOI+/Pactq9pbwQDioac18lieImGaKqT9xL/8E26Q7KPFYOGliz+Zm9eeILe+w VoZewhIzo1yREsGBl+aUu7NEn14LYRASuPY+uXQNikUnxLlOEl/YZw3s0fqHByEEu8Pd UtxA== X-Received: by 10.60.92.199 with SMTP id co7mr27313084oeb.37.1441819706152; Wed, 09 Sep 2015 10:28:26 -0700 (PDT) Received: from Shakuras.scurra.org ([148.210.109.33]) by smtp.gmail.com with ESMTPSA id w8sm4405840oec.7.2015.09.09.10.28.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 10:28:25 -0700 (PDT) From: Azael Avalos To: Darren Hart , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Azael Avalos Subject: [PATCH 2/2] toshiba_acpi: Change default Hotkey enabling value Date: Wed, 9 Sep 2015 11:28:20 -0600 Message-Id: <1441819700-11678-3-git-send-email-coproscefalo@gmail.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1441819700-11678-1-git-send-email-coproscefalo@gmail.com> References: <1441819700-11678-1-git-send-email-coproscefalo@gmail.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver currently uses the hotkey enabling value of 0x09 to enable hotkey events, but windows uses a different value (0x01). All Toshiba laptops accept the following "hotkey" parameters: 0x01 - Enable hotkey and system events. 0x03 - Enable system events only. 0x09 - Enable hotkey events only. 0x0b - Disable (hotkey and system) events. This patch changes the default hotkey enabling value from 0x09 to 0x01, enabling both the hotkey and system events. Signed-off-by: Azael Avalos --- drivers/platform/x86/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 5510d3f..803e967 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -131,7 +131,7 @@ MODULE_LICENSE("GPL"); /* Field definitions */ #define HCI_ACCEL_MASK 0x7fff #define HCI_HOTKEY_DISABLE 0x0b -#define HCI_HOTKEY_ENABLE 0x09 +#define HCI_HOTKEY_ENABLE 0x01 #define HCI_HOTKEY_SPECIAL_FUNCTIONS 0x10 #define HCI_LCD_BRIGHTNESS_BITS 3 #define HCI_LCD_BRIGHTNESS_SHIFT (16-HCI_LCD_BRIGHTNESS_BITS)