aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2010-12-13 09:44:34 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-13 09:44:34 +0000
commit2cf5b7ad760b1699d9060ea0ab5601375a5ad43f (patch)
treeb2413429f879e765084cf1e97be35de48e308506
parent202b957cd5113ca31ab1d67143441a7ace606a66 (diff)
downloadmrst-s0i3-test-2cf5b7ad760b1699d9060ea0ab5601375a5ad43f.tar.gz
mrst-s0i3-test-2cf5b7ad760b1699d9060ea0ab5601375a5ad43f.tar.xz
mrst-s0i3-test-2cf5b7ad760b1699d9060ea0ab5601375a5ad43f.zip
Return-Path: <meego-kernel-bounces@lists.meego.com>
X-Original-To: alan@linux.intel.com Delivered-To: alan@linux.intel.com Received: from orsmga001.jf.intel.com (orsmga001.jf.intel.com [10.7.209.18]) by linux.intel.com (Postfix) with ESMTP id E8FCC6A447F; Mon, 6 Dec 2010 16:31:39 -0800 (PST) Received: from orsmga102-1.jf.intel.com (HELO mga09.intel.com) ([10.7.208.27]) by orsmga001-1.jf.intel.com with ESMTP; 06 Dec 2010 16:31:39 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMAAKQO/UzQKylBmWdsb2JhbACVJo4SFQEBAQEBCAsKBxEivyGFSQSEX4UehAoJBQ X-IronPort-AV: E=Sophos;i="4.59,308,1288594800"; d="scan'208";a="843959646" Received: from mail.meego.com ([208.43.41.65]) by mtab.intel.com with ESMTP; 06 Dec 2010 16:27:57 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP id 39CB910AFA6; Mon, 6 Dec 2010 16:27:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.moblin.org Received: from mail.meego.com ([127.0.0.1]) by localhost (mail.moblin.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JsoPdIdPFqdY; Mon, 6 Dec 2010 16:27:56 -0800 (PST) Received: from otc01.sl.ssgisp.com (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP; Mon, 6 Dec 2010 16:27:56 -0800 (PST) X-Original-To: meego-kernel@meego.com Delivered-To: meego-kernel@meego.com Received: from localhost (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP id C9BAD10AF9C for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.moblin.org Received: from mail.meego.com ([127.0.0.1]) by localhost (mail.moblin.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a1KIaCGW2w+Y for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:46 -0800 (PST) Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.meego.com (Postfix) with ESMTP for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:45 -0800 (PST) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id oB70RjQB008851 for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:45 -0800 (PST) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 6 Dec 2010 16:27:45 -0800 Received: from localhost6.localdomain6 ([10.3.1.103]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 6 Dec 2010 16:27:45 -0800 To: meego-kernel@meego.com From: Ken Lierman <ken.lierman@windriver.com> Date: Mon, 06 Dec 2010 16:30:08 -0800 Message-ID: <20101207003008.12500.61165.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-OriginalArrivalTime: 07 Dec 2010 00:27:45.0487 (UTC) FILETIME=[919625F0:01CB95A5] Subject: [Meego-kernel] [PATCH] Change the clock divider to slow the polling X-BeenThere: meego-kernel@lists.meego.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: "MeeGo kernel discussions and patches." <meego-kernel.lists.meego.com> List-Unsubscribe: <http://lists.meego.com/options/meego-kernel>, <mailto:meego-kernel-request@lists.meego.com?subject=unsubscribe> List-Archive: <http://lists.meego.com/pipermail/meego-kernel> List-Post: <mailto:meego-kernel@lists.meego.com> List-Help: <mailto:meego-kernel-request@lists.meego.com?subject=help> List-Subscribe: <http://lists.meego.com/listinfo/meego-kernel>, <mailto:meego-kernel-request@lists.meego.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: meego-kernel-bounces@lists.meego.com Errors-To: meego-kernel-bounces@lists.meego.com On some hardware, getting double keys for single keypresses. Slow the clock slightly (rate requested by the customer) to avoid double key detects on formfactor hardware that has higher capacitance across the lines. Signed-off-by: Ken Lierman <ken.lierman@windriver.com>
-rw-r--r--drivers/input/keyboard/tc35894xbg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/keyboard/tc35894xbg.c b/drivers/input/keyboard/tc35894xbg.c
index 68e197dbe20..02a32b234a6 100644
--- a/drivers/input/keyboard/tc35894xbg.c
+++ b/drivers/input/keyboard/tc35894xbg.c
@@ -176,7 +176,9 @@ static int keypad_configure(struct tc35894xbg_keypad_chip *tc)
dev_dbg(&tc->client->dev, "keypad internal clock setting\n");
/* CLKCFG : select the RC-osc:2MHZ, disable doubler, divider:2 */
/* CLK_IN = internal clock / 2 = 65KHZ / 2 = 32KHZ */
- keypad_write(tc, 2, TC_REG_CLKCFG, TC_VAL_CLKSRCSEL | 0x01);
+ keypad_write(tc, 2, TC_REG_CLKCFG,
+ (TC_VAL_CLKSRCSEL | 0x01) |
+ (TC_VAL_CLKDIV_MASK & 0x04));
dev_dbg(&tc->client->dev, "keypad keyboard setting\n");
/* keyboard settings */