From patchwork Fri Sep 4 03:26:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "james.chen" X-Patchwork-Id: 7119901 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 E66949F32B for ; Fri, 4 Sep 2015 03:45:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1AA76206BD for ; Fri, 4 Sep 2015 03:45:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC472206BA for ; Fri, 4 Sep 2015 03:45:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757042AbbIDDpa (ORCPT ); Thu, 3 Sep 2015 23:45:30 -0400 Received: from emcscan.emc.com.tw ([192.72.220.5]:56529 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752594AbbIDDpa (ORCPT ); Thu, 3 Sep 2015 23:45:30 -0400 X-Greylist: delayed 605 seconds by postgrey-1.27 at vger.kernel.org; Thu, 03 Sep 2015 23:45:29 EDT Received: from unknown (HELO emc.com.tw) ([192.168.10.1]) by emcscan.emc.com.tw with ESMTP; 04 Sep 2015 11:35:22 +0800 Received: from localhost.localdomain ([192.168.55.122]) by emc.com.tw (8.13.7+Sun/8.13.7) with ESMTP id t843Z2TH018276; Fri, 4 Sep 2015 11:35:02 +0800 (CST) From: "james.chen" To: Dmitry Torokhov , Herman Lin , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Cc: Charlie Mooney , "james.chen" Subject: [PATCH] MAINLINE: Input: elants_i2c: Extend the calibration timeout to 12 second. Date: Fri, 4 Sep 2015 11:26:57 +0800 Message-Id: <1441337217-1351-1-git-send-email-james.chen@emc.com.tw> X-Mailer: git-send-email 1.8.3.2 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 From: "james.chen" As the test result of chrome project buddy(23 inch), the calibration time is about 9.2~10.5 second. So, this patch extend the calibration timeout to 12 second. BUG= none TEST= Build and test on buddy project. Signed-off-by: James Chen --- drivers/input/touchscreen/elants_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index ddac134..17cc20e 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -102,7 +102,7 @@ #define ELAN_FW_PAGESIZE 132 /* calibration timeout definition */ -#define ELAN_CALI_TIMEOUT_MSEC 10000 +#define ELAN_CALI_TIMEOUT_MSEC 12000 #define ELAN_POWERON_DELAY_USEC 500 #define ELAN_RESET_DELAY_MSEC 20