From patchwork Mon Mar 13 07:04:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masaki Ota <012nexus@gmail.com> X-Patchwork-Id: 9619937 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 E28DF604CC for ; Mon, 13 Mar 2017 07:04:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D26972843D for ; Mon, 13 Mar 2017 07:04:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4F8528455; Mon, 13 Mar 2017 07:04:44 +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=-5.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID 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 55CA52843D for ; Mon, 13 Mar 2017 07:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbdCMHEb (ORCPT ); Mon, 13 Mar 2017 03:04:31 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35669 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751142AbdCMHEW (ORCPT ); Mon, 13 Mar 2017 03:04:22 -0400 Received: by mail-pg0-f68.google.com with SMTP id g2so12717665pge.2; Mon, 13 Mar 2017 00:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iauqaqsHjiGMh1i+ECwd5VsCtjx+zKx+YYF8QxSGEHU=; b=e7Az36qgQKJa2gxF+4hIw27bZrqgdR4LX0D9mGR1brzTgZcpTX5VRh1khZ0lCH0pCs 92tQUCaoiUbOPA5Q2yKv391IMcUxQjHIXLAE/PeBOL+ZEj9WqE+rwJjtcYDciV6fxe5x Y3a1qA82zZ4SIWAAZI+raN5kLbimcK2Pn/DCw91RwWw4cuGrGKTCOyvdPvyY84ls21I/ XAFZcbDTgp61atULhKcMvquUauE2OioNbz/TLq7jOwClRUHJ259llklcJvTlfrYEIzJq qe1H4OnpInWGEHF8j0zbXCReg9dNHK2Mk7ez61rmRf2BVE8khUKxCe8RXEjqacRSo9ru gGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iauqaqsHjiGMh1i+ECwd5VsCtjx+zKx+YYF8QxSGEHU=; b=iUEQgSqVCOPAfgp1RZ4XZjiYRSuXDJTTHD/3iUyM55hrOe+KhF3PGFRikc/wuBdAOu hrFz86d9xW2wkREUaPzhqUMY7MMJmMB++mBOOIi2+D2bd3dHTcyx80PQB3aUL3GN/7Sw nxeUf1LVb1vpRDjbAihDJPOFp3OYY3QDqnouCLxtyrnZqIS0gGvkH3spVoM3kcXmCGDo nG/FwOsuQgT6J1eTDCmoZYMktsUvvwnTeOLCEGc3aQ4TuRkaGfvInnNdADCqmO5g/cuW RTiOO8QOYuiLK8t/vuNbm58G7PMrudyuUr8+/pSjcB9YN4yo1NgmeqG3a6BIX/Mahu46 rplg== X-Gm-Message-State: AMke39mVdvHaqq/JwsFVeXzYx8P6Blg5wkInjIgfzn2Fzc4mwo2Heuasw7FTADwjfPTseQ== X-Received: by 10.99.47.199 with SMTP id v190mr34186080pgv.26.1489388660446; Mon, 13 Mar 2017 00:04:20 -0700 (PDT) Received: from localhost (p2239-ipad303aobadori.miyagi.ocn.ne.jp. [123.216.73.239]) by smtp.gmail.com with ESMTPSA id t6sm31557798pgt.8.2017.03.13.00.04.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Mar 2017 00:04:19 -0700 (PDT) From: Masaki Ota <012nexus@gmail.com> X-Google-Original-From: Masaki Ota To: dmitry.torokhov@gmail.com, linux-kernel@paulsd.com, nick.m.fletcher@gmail.com Cc: joseph.salisbury@canonical.com, ben@smart-cactus.org, mhocko@suse.com, pali.rohar@gmail.com, rydberg@bitmath.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, masaki.ota@jp.alps.com Subject: [PATCH 2/2] Fix the issue that V8 Button pad Stick button does not work Date: Mon, 13 Mar 2017 16:04:10 +0900 Message-Id: <20170313070410.4710-2-masaki.ota@jp.alps.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170313070410.4710-1-masaki.ota@jp.alps.com> References: <20170313070410.4710-1-masaki.ota@jp.alps.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Masaki Ota - V8 Button pad Stick Right and Middle button don't work. - Alps stick devices have physical buttons absolutely, so delete "ALPS_BUTTONPAD" check Flag from Stick button process. Signed-off-by: Masaki Ota Acked-by: Pali Rohár --- drivers/input/mouse/alps.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index a70c860..a13404f 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c @@ -1287,10 +1287,8 @@ static int alps_decode_ss4_v2(struct alps_fields *f, /* handle buttons */ if (pkt_id == SS4_PACKET_ID_STICK) { f->ts_left = !!(SS4_BTN_V2(p) & 0x01); - if (!(priv->flags & ALPS_BUTTONPAD)) { - f->ts_right = !!(SS4_BTN_V2(p) & 0x02); - f->ts_middle = !!(SS4_BTN_V2(p) & 0x04); - } + f->ts_right = !!(SS4_BTN_V2(p) & 0x02); + f->ts_middle = !!(SS4_BTN_V2(p) & 0x04); } else { f->left = !!(SS4_BTN_V2(p) & 0x01); if (!(priv->flags & ALPS_BUTTONPAD)) {