Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp689979pxm; Fri, 25 Feb 2022 17:21:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyq1Ktkw3MwHx8dcc8k5e9GeoYMxHXfchEGvJnvVDH7IyTih/bs0j34q7+Q0RPLgM6dsEYh X-Received: by 2002:a17:90a:5d0b:b0:1b9:4720:6f9e with SMTP id s11-20020a17090a5d0b00b001b947206f9emr5777851pji.72.1645838478778; Fri, 25 Feb 2022 17:21:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645838478; cv=none; d=google.com; s=arc-20160816; b=NgpzHh0BFFEH5cHYvUvsh1/sWGOSytZdPuxERPoOfax3+sGjK2pS55TekwogXTVkuW c+YpgI+lfCD4sZ8XK43yMyecWVpnf6RXj7ymxlD080gy1yShRjH1W8ewM/BrXtcA2/bj iyTh+3aXeP6nyQzoODWiAqWnaohNDkc276XLrQ5v10iZD1m6lyLPdhjACF7PD1OyF1Da ZaA9g0qhRSzd8+UVj3z6lloQGz4x2rsFCI9SYkfSQYsNUqx/lejFeVkPPmyDXoY0IfPW wlj76NB+XNbJY8uK3ae5eNe8fSh29E/cPLFdrM1xsH27cNTCEWdZ6X7io7tTtXEEPl+c YNPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=u4Jd9kNBAg8EIAfWuRUkFsMZH9ytNJSlFwtOXxXUdYg=; b=w34wPbU28l+KKC/bHbKT/4gjtRWPBavb0cFtF7LBPGw/7vgwudF5CiYfs4tePGnsih zahp0tAJXE5RXS5N+DfEvugW66+ayjfavVQzysHH2qzIaWSEcgCvj6pgZQXckYfbDuQv r5nu6byyR5VyV4h3q2aaOFcnvcCDHpFyZh6BHJdpdAmm2K68xM5WNZs5Y0RjkZCRrHYU m72UC6ONwbAap47/aojTSSycT/O6/UgUWJ4hTPiBFCSX20K5o1juaPXwHB0kEajTQG56 ANyn3hL4lKNXGD0ihtwONWbgMydNJWsd0M1dCgjxi89n7v1xYB1yrjbspzpgodvS827i YOhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=x6QHEfou; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z12-20020a63b90c000000b003745c1a33fcsi3251522pge.696.2022.02.25.17.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 17:21:18 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=x6QHEfou; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 30F3022D646; Fri, 25 Feb 2022 17:21:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241840AbiBYOpQ (ORCPT + 99 others); Fri, 25 Feb 2022 09:45:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241837AbiBYOpL (ORCPT ); Fri, 25 Feb 2022 09:45:11 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B417320D52A; Fri, 25 Feb 2022 06:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645800279; x=1677336279; h=from:to:cc:subject:date:message-id:mime-version; bh=u4Jd9kNBAg8EIAfWuRUkFsMZH9ytNJSlFwtOXxXUdYg=; b=x6QHEfouK27lusVHaEgW1F2us0G7RuUoGHqDT8DCmbv56h9H/jqVGc/C 9H5365yiZALwKljrYxl89BYAe362kyqe9MoytcoHpeGY8xUt3nqkPLgrB 0x9OY91S4DX74xtj7XE1MncMGKDivbcAT0falgw+NeRAhHjZYqk2kI7Mf Q=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 25 Feb 2022 06:44:39 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2022 06:44:38 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Fri, 25 Feb 2022 06:44:38 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Fri, 25 Feb 2022 06:44:32 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v2] soundwire: qcom: remove redundant wait for completion Date: Fri, 25 Feb 2022 20:14:17 +0530 Message-ID: <1645800257-27025-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove wait_for_completion_timeout from soundwire probe as it seems unnecessary and device enumeration is anyway not happening here, hence this api is blocking till it completes max wait time. Also, as device enumeration event is dependent on wcd938x probe to be completed, its of no use waiting here. Waiting here increasing the boot time almost 4 seconds and impacting other modules like touch screen. Fixes: 06dd96738d618 ("soundwire: qcom: wait for enumeration to be complete in probe") Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- drivers/soundwire/qcom.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 5481341..9a32a24 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1309,8 +1309,6 @@ static int qcom_swrm_probe(struct platform_device *pdev) } qcom_swrm_init(ctrl); - wait_for_completion_timeout(&ctrl->enumeration, - msecs_to_jiffies(TIMEOUT_MS)); ret = qcom_swrm_register_dais(ctrl); if (ret) goto err_master_add; -- 2.7.4