From patchwork Wed Mar 7 11:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 130855 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5087894lja; Wed, 7 Mar 2018 03:56:23 -0800 (PST) X-Google-Smtp-Source: AG47ELuYh4s7HsPkkw9BrM7rZz6aXrbw/xtu6rjIj6YP+6gBLi4Xqn0UmzqZ7kLwNpbjUXK+uy5o X-Received: by 10.98.35.68 with SMTP id j65mr22199824pfj.5.1520423783320; Wed, 07 Mar 2018 03:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520423783; cv=none; d=google.com; s=arc-20160816; b=yFSmT4rDIWa8NsMfUul1NqcE4xRID6zNzvGp+XYI5rFP2d+UUWWihYBGH3W2b1IzSn feW4I8ipaHROx1jAnaZ5mGXeAYCPIlNK8GaauFVX6LYaQKFiKJ2Fx2GwVw2g0bpqRTnP mgveibxjwIcO6GDH+IV2AcW9KlQiIdRcMe3KvduCVyDvqrUwDvDqZ8PDHj/vue8+hkCI AWlKp/ae0mbZ6/BGBvtMo7F3biYLt0lqSYZ42oe7nwo5Er2YGPDGb7CPce9ozxj/yobN 2OA3oZyjFAqj4WJt1/O+srKwQ5b6kqWvZ26ppEw4tNg03LLUnlVsAXt7U8aiDs6VTl+D h8Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=jCHGDwMRQi3J9hCmWFfuzv2WHtT07D93ASCQT3UX+R8=; b=VTBN8b5P7K3nGcJUI3RiRFoOBqUvbtJIzCZmijbQd+8vOUInKBbWyOgZ4nhV6w1/bY h5u1+4d1QEq8PemU5dE6Z0sOBJROecOPshpbs4clmor+2bmyQgBqU8WtLbxDLd07Cmne YO+z4R95Ake98YAH0hsz9FRUZwp5hezfOSnqe+p0y9+TLDlH1gLBrZE2TsVeeWN4WpD1 rPqBf8CIdOZBkTpNdmSjgcxCX3bPmlFXLVWdCIpYgi52r/u5ivpSvYiL4KA0H3NQe4S+ xC7yeDCtUR5Fpb2gF4iHWfwHgwogXyp1C7Ro6gtSTo4R9leUAm/mAcJzDQ+NKLxisNB1 hp1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=tYynnlXS; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17-v6si12505557plo.535.2018.03.07.03.56.23 for ; Wed, 07 Mar 2018 03:56:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=tYynnlXS; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754166AbeCGL4W (ORCPT ); Wed, 7 Mar 2018 06:56:22 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47367 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbeCGL4V (ORCPT ); Wed, 7 Mar 2018 06:56:21 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180307115619euoutp01f4f0f60a3f13173bbea8f9bb36329f17~ZoV83tosr0592005920euoutp01v; Wed, 7 Mar 2018 11:56:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180307115619euoutp01f4f0f60a3f13173bbea8f9bb36329f17~ZoV83tosr0592005920euoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520423779; bh=D67GeMi0xuGmf3Mr5pkxH6jm5rcpXxrQB1TqRvGFjSc=; h=From:To:Cc:Subject:Date:References:From; b=tYynnlXSDKi1vvZeG8wtkzuy5C+yyF2rxel7fTodVOwreKggiIdr4AIE6zOarkr50 Ilkl8YgmoUh89J3dPmrrnBcaqpYOnLwpflZllehrFswtZqGhP6uvLMEpSskvkL3s5K gDySaeSsa1h+4WoG2rgEGyHSU/itwizFnb56pg+s= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180307115618eucas1p27f3e47080b8cc5ed7877611c2140dbb3~ZoV8KgIbH0512005120eucas1p2V; Wed, 7 Mar 2018 11:56:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 1A.7F.17380.263DF9A5; Wed, 7 Mar 2018 11:56:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180307115617eucas1p29e319c711b466929e58a4eef177947bc~ZoV7YxV0C0931609316eucas1p2H; Wed, 7 Mar 2018 11:56:17 +0000 (GMT) X-AuditID: cbfec7f4-b4fc79c0000043e4-b5-5a9fd3624d1d Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 5E.3B.04178.163DF9A5; Wed, 7 Mar 2018 11:56:17 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P57007PTYHQJC40@eusync4.samsung.com>; Wed, 07 Mar 2018 11:56:17 +0000 (GMT) From: Marek Szyprowski To: linux-input@vger.kernel.org Cc: Marek Szyprowski , Dmitry Torokhov , Andi Shyti , Chanwoo Choi , Bartlomiej Zolnierkiewicz Subject: [PATCH] Input: stmfts - force async driver probe to avoid 2s delay on boot Date: Wed, 07 Mar 2018 12:56:04 +0100 Message-id: <20180307115604.4031-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRmVeSWpSXmKPExsWy7djP87pJl+dHGdz6JG+x/cgzVouNM9az Wlz/8pzV4vCiF4wWNz99Y7VYe+QuuwObx85Zd9k9+rasYvT4vEkugDmKyyYlNSezLLVI3y6B K+PW5tssBVfYKnb9fMnYwHietYuRg0NCwESi8Z1pFyMnh5DACkaJDW89uhi5gOzPjBJNK64w gyRAanae+csCkVjGKDH180oop4FJ4tqHJ6wgVWwChhJdb7vYQKaKCMhL3DpiClLDLPCYUWL+ qgeMIDXCAqESfSsvsoPYLAKqEu82fQezeQVsJB58fAG1TV5i8fedbCDNEgI3WSV2bP7EBpFw kdiz8BMjhC0s8er4FnYIW0ais+MgE4RdL9H3/QgTRHMPo8TelqlQCWuJw8cvgl3KLMAnMWnb dGaI/3klOtqEIEwPiY+TEiBMR4lr+5QgoRIrMedUO+MERskFjAyrGMVTS4tz01OLjfJSy/WK E3OLS/PS9ZLzczcxAmPr9L/jX3Yw7vqTdIhRgINRiYd3w/55UUKsiWXFlbmHGCU4mJVEeCeX zI8S4k1JrKxKLcqPLyrNSS0+xCjNwaIkzhunURclJJCeWJKanZpakFoEk2Xi4JRqYMwp+v+3 ++Zm3XMXFNKuORwRVAlVM53TvNZpQvSdI//+VOjMLtTdUbHMWWv1idx1FWGvPQ8VH9kmYnjJ pvcma/vNLPZDu3fK3njyMci6eIs+z7IEHlU19TmaeUm7t15X+ro0k7OuSaTprliB/nGdrRO/ ivn+t6i84ntpr0eHxX1BHsW3va0+nUosxRmJhlrMRcWJAGOs4D6pAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJMWRmVeSWpSXmKPExsVy+t/xa7qJl+dHGeycZGmx/cgzVouNM9az Wlz/8pzV4vCiF4wWNz99Y7VYe+QuuwObx85Zd9k9+rasYvT4vEkugDmKyyYlNSezLLVI3y6B K+PW5tssBVfYKnb9fMnYwHietYuRk0NCwERi55m/LF2MXBxCAksYJfbsXcYG4TQxSaxY8Z0F pIpNwFCi620XUIKDQ0RAXuLWEVOQGmaBx4wSJ0+3MYPUCAuESrx8/ZsdxGYRUJV4t+k7mM0r YCPx4OMLZoht8hKLv+9km8DItYCRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkagv7cd+7l5 B+OljcGHGAU4GJV4eDfsnxclxJpYVlyZe4hRgoNZSYR3csn8KCHelMTKqtSi/Pii0pzU4kOM 0hwsSuK85w0qo4QE0hNLUrNTUwtSi2CyTBycUg2MWek7DD50JL2bftu1s+mx8HHP8sptmRM+ S5SGWL0XWMKR2V302LTlX8eG5SW+LzZ9YLxXk7A4/pikzJRwvXdMfq3b224f1blWPHnlef6G K26pT6vDH/35yFYsJW/C0egvzMitumb3VR+PT752e/V4NjKv2ivMIMu1mGPTmfoWvVvzdimU 6UxQYinOSDTUYi4qTgQAvsw4JfMBAAA= X-CMS-MailID: 20180307115617eucas1p29e319c711b466929e58a4eef177947bc X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180307115617eucas1p29e319c711b466929e58a4eef177947bc X-RootMTR: 20180307115617eucas1p29e319c711b466929e58a4eef177947bc References: Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Executing stmfts_power_on() function lasts over 2 seconds, what significantly slows down the boot process if driver is compiled in. Avoid this delay by forcing this driver to be probed asynchronously. Signed-off-by: Marek Szyprowski --- drivers/input/touchscreen/stmfts.c | 1 + 1 file changed, 1 insertion(+) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c index 025bae3853cc..964f1f43f9ba 100644 --- a/drivers/input/touchscreen/stmfts.c +++ b/drivers/input/touchscreen/stmfts.c @@ -812,6 +812,7 @@ static struct i2c_driver stmfts_driver = { .name = STMFTS_DEV_NAME, .of_match_table = of_match_ptr(stmfts_of_match), .pm = &stmfts_pm_ops, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .probe = stmfts_probe, .remove = stmfts_remove,