From patchwork Thu Jun 24 19:50:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 56832 X-Patchwork-Delegate: leann.ogasawara@canonical.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 46BA8B6F3E for ; Fri, 25 Jun 2010 05:51:56 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1ORsSm-0006Cx-Bx; Thu, 24 Jun 2010 20:51:52 +0100 Received: from ch-smtp03.sth.basefarm.net ([80.76.149.214]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1ORsSk-0006CI-G5 for kernel-team@lists.ubuntu.com; Thu, 24 Jun 2010 20:51:50 +0100 Received: from c83-248-196-134.bredband.comhem.se ([83.248.196.134]:47570 helo=alnilam) by ch-smtp03.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1ORsS7-0005T1-9o; Thu, 24 Jun 2010 21:51:14 +0200 Received: by alnilam (sSMTP sendmail emulation); Thu, 24 Jun 2010 21:51:10 +0200 From: "Henrik Rydberg" To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/5] Input: bcm5974 - set the average number of events per MT event packet Date: Thu, 24 Jun 2010 21:50:36 +0200 Message-Id: <1277409038-25887-4-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1277409038-25887-3-git-send-email-rydberg@euromail.se> References: <1277409038-25887-1-git-send-email-rydberg@euromail.se> <1277409038-25887-2-git-send-email-rydberg@euromail.se> <1277409038-25887-3-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.248.196.134 X-Scan-Result: No virus found in message 1ORsS7-0005T1-9o. X-Scan-Signature: ch-smtp03.sth.basefarm.net 1ORsS7-0005T1-9o 58a7328ee2aa13bb724432be3893be61 Cc: Dmitry Torokhov X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com The MT devices produce a lot of data. Tell the underlying input device approximately how many events will be sent per synchronization, to allow for better buffering. The number is a template based on continuously reporting details for each finger on a single hand. Signed-off-by: Henrik Rydberg Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/bcm5974.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index 354c578..ea67c49 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c @@ -312,6 +312,8 @@ static void setup_events_to_report(struct input_dev *input_dev, __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit); __set_bit(BTN_TOOL_QUADTAP, input_dev->keybit); __set_bit(BTN_LEFT, input_dev->keybit); + + input_set_events_per_packet(input_dev, 60); } /* report button data as logical button state */