Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp193766iob; Mon, 2 May 2022 16:51:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxisbsqZek5sotytDfVUaEPzh1tztaUYprK/KTrLpAxSadc+ccSVq6EB+mUCtgxcwhwPki X-Received: by 2002:a17:90b:1c88:b0:1b8:a77e:c9cb with SMTP id oo8-20020a17090b1c8800b001b8a77ec9cbmr1724042pjb.205.1651535471238; Mon, 02 May 2022 16:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651535471; cv=none; d=google.com; s=arc-20160816; b=oMtuLDgykYX3vlKduR1rqxN3avT8MzRmTI8QiqQ69TWwSNaBwrlpLJ7kPuwopRbbZh ZTx4M4Xb9ua4Wnd32dlRg5dMRvgabTzD8UVE8D5uiOyF/AhoBS/O/LGgwM8uQrlUsdX2 xKLDYskmUpdYcYgpbQ17/UAV91PclPOAZcjJ63JRhGOSsVJ/5xwt2FcmNZ3YZkKhGIqs diN8/TEtvmGQpRNYYDEMf2jCOuyPVhN+9wBTMlFXnJ7G0xHSnjQQMEJI8SQu8SmSJPzq EMiFVCAVc6tB1fGY8NHs0DEnjpl6RkwQKVLzHCoPuDVK+ql4VS5vhefP0+sWF4hVtnq+ 6TuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JWMAn/Bn8ohxKs6BvOjyYpQ71mruJeatGTg+RHO7TDU=; b=rK3wG8c/qqpRhq5CTBwVb7OvyTKYI9q4AnuI9lFKx7c+d1Y+c9nfJ3ZZ/i5kH6WaaA YsJ7k6oZ4+ViFjMTtJqokDU6FekcL7hY78X2zXR5ktOP4vH7b7HYFMUJ97Veg46zc2pm 8w6Oy+Pe9ABxcsUKED+UcdufsX3ou9Uo76nm4vlrNFATJ/3M20P5i/GmqCDpZ1CpmnIn ZI/dvBwxZCh3SNFrdFkV1QgQ4Z08RIQt4hAOYC5UCdZozLBPROXj10D2usrLU9nK4HL+ KWxL8v/3MuTYM/sGd9qa3g7LG78Jq394BecXTddN5ahB25yHzpoEuNRXqAjJLAfIHOpw O+Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hqE8BOyx; 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=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w15-20020a63a74f000000b0039934530043si16348065pgo.293.2022.05.02.16.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:51:11 -0700 (PDT) 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=@linaro.org header.s=google header.b=hqE8BOyx; 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=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFC21DF6A; Mon, 2 May 2022 16:51:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377039AbiD2QNF (ORCPT + 99 others); Fri, 29 Apr 2022 12:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378470AbiD2QND (ORCPT ); Fri, 29 Apr 2022 12:13:03 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69942D76DE for ; Fri, 29 Apr 2022 09:09:44 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id u3so11408436wrg.3 for ; Fri, 29 Apr 2022 09:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JWMAn/Bn8ohxKs6BvOjyYpQ71mruJeatGTg+RHO7TDU=; b=hqE8BOyx/OO+QvPg/NFycXPm1WifkvLBScYG4S0tODof3BwXf9egD1HH+z/2HRa88h Wl7/0Mu5TyFJxNZvCEJOUAWZbSqhagKV5cXC1EPTltZOm4HOQfkYRJFYm+NO0elI/Kf6 oRRHthAd3vSAuzSLhR2udVVEaxcYJsuu039DoQrrV9fVH8i+353v34sqg/cpDy+pHydX St2j+JlRt5iJfrZkM+stvUmzv5ZqTFhipJgLkOli6YzuyxEbZXQ+esnxPXD3n/jPxNmF C/pbaVSfPlAjSN6oCRYpyTD569PX15RVUkHolHBFAJbegJQC9NB6kcsLRyG+uWkFk+Ix JKEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JWMAn/Bn8ohxKs6BvOjyYpQ71mruJeatGTg+RHO7TDU=; b=2C1Lwjt5hhpdEZAaw6TaPvwzkYT762IMaUDwuKrbNqWfd355m5DgXNDpWW5Ftzjgdi Um8sZWk0hRkiME72/4kTx30Bytn2tazEujt7+XjKROI3R+G7nAAvrZPvf8ePW57Z1ZJk H/LJyetyVGQxLhe7dXn2eIy14dxJn3E9QVMErsbXT1qy+t4HzAwys3c3kTmLGWgimsFG WBMqWiEwhuTCgqqHPfhWnKYpqBlhUJbfD6ubuQNyNwbvyahJeHy0w4augqpYbdTroL6G 3w81Teh514aLpawoQsLqdYV6D/gEBVpUOtMyC9GfIUiX5QRLprDPoS2fwR4vQp87ByQq Vx/w== X-Gm-Message-State: AOAM531+u7IG/fQseeX+YMZfUUoD9ZPD3KXVlr+qCpTHL0Sg960uR5ZG +gYDq3MbWBIFEDV3VhkhWDTqamlXHgeehA== X-Received: by 2002:a05:6000:1844:b0:20a:f429:f80c with SMTP id c4-20020a056000184400b0020af429f80cmr8474722wri.643.1651248582988; Fri, 29 Apr 2022 09:09:42 -0700 (PDT) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id z11-20020a05600c220b00b00393ffde5f5fsm7827863wml.36.2022.04.29.09.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:09:42 -0700 (PDT) From: Srinivas Kandagatla To: vkoul@kernel.org Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, Srinivas Kandagatla , Srinivasa Rao Mandadapu Subject: [PATCH] soundwire: qcom: adjust autoenumeration timeout Date: Fri, 29 Apr 2022 17:09:28 +0100 Message-Id: <20220429160928.24614-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Currently timeout for autoenumeration during probe and bus reset is set to 2 secs which is really a big value. This can have an adverse effect on boot time if the slave device is not ready/reset. This was the case with wcd938x which was not reset yet but we spent 2 secs waiting in the soundwire controller probe. Reduce this time to 1/10 of Hz which should be good enough time to finish autoenumeration if any slaves are available on the bus. Reported-by: Srinivasa Rao Mandadapu Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index da1ad7ebb1aa..432e5cb9a4d2 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -105,7 +105,7 @@ #define SWRM_SPECIAL_CMD_ID 0xF #define MAX_FREQ_NUM 1 -#define TIMEOUT_MS (2 * HZ) +#define TIMEOUT_MS (HZ/10) #define QCOM_SWRM_MAX_RD_LEN 0x1 #define QCOM_SDW_MAX_PORTS 14 #define DEFAULT_CLK_FREQ 9600000 -- 2.21.0