Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp84614lqo; Tue, 7 May 2024 12:58:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIDr4pkZh//ZVt48WFjSEDdkaO4U853DoHN4KvBRMG2RVKecV6grwkWDAT7R/F2tE+22cVxtCJ7r3BSPNAJJ6qRng/KjG30AF4yNNCUg== X-Google-Smtp-Source: AGHT+IHQTMlPP0aOhAaXypF4wpY95xahwQiLji7rRT2njcXr1dvW2MRAvhqPSNxFC5nfTr/hIA4/ X-Received: by 2002:a19:760f:0:b0:51a:f16d:52a8 with SMTP id 2adb3069b0e04-5217cc4ae09mr311936e87.50.1715111910465; Tue, 07 May 2024 12:58:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715111910; cv=pass; d=google.com; s=arc-20160816; b=VnSgMOG2PFaW3PI74TmTnlRUUjD8EPE925z1MXmPgB0TD/AKQLHC/6EEqkKUYjWQvt i/jWynLJgXl0aLerZ9pshRD4CXb1Gwy1nwsbQRtdS9tmo2qdOgVBdwHB4kS7DEJ6/3M0 5BRlKTL0eRRBMnwML7A+9x2+cZGL9nL1GKzNEY5lrwN1gTRztRQigAHMBSosVAGmQd3x 4ikv702xk1twgymG3MyAW/N1TkHIw0oLZ9CHpzn5P6GGBQs2aWozu2e7yGT+EKWZhF3p CVT87sgIVIG3QotsmpTR/b7IA7dIlBl7uO2B0MRze1A3WnlEZ7ZzprQdu8Cp02hobkfB HKGQ== 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=tk8sqZoIP78riW3PYc75n3+DQFkqFrW+9GPE0/sstVA=; b=FNvh33YaCTphO7LUuROI4qVBTj/En4Jeyzy9qAQauaGi25dK/ne4OS+UMOM58XJxUr qGUWp1iiLXMRa6zuH1wFbnNe4fjnK/1/8SRvBaxVW8iXb/hnUFYEXW7ByuVMSdz2WO5v w1qPPCvz+5CkF2+vMBOa9eG7/WL4ZzEX/ZjvOmxdgfQycQLSY9SMS4iI3s2UTtckmN1I 8/7cgos8NZB/Hf2K5yfkBsuD093UmIMLzB64q9vpJjzSBXiQ078TkCmSBXcYwX7csm7P 3Ht5OwXvD5KvmL2ETNsbMfUf6zP+P07pt6mPgk3Pz3eRg5szC6wAYkpeM7VZFX0gIQUQ 6O/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VAAhKw+x; 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-172093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m23-20020aa7d357000000b00572ac333213si6263693edr.258.2024.05.07.12.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 12:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VAAhKw+x; 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-172093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172093-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 326241F20597 for ; Tue, 7 May 2024 19:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA98620126F; Tue, 7 May 2024 19:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VAAhKw+x" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 C9C1418131C; Tue, 7 May 2024 19:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715111520; cv=none; b=ua3NyrL8ip6vpTkt3BhgwE1+TaEiZ983g38W84DWxkbN7SpULaqWVrOPbpd+Ors+omu0RCHA0zZSPJ1stu7t3smm/9ivCKOsKnSNu059MukrFy5OYBEK2c4qwps5xHEHBU3QWM+JJyCiWvVp4/NVaKo1iG9yr/dJfnt2O4Bhl5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715111520; c=relaxed/simple; bh=5l1ZDxiiOCJBz70DKB8YoEv4oAwewH8W9SdYrKkgC5E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EGVSf8ySyv8QbuCQjAz4yAg4tONkmHxWdlGjVFJQr9siAnQ2JHn9XyLZynK2WKeqsa0XGDEvzzAL9JcgznobTFH6QfESHBfyxK7pHakvzX8IiGk+PDTJLMBfEMyVxjMbsaOqUKJlugT5xrvdF8DKJV2rRC2nxNt3+dVVLX/HYbA= 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=VAAhKw+x; arc=none smtp.client-ip=205.220.180.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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 447IYdns002576; Tue, 7 May 2024 19:51:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=qcppdkim1; bh=Okp2NIuxOum+UIJx68gt 8HGPT3ztWG2atEl9RFxfZvI=; b=VAAhKw+xqbymLNpPhwOhpx9MV2+6bzZxi5jl bIq/5/SizF79dqk0uiyZAqr+zuy9JqS0XaD6Gq99NPoxVM+AWYoGiW+Axo5Exoga Hop2Up7ioTdSXrVArJvxiQtfLMEAOSK50gT09k81HOaCEy6JUgFLNyxX3oFp7JVr tSkSb+rWBfsjw9KTc7JYJaYhlfIAL37Qgyq+nHuWnFHD+PP9BBwHXipxwBEDzi5b 4jM3wjN7w2MGjBPEmMfNzWFULEvmr3/5zaE9RkRtquB0AaXh+7lYEIsCJaPkOw92 MB0rY7zgEyPzODgS7S5hnYimFsWQWVeEWvhCXGtj4y4rUsa15w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xysph04m3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 May 2024 19:51:31 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 447JpUHH030408 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 May 2024 19:51:30 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; Tue, 7 May 2024 12:51:29 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v21 10/39] ASoC: qdsp6: q6afe: Increase APR timeout Date: Tue, 7 May 2024 12:50:47 -0700 Message-ID: <20240507195116.9464-11-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240507195116.9464-1-quic_wcheng@quicinc.com> References: <20240507195116.9464-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: nalasex01a.na.qualcomm.com (10.47.209.196) 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: ohuBN94J0pIfR4g2Tn-vYpHvV7MwfvAr X-Proofpoint-GUID: ohuBN94J0pIfR4g2Tn-vYpHvV7MwfvAr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-07_12,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=981 impostorscore=0 priorityscore=1501 bulkscore=0 phishscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405070138 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