From patchwork Sat Feb 14 19:01:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Gottschlag X-Patchwork-Id: 5828821 Return-Path: X-Original-To: patchwork-linux-input@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 954609F380 for ; Sat, 14 Feb 2015 19:02:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C2C6201C8 for ; Sat, 14 Feb 2015 19:02:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDEA0201ED for ; Sat, 14 Feb 2015 19:02:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754140AbbBNTC0 (ORCPT ); Sat, 14 Feb 2015 14:02:26 -0500 Received: from mail-qc0-f176.google.com ([209.85.216.176]:39876 "EHLO mail-qc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753890AbbBNTC0 (ORCPT ); Sat, 14 Feb 2015 14:02:26 -0500 Received: by mail-qc0-f176.google.com with SMTP id b13so12823769qcw.7 for ; Sat, 14 Feb 2015 11:02:25 -0800 (PST) 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=F0CXyYCB/URQBXocrUqCcWi1xl0gGGuVCyo1wjnW7Ms=; b=eEzdaB8N4iqzlOjyAmnYYCabMBtUe3RNT6NHfiRW7F2buyzdrITBjMvOZE1o8csn2k zPuK0xkyKwJx9PNMm/Kdub71gbdw1PthO+uOmMwvDkg22KTeGMa4P0ZB35h2w3uisZig T3rBz+JJDhKPVGHOMdLPLfoCcL7xuglaFcMrWeVfutMT1YtRhpLY9f1yJlR9jvhtiLiu LS37pAJCWSQzurEIMUnakDx6j8Ew1dLlKjYoBwArQPHDkA6n5jx2IJEV838RlH+a/XxW tem6EI8RKAzX098MTVCexxoUTl+fLDUMGXvV7XdpBtWAsr5tinhhm4q4GgslgcRJv5Xb UE/A== X-Received: by 10.140.17.45 with SMTP id 42mr38674834qgc.66.1423940545399; Sat, 14 Feb 2015 11:02:25 -0800 (PST) Received: from mathias-laptop.lan (HSI-KBW-37-209-111-36.hsi15.kabel-badenwuerttemberg.de. [37.209.111.36]) by mx.google.com with ESMTPSA id j6sm10011065qae.21.2015.02.14.11.02.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Feb 2015 11:02:24 -0800 (PST) From: Mathias Gottschlag To: Dmitry Torokhov Cc: Hans de Goede , linux-input@vger.kernel.org, Mathias Gottschlag Subject: [PATCH 3/3] psmouse: Disable resolution/rate changes for FocalTech touchpads. Date: Sat, 14 Feb 2015 20:01:42 +0100 Message-Id: <1423940502-12353-4-git-send-email-mgottschlag@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1423940502-12353-1-git-send-email-mgottschlag@gmail.com> References: <1423940502-12353-1-git-send-email-mgottschlag@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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 These PS/2 commands might already be enough to make FocalTech touchpads stop responding. Signed-off-by: Mathias Gottschlag --- drivers/input/mouse/focaltech.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/input/mouse/focaltech.c b/drivers/input/mouse/focaltech.c index 05919cc..3d879c5 100644 --- a/drivers/input/mouse/focaltech.c +++ b/drivers/input/mouse/focaltech.c @@ -375,6 +375,17 @@ static int focaltech_read_size(struct psmouse *psmouse) return 0; } + +void focaltech_set_resolution(struct psmouse *psmouse, unsigned int resolution) +{ + /* not supported yet */ +} + +static void focaltech_set_rate(struct psmouse *psmouse, unsigned int rate) +{ + /* not supported yet */ +} + int focaltech_init(struct psmouse *psmouse) { struct focaltech_data *priv; @@ -409,6 +420,9 @@ int focaltech_init(struct psmouse *psmouse) psmouse->cleanup = focaltech_reset; /* resync is not supported yet */ psmouse->resync_time = 0; + /* rate/resolution changes are not supported yet */ + psmouse->set_resolution = focaltech_set_resolution; + psmouse->set_rate = focaltech_set_rate; psmouse->skip_standard_init = true;