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: 10263873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 872ED6055D for ; Wed, 7 Mar 2018 11:56:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 773B229363 for ; Wed, 7 Mar 2018 11:56:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BAEB294C5; Wed, 7 Mar 2018 11:56:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 238D229363 for ; Wed, 7 Mar 2018 11:56:23 +0000 (UTC) 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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,