Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1409858lqd; Thu, 25 Apr 2024 15:02:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9FYXWvBF76PSlyyq3ygGArgv0/obLMu4DtPqTgkFNrH84Z7UxoeNwhrBH9adfJ8ai7gFxA6ss1KJ+t4ZKp6QTR1xA95bmZT2D6auC1A== X-Google-Smtp-Source: AGHT+IFYwkjQiUZr9vZf/LwpTa1A63jq2n5L82xDBkb/HiokKAEGDNcBF53jtZdUISw4leIYi6js X-Received: by 2002:a17:906:4151:b0:a55:690d:de15 with SMTP id l17-20020a170906415100b00a55690dde15mr614882ejk.61.1714082525155; Thu, 25 Apr 2024 15:02:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714082525; cv=pass; d=google.com; s=arc-20160816; b=aEwWQNljTubRq4756ZLsQXdw+qcCjrS1Iq87NaL/86xrqEv0W3+iGKoM2qFeFoGJ2y m8L8vtPOLDFKaXWwQtMOUvzH0HH9yhZdwIkNLptxklbmLedi38PoiftVC+VZvtGl+t8w 3h7PYr2m8EWFTunaK3dL9SWMiG0U8+kdY2h9TcO0HLQe3Maqg4atQXIbFrMtdkEuVm56 xEPKZZJ+V0mJRDUksFS1mrIDrD0La/MBof1WXyva8dqsB1Q4WPYcmPeidj60/S+3qSY8 8DaMIbzfW4wlvFjVT2hWdN2bu9CVpcLGVYntQ1gKGNm0NVvrfzbv3+4cdZ867EA4pcIk +h+g== 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=usWEz1eJjYCle08WABmDyuqCrJGq9m48/LVlmybnzRs=; b=TAelBLoS/NCWLjmDhUQr7POLtaTCUvuH/zSJaQimRPAPxdSonwXAZVnN7WLE+rJ0xN iM8wdYxfVmxngtSHCYd8rDzBD8fUAHBK59HXVlnBNMJU8kwZRI+Zo20SrMLOouNeMidC ghLhpPyLtKjKCIq80WtTqLkHRVXDa7yAiqZ6STkCnUQ8coRB0yzkSQJwdZ5Lzi+vpo// pcXGisao9UkweCg2/8OJ6q990uGu+uANvB1ShSZpiPVvpisvD31J6uyZGcrQIxHsEIV9 dQ91KrYPwVHGyz+/ZKnHj4HiMJO3RMWDtFR0coRaGr0FKOVQfYkA6LCVIdOY8XSBzlez IsPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=T8awh5J8; 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-159249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159249-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 by25-20020a170906a2d900b00a587ede207dsi3996583ejb.450.2024.04.25.15.02.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159249-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=T8awh5J8; 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-159249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159249-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 D2E971F269C6 for ; Thu, 25 Apr 2024 21:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1641716F8F3; Thu, 25 Apr 2024 21:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="T8awh5J8" 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 3C0C615624D; Thu, 25 Apr 2024 21:52:06 +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=1714081927; cv=none; b=dfGVW9G2ZW5XUSXwuzorcFnqZ3q8wLqFBobP0U+ycfp688I6xMhdOl2anGfpLcmjJWzikcDyO5eOfy6LrQvje0uHplxWgP/rZWNfq/j2ELmoDY0dWZvk/D5Vkns5RCc1H17ezSi89k0bPXQ4/QVk8LzJOwSSL+zuHs5ST9yoyEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081927; c=relaxed/simple; bh=5l1ZDxiiOCJBz70DKB8YoEv4oAwewH8W9SdYrKkgC5E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nTP8jmUqCCYrKSu7cdYpaaLyGmv2UQ1zZb39c5zKWwWHF8rYQtGqpYqkv1gBbgBPYkwhCgsjChgwWhOXjcLDrg4L7RyGTzvS4gb01kQYIKnAEtx/mzcy14+gPRbLF1RF9J34XORFs0pefBnWje9A6CWU4m5PemRtDXgqaswptmo= 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=T8awh5J8; 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 43PKoaLq001070; Thu, 25 Apr 2024 21:51:41 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=T8awh5J8barIvtxh9FGap16FSG05wpRYTJ3M dBtVHW+gwyKGViR28Ap7KVHil2ujmwVPPQnMphiT1HMwpuqlgFU5G3I4XzpbtMV5 RRwVPmpnkWa/podRMEg1f/6FKks9+lzXFAD6Ed1ODVZbqvM2bMt2sAM3fvODU2l4 l9sZVC0Ce35qmsPThcW+dRplDqAXMZLaDeWK0DG2JQViYOg74fErl778M6/85PSk WvKtl/jO7L0341ZmMl8mc1S/qg7oQWrxPhy/fHXTjoulUaNI09oXIoQqSEibr9zS o8imQKKntDwWVOuBiv5+MfrLcRz/hC3AaClOh3GSwl66MjNY3w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqn0whx4y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:51:41 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43PLpev3024576 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:51:40 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, 25 Apr 2024 14:51:39 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v20 12/41] ASoC: qdsp6: q6afe: Increase APR timeout Date: Thu, 25 Apr 2024 14:50:56 -0700 Message-ID: <20240425215125.29761-13-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240425215125.29761-1-quic_wcheng@quicinc.com> References: <20240425215125.29761-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: yuJ_nyRY_tefaUOj24rErd56GqMgUA9b X-Proofpoint-GUID: yuJ_nyRY_tefaUOj24rErd56GqMgUA9b X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_21,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 malwarescore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250159 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