Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp237245lqb; Thu, 23 May 2024 17:13:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmm0AIbIihwO/jGW9kg52eeUfw9sa/leDfexTgULUlvMd2fZSLPBG1CoqememmdYp7/OAHtCKAXtuoY3gTQAber5NvftZr1VkA7bOLgQ== X-Google-Smtp-Source: AGHT+IHFc63htZVTfOTfZ0rvYUkl79f7F8fpxBfwPCNzu8SzoQlBM0CWLkpXJhW+fD/XP9sn+wz9 X-Received: by 2002:a05:620a:72b5:b0:792:d298:7d68 with SMTP id af79cd13be357-794ab083f0cmr81752485a.23.1716509589435; Thu, 23 May 2024 17:13:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716509589; cv=pass; d=google.com; s=arc-20160816; b=UBWEKhNNhuIF4bQpjjEt2sANwcV6FodFWZeLbx1mLU5O0V0d9DR0aak9tcZFkOZ9X5 PCy41niY18qknYwWUJNyVRkCh8cRZ+ZSARkxcpCaHjWKHaD4Faa0kMwoYwN+9np2SNeZ zow08RdaFHEWtCjF4CGdETvJ5xp3VtX0yircqlJsgG9rs+AiKz76szXAjh9tu9lLZYik VGw7P/ojnUvEwPLvR2Fh99d8fVwaAA6fry7vMaJhvKmvU+7DMj9cZLjPzkTVi2T5VrGT RJAIALTZP+JSuRImHqpBdmX3urGPV8U4cB2Y16qrs6w/klEuWU+yWNoDpwf88KY7OJNU XEgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Okp2NIuxOum+UIJx68gt8HGPT3ztWG2atEl9RFxfZvI=; fh=alya9RESAvST9l9KF9dhflA/rrEE+1L8tn280X7aOio=; b=YjAAqYtlpotQ+W/AA4qS2DCK8+35hnzZRbHUqhegn6E8DGULdXqhUQXMJyMBBLvpn/ 9UiAid8mmv7trKc6jFYxG//IF/W8JjfjYD3FHdHH0b0z/MjOwmY6LLKPq8rH4ESXTQyN Lf/uMlont1DxxhJ+6aDN9LyQJi+mU++lGUzZ8bCIgdfV883uT4eaptSCHEoPYrqzjGPT jVt6V8hz5AQbdBMgnVjpPQNlTSYJvRjlmFDIkR7YP8QQ+BeZjoTqPsHx+kg3ELmnmgQm /KR7k++V7m0QetTE7hu/dDdetPC72Jq6oySlNo4Nrp/gPxSh2ZcAVNh54+IzxozFwcIc B9aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mHCP0x7I; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-188136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abcac242si37090985a.106.2024.05.23.17.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 17:13:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mHCP0x7I; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-188136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ACB6C1C21A7C for ; Fri, 24 May 2024 00:12:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 171033A267; Fri, 24 May 2024 00:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mHCP0x7I" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0435812; Fri, 24 May 2024 00:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716509480; cv=none; b=ADbDs2YJr/tcf+ktrWFzIOLwZNSqDWde4JJmjVY+GQ+fKGppDlHVlk5+Ft5wpjTAemulNtk4pkAe+wP8slaqk0vfGMLKPo717di2P1f1RYJyTw1DdDlQxf8Bqa188wswWVGru6yLA8/OR0AQlUqoHeurS+wFHC2HWOASMYm0XpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716509480; c=relaxed/simple; bh=5l1ZDxiiOCJBz70DKB8YoEv4oAwewH8W9SdYrKkgC5E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WA8sAk10EBDckGLFLHgBB80tampHfHSN1oWnHTWcktFEO26Alqz88uqIe6YvBo4mxCMEtTabVU43+hYpOQMuNjVSWkXoJ+yb4C2rDg7dG7hzpiWEPRiz0cZLfe4o2R7OVyJIy5YRcTioCVNGDEzoL7ksVAqiDlQpAIwOgHRj1J4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=mHCP0x7I; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44NNP1Ai004151; Fri, 24 May 2024 00:10:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=Okp2NIuxOum+UIJx68gt8HGP T3ztWG2atEl9RFxfZvI=; b=mHCP0x7InmVOz/Y9sK9tC6N2b9tnqGlogpW1w/ml 1zsmxKs1KOamQLUIIS87zys0cssmW+tco2el7HOIy0U/u6t7PpDI4kkEfNGhB4j6 /b4hmCbVti5RtwMDE4Mub5EHF0CjxPf4c0F4YWMb0oL2fZxYjxMoyOKEYTw/1CDs RbdZHHNTEoNcQwXkRER7Q8i9yKfDx97nqTrZDKktzAmfuLcAScMPlq2tLN+o4oq8 XdxhDlL5bxfidXyJAT978G2+5yLqcamXV/nCzdOdPfdVnN1dm+6ZkqbruCiYEA26 8hfVtlQKqcwcesszR6An5CQSJdyp7hJ9YHZ/HxOQVNcHcg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yaa8kgqhj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 00:10:58 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44O0Av5R020529 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 00:10:57 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 23 May 2024 17:10:57 -0700 From: Wesley Cheng To: , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v22 10/38] ASoC: qdsp6: q6afe: Increase APR timeout Date: Thu, 23 May 2024 17:10:15 -0700 Message-ID: <20240524001043.10141-11-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240524001043.10141-1-quic_wcheng@quicinc.com> References: <20240524001043.10141-1-quic_wcheng@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: PpoQo5gj7IMJ6vGPBa5w0dE13xRJEZeC X-Proofpoint-GUID: PpoQo5gj7IMJ6vGPBa5w0dE13xRJEZeC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_13,2024-05-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 phishscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 malwarescore=0 adultscore=0 mlxlogscore=961 spamscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405230166 For USB offloading situations, the AFE port start command will result in a QMI handshake between the Q6DSP and the main processor. Depending on if the USB bus is suspended, this routine would require more time to complete, as resuming the USB bus has some overhead associated with it. Increase the timeout to 3s to allow for sufficient time for the USB QMI stream enable handshake to complete. Reviewed-by: Srinivas Kandagatla Signed-off-by: Wesley Cheng --- sound/soc/qcom/qdsp6/q6afe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c index 948007955934..452d7e8b9b30 100644 --- a/sound/soc/qcom/qdsp6/q6afe.c +++ b/sound/soc/qcom/qdsp6/q6afe.c @@ -366,7 +366,7 @@ #define AFE_API_VERSION_SLOT_MAPPING_CONFIG 1 #define AFE_API_VERSION_CODEC_DMA_CONFIG 1 -#define TIMEOUT_MS 1000 +#define TIMEOUT_MS 3000 #define AFE_CMD_RESP_AVAIL 0 #define AFE_CMD_RESP_NONE 1 #define AFE_CLK_TOKEN 1024