Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1431362rdb; Fri, 16 Feb 2024 16:22:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHNvmKcqvGOU9cM6qOZQISEks4g/DCPRbq81qYGzUAl07HfIuUcTGe7YidWITXplO4IK2F8bagS0Luz+24DSfGdXy4HDwMoixYYaETvQ== X-Google-Smtp-Source: AGHT+IEgjx8R6wP3byhz2n6NXkqzR2j3I2ywsxM6XU+SNauhZJ54qBr7+S0fvONsKlY6X+s2GkG5 X-Received: by 2002:a17:906:e4f:b0:a3d:63b:c43 with SMTP id q15-20020a1709060e4f00b00a3d063b0c43mr4333277eji.17.1708129360446; Fri, 16 Feb 2024 16:22:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708129360; cv=pass; d=google.com; s=arc-20160816; b=E63KIoNlCbKaSJE80vUjkSNz5gLHji9mUsCzwt44odVFr7QwpCXShlKrPQYVjBitbY ObX7xOE8B4TbJHgb5/rnOJ7+PAzXMLwGWTyEoDofq5nMAbkaVpuqIgj1rQCwSnGc7+o1 35upC5d0bhEeO+v9/O0l5kyF70ixPau2lPOUKbVrWFdrt4b1sAS47Uh7bhn7Dymdait1 0fT2MZCxXgAe7X2j91QazNUWRf0PN+pyx0gs2E99f/mtlQH/64cbHiP8A9EUmZkApNiw jjMop+PaYGUGf2bdxQNLHr4vYeR+y0xlgkC7jrsjrKx3DsXcI66YQ2FVVbtHM4Hrmla0 ox7g== 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=VKrp0Y7I/+wT36BfKZ6oI/4N9BIwFCn9zerObkOrgGw=; b=BHNbzu/n2OSSXPPL2mU2oXz+vro6zUGOGfhMFB0woULCuhszVbkF41sOYX41+oaK6P Z+EdsTRXjqHMLasQVTm4/sMb1NmrWDoH3592nPdooBj/3ugSDsaO7QG3Lf/LerdrMMMH R62GufISJu4lWvQAhuZqgB0y5i0Y9XYds8ZeQpfSH/62qG2951J/Qb95Lf1XfxZSEArd BhdC+4fEsOicefUJC6h2s7eSVok8VVmyr93HCVwNJ35zZn0Xmokb1GlaZ2cef5X4GFrB KeJT14alAOyapBwb58ZTTH9SETOvMuc5Q734Z/euojZHu7Th4r0285Ms50t3stiQTL5m UWNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Px0rJGRG; 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-69558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69558-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 qq25-20020a17090720d900b00a3d99c0928fsi367985ejb.966.2024.02.16.16.22.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 16:22:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69558-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=Px0rJGRG; 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-69558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69558-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 C23291F22779 for ; Sat, 17 Feb 2024 00:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2D6F7B3C5; Sat, 17 Feb 2024 00:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Px0rJGRG" 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 7CBF8537F1; Sat, 17 Feb 2024 00:11:01 +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=1708128664; cv=none; b=Z1FT7HYsi6wS4WJzKzv2fZyOTX8ggk6UfdU4t9dE470Ue7BwX4UiAqZ1S2bBU5iUeFeGbF442wkT1yD83pirXsoolT9RMJD3msXxVNvakObSVrk5Y/4JdGz9S26WDivBgE4fmcRAaL2DZ3Ll8jNPfJ42FNVwei6g89gKjgPJWTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708128664; c=relaxed/simple; bh=5l1ZDxiiOCJBz70DKB8YoEv4oAwewH8W9SdYrKkgC5E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OhP2sbPFBs67SYADkGCVm7UQ7aKtagQgiNVj9mR6aw0B9yNlt6kAgQyBGD7S+Zkzcz3Tb8tmiOM2nxVVpfTTwCMXMJ0IhaHyQhLHlkV8+fSB9XDSPhxrcsi1SENl1h4U36xsPnHRB0/wBF6tWPuLi7s6dtebDplEYoD9oghyZKU= 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=Px0rJGRG; 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41H0AaRF002185; Sat, 17 Feb 2024 00:10:36 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=Px0rJGRGcqwYmQhabhUezJwQ0NR9hPU6uhsa RJvHEA+77bz5meGXxUzfAAXiqBaot07BheEq4Zm7R76GMwpLH6WO/FaKYnjsNZ2q L/pmLY/slbzngNncrYwDrm3MW/05KE7iCxgDE93L2/R1PzjQYPQN8PhOrnlNt8/N F+EC0a7eKH38I96UPODZx2XdgDgRtjdHej60fkvyzzsFte+BT/SO6QW0LRZBTmIs iT4BKjpBx/GymNpn8LLZbHAmfBz7rHp1trKaDIuyVJ25rWZa33F6Q6YkURy8DUGN d5tIR1hcfoL1aDIJYcHehJQgad1wNqI2KlgifaDeDgo3RlA6nQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w9ytaa5ya-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 17 Feb 2024 00:10:36 +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 41H0AZk6012899 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 17 Feb 2024 00:10:35 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.1118.40; Fri, 16 Feb 2024 16:10:35 -0800 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v17 21/51] ASoC: qdsp6: q6afe: Increase APR timeout Date: Fri, 16 Feb 2024 16:09:47 -0800 Message-ID: <20240217001017.29969-22-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240217001017.29969-1-quic_wcheng@quicinc.com> References: <20240217001017.29969-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-GUID: y4g9aSRCqqeFYtmyXwCpakyKU8ujqzDV X-Proofpoint-ORIG-GUID: y4g9aSRCqqeFYtmyXwCpakyKU8ujqzDV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-16_23,2024-02-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 mlxscore=0 malwarescore=0 mlxlogscore=962 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402160189 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