From patchwork Wed Aug 5 18:51:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 6952501 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4D1D8C05AC for ; Wed, 5 Aug 2015 18:51:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5593F205DB for ; Wed, 5 Aug 2015 18:51:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 80A7A205D8 for ; Wed, 5 Aug 2015 18:51:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbbHESvl (ORCPT ); Wed, 5 Aug 2015 14:51:41 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:33332 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752162AbbHESvk (ORCPT ); Wed, 5 Aug 2015 14:51:40 -0400 Received: by pdrh1 with SMTP id h1so4001684pdr.0 for ; Wed, 05 Aug 2015 11:51:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=lIXIh1qf0SKLl7A6H29jXfy8aHwci3iff8sA4yqpu48=; b=C3EmaNEKLN5dO6D9H/dINOaFjSBRc1CBp/P7zJlBTLIRIoZc/ZvxfY6lystO/ANmKQ ZAwzq8HPJ/04DFfo3YA/19go/kSPxO7/n6z9lcqk9oMIcNTzojxJSm2K1gjKyxvAXYQ7 stzEOhmVAYNTto8o1G6a4V4pJSYWLVj9MwE0H4G4dszaUxw3lFp5UVTsO8K4Oonu503d VyOexT1mhxj11ZdR6YlEnyiAOf9uZHs0tJ6ylufjKPnk0RHuo4TbcPprhaqwv3zGlfwc FOlZhFSJ5+SJFQP8zG6H6/VZr8kowcOnfzU+2/MQ11YLiNB9yLSNUreA4cyUPXK+7LYL jHyg== X-Gm-Message-State: ALoCoQmOyOHS9lAXIMSTZfSxEfgL5eIbQRrIKy4gvCaO0oMJGsfR+jacRS3jEjSLJVWw0U6yINuX X-Received: by 10.70.125.129 with SMTP id mq1mr22406871pdb.19.1438800700009; Wed, 05 Aug 2015 11:51:40 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1301:d149:1af7:b027:1bec]) by smtp.gmail.com with ESMTPSA id hz5sm3717996pbb.39.2015.08.05.11.51.39 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Aug 2015 11:51:39 -0700 (PDT) Date: Wed, 5 Aug 2015 11:51:37 -0700 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Benson Leung , Charlie Mooney , James Chen , Scott Liu , linux-kernel@vger.kernel.org Subject: [PATCH] Input: elants_i2c - enable asynchronous probing Message-ID: <20150805185137.GA31337@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 It takes a bit of time to go through controller power up sequence and initialization. To not stall the overall boot progress let's probe the controller asynchronously, given that userspace is usually prepared for hot-plugging of input devices and thus does not rely on particular ordering. Signed-off-by: Dmitry Torokhov Reviewed-by: Benson Leung Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/elants_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index 1912265..6f71556 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -1410,6 +1410,7 @@ static struct i2c_driver elants_i2c_driver = { .pm = &elants_i2c_pm_ops, .acpi_match_table = ACPI_PTR(elants_acpi_id), .of_match_table = of_match_ptr(elants_of_match), + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, }; module_i2c_driver(elants_i2c_driver);