Received: by 10.223.185.116 with SMTP id b49csp6377217wrg; Wed, 28 Feb 2018 08:24:59 -0800 (PST) X-Google-Smtp-Source: AH8x225UBqHkOSPo9zPJQv39EdDyOSuGLvkxUrFd5TWCSwvcWfm1DFCHpKxk+llBKKMgpc11wuA2 X-Received: by 10.98.7.129 with SMTP id 1mr18314653pfh.133.1519835099277; Wed, 28 Feb 2018 08:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519835099; cv=none; d=google.com; s=arc-20160816; b=JZ6ZCnmeLSbpKNzVo0n/2l0zixBP1zeNKpJrdQhgg68AZG3Cw4QFKpaWWhZFaBVb2m cTN90tdTSaD4YQct7Zl2JKmuKWqKCZrFd4/vjkN/QcpnjRYOpLC1GEc9DRA5NJJ8kUlc nLGl6wzl7mbtQW6Gho+UyPqYXWh+48PkNogws7Tr0K/H2Zb5rfjUqBzGbFclSHmMF9yU E+f9Bhr3JtrJKFakqqZPUiXUh/9lMwUrHvspI+2xTADtyCgp21KJaEw6VSqZjTpGQx7A VA7voKYiHqksC5WwBgLbjHZBqfAE/Kg50UW7P8lFNE+8hWs6bI0FblxmDGqXmGRodItw NEmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=FJ1c3RSnbCNX69c3V0tcaCyDxQ4s4nxgpYOpBprtHY8=; b=q7vKAlNfL/YZ9TfqnvPcpaHk0cBYnKky5Gb1+YX1GSrJKfKdZSZKNAl6TTFRgG3yaI iQDjw0+xS9tbnhLbn2W7JRSkEwpj0lyugwHAC6u6g5FrAertW74E0UwkwPxYES9EtH50 0G3F1auP0AaJenPpovgwGu8TKTA6D4K1tdZcenIPf6l+DfavAG9EIhGrjG8bx4XhnwK3 v5pIIzvGEgoCHmf4ysy8wqy18Uei3LlvuKcRS2gy47WZAsZQ1T9L2TsXd7DwxMLi8HM9 vR4t1/gjP3gZ/+AIBAGxKTisJwf5y4EzV2GDIbTed73ILkP6Pz15dw5axPuI294cOeYX zylg== 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 y5si1189871pgv.738.2018.02.28.08.24.44; Wed, 28 Feb 2018 08:24:59 -0800 (PST) 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 S935183AbeB1QUj (ORCPT + 99 others); Wed, 28 Feb 2018 11:20:39 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35367 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935146AbeB1QUh (ORCPT ); Wed, 28 Feb 2018 11:20:37 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Yo-0006Xc-9V; Wed, 28 Feb 2018 15:22:26 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yk-0000I2-F8; Wed, 28 Feb 2018 15:22:22 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Dmitry Torokhov" , "Oscar Campos" , "Peter Hutterer" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 225/254] Input: trackpoint - assume 3 buttons when buttons detection fails In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Oscar Campos commit 293b915fd9bebf33cdc906516fb28d54649a25ac upstream. Trackpoint buttons detection fails on ThinkPad 570 and 470 series, this makes the middle button of the trackpoint to not being recogized. As I don't believe there is any trackpoint with less than 3 buttons this patch just assumes three buttons when the extended button information read fails. Signed-off-by: Oscar Campos Acked-by: Peter Hutterer Signed-off-by: Dmitry Torokhov [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/input/mouse/trackpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/input/mouse/trackpoint.c +++ b/drivers/input/mouse/trackpoint.c @@ -377,8 +377,8 @@ int trackpoint_detect(struct psmouse *ps return 0; if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) { - psmouse_warn(psmouse, "failed to get extended button data\n"); - button_info = 0; + psmouse_warn(psmouse, "failed to get extended button data, assuming 3 buttons\n"); + button_info = 0x33; } psmouse->private = kzalloc(sizeof(struct trackpoint_data), GFP_KERNEL);