Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1333479pxm; Sat, 26 Feb 2022 12:06:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeQMljUv2ULlTJlNC/OrqNL2uSoKqKZbL8XlLwYVC9NfttQcsGY+NpkG+PkiaSi6pMpkG/ X-Received: by 2002:aa7:88ce:0:b0:4f3:645a:5bd7 with SMTP id k14-20020aa788ce000000b004f3645a5bd7mr13968269pff.57.1645905964261; Sat, 26 Feb 2022 12:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645905964; cv=none; d=google.com; s=arc-20160816; b=i53gbosPEVUGKzokqML/+tfgO/jaujYFbsqOY9A+RQm4/xyf1uF6XijVcCXayt9h/Y Rar4KJEHlIKQk/rXXjqVn8/T47Bxb1WLCuDG0+G5KtAnD40LygujgABo5et4AS17ysgg /QDzDZcqPiG1WmoPlgFtqGW7amV1eiEM0q9yFXevauLFNb15IVSIh7jeLCO19rN9Rhbm gZ85zyqdA2zMRaUmFGI2SsNUWin6EXTrECM04ouhgUCscfLHOdL2P2WGTqCcBaV7AV2y +I+1jha3YOaOziB6vxXfoV+I6ygZ8LmGi6KdFp4hXx7FZq4itYKHalH9NVNxhwjr1mkp mpbw== 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=4iZ92ymE7jSNJuadElFGgWcrZRahUwKuEPZoUCSBzrA=; b=IwP12nOYbZJrv6zXQB3rWGDPi28pPnFpA/cK7NTECGxF9mmTrMKM2TCj/IpwmRRrhv y8pyPac/b05jin2IFdG6yD6sTZGE4q3/USw+Zvn0BlsLOVNnUsrX0/1X2B4H0K6SS6aS /T4J5k2PjnIVTRy1hJOx9Dezy8KZGbjP5wD6DNVRq+fLAbp4T+VhWR1PXsrwRPIxFHyq FG2hVRr4jfjaNGCpuzS4BC50HCmO9wObunktNS1OKn1O5jcasWeMXaBPEkrwFB5hbgY7 gclyHAdOf/Pp62IUKiWVvGM9Ahenv5JgBmrIWGnN1KmY8zy3hV/MzlMGIGnrysKVxXrL H34w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="OPKSjnl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k18-20020a63ff12000000b00373e14b3b79si5499361pgi.74.2022.02.26.12.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:06:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="OPKSjnl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 748DF211EE9; Sat, 26 Feb 2022 12:04:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231666AbiBZMqR (ORCPT + 99 others); Sat, 26 Feb 2022 07:46:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbiBZMqP (ORCPT ); Sat, 26 Feb 2022 07:46:15 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE9E1E4838; Sat, 26 Feb 2022 04:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645879541; x=1677415541; h=from:to:cc:subject:date:message-id:mime-version; bh=4iZ92ymE7jSNJuadElFGgWcrZRahUwKuEPZoUCSBzrA=; b=OPKSjnl/k6XWvo4dFJ5fI26zVxREM8vXmIJJ8ivmnlJB32/bS6YjOMjz bf3KpjpHgM5lsd1fJPxI4pGkOhDv42o1nL2OosxKzWyVbwRirsMiU0SSr a5pKb109BxUBZNynDnlE55AjuvplglSIrgPP0gnC7YxcHuSFwmKvYVRgh I=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Feb 2022 04:45:40 -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; 26 Feb 2022 04:45:39 -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; Sat, 26 Feb 2022 04:45:39 -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; Sat, 26 Feb 2022 04:45:33 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH] "soundwire: qcom: revert wait for enumeration to be complete in probe" Date: Sat, 26 Feb 2022 18:15:18 +0530 Message-ID: <1645879518-14658-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: nasanex01a.na.qualcomm.com (10.52.223.231) 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 Revert wait for enumeration 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. Revert: commit 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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 5481341..9eb31ba 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -133,7 +133,6 @@ struct qcom_swrm_ctrl { struct dentry *debugfs; #endif struct completion broadcast; - struct completion enumeration; struct work_struct slave_work; /* Port alloc/free lock */ struct mutex port_lock; @@ -486,7 +485,6 @@ static int qcom_swrm_enumerate(struct sdw_bus *bus) } } - complete(&ctrl->enumeration); return 0; } @@ -1262,7 +1260,6 @@ static int qcom_swrm_probe(struct platform_device *pdev) dev_set_drvdata(&pdev->dev, ctrl); mutex_init(&ctrl->port_lock); init_completion(&ctrl->broadcast); - init_completion(&ctrl->enumeration); ctrl->bus.ops = &qcom_swrm_ops; ctrl->bus.port_ops = &qcom_swrm_port_ops; @@ -1309,8 +1306,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