Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp941434lqj; Mon, 3 Jun 2024 05:54:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHzst7qM1iKskh0QokXFNFztCiyOB9l0Rq5sb+MLcQPgFiXNM1W9H4W7CGG5KQ/qPFMlmewt9S9r9suQzam9Bi7sI9jynL88JOh6aNgg== X-Google-Smtp-Source: AGHT+IFjwG9MG7tyb/253EhmoRBlBwuS5tBDGp2z11WSW28K0xWjjzgbqCdcFUDj8hl08926dLLu X-Received: by 2002:a05:6830:7185:b0:6f9:1a21:c71f with SMTP id 46e09a7af769-6f91a21c942mr8282434a34.34.1717419276928; Mon, 03 Jun 2024 05:54:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419276; cv=pass; d=google.com; s=arc-20160816; b=gvuYy3UN1eCWmSKaQ4UxWFxrDDZ7PboZw40SceZ7HgwuNXTe6tdadk716hf0/iK7OA 13fQN48/UrusXOrssm0liqEfAijZ4yozC+YDWOr1KS/BEJdkcwaOdWisA5kNqvFK6aBN HCIhy95yR5FdNgCcuEBcTy3ZiU5UGLhj5cEeWcpR7IZIzdHAnkXBrrcceHnh1cHpUluo ZCdB5/8b0jVShPOFRH1XhndlJMmzSAVgjwPYG8TTfkCHTxC6jwSoImSfK+6hpswoLFhx vUT11WaLlhCv9g2KYLoHjwHU3abuS7ZbhzLrK2UvuGkO8xXVTRJDpoacOkkdza95rf6U Zfew== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=XFrkMwa8QhZ9jgdNkVDzESUcvGxzFBA04uy+9WMA22k=; fh=7bepvf9gKuMBhoVPbx4x4d8ALYGNXzL4gcWrSvRzN9Y=; b=iYI83nnkRZrQQ8kq2XLwf8YJPfEMpDCRQ+5iT6YtCEdt7Q2Bdni6BXKmELaAltMcGu j14YljNGQUDJjjVnBVCiI2h9/6yZDFY0sID/+vcUOUBOq/GT0DiYgmokUjhy/zRJrroJ UiS6/VJ6gN2G/ThIXzwf/PPF+mM40+7H8bQ7aXqOspJ15fAfKM4Xsiqrsx5FyG02lykr NE0RZIkmOdn/Vqys3XEzMJJTBHz63gTNk5I4B4dATJ1suBK2vNlCUcQuCwtyzwYQmuc8 qTJN19UUfVD0p29K6kORkLgYXZlS214bqJk9gMOqKHRLiNQMzKPgBm456v3Q5VzdzYgX 0+CQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VDj2r9zT; 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-bluetooth+bounces-5069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5069-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff2468b68si85389011cf.254.2024.06.03.05.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:54:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VDj2r9zT; 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-bluetooth+bounces-5069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5069-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 784671C20298 for ; Mon, 3 Jun 2024 12:54:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA3B12C530; Mon, 3 Jun 2024 12:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VDj2r9zT" X-Original-To: linux-bluetooth@vger.kernel.org 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 1F1EE7BAE5; Mon, 3 Jun 2024 12:54:27 +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=1717419269; cv=none; b=s/Qiq6zKdSACDoVnl50t4qSKKOV9BNw8aI5tyeFC5quoGjKcBdcunjST0sU8FUB70W6DI37RYvQB/ct6PlkChBTlThUpU/3+WiAjarjn7ACocMXC7VwY1YtpiMgo0YbxeXfN73cD2Z6wKGNdrmFzmQ7A4GMJbQqUVvrjAbKeWM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419269; c=relaxed/simple; bh=/yZub1bVDRZFGmIeir+Bk0hP3RognHpEYbN5NZnu0rI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qJeZ67rj4r3zAvfGPQX+zOKYcOZzBVqp+CbljNO6ZGAK/fH+Y2IogYyeKgxMVMxZdW+NEd/Q8H6IkuSddQivnQKNRA94eN094oXDMfagX3SZgPsePau0Yc0Oh77sjmLgwBO3ysoVrZkgaBxHuwJ0oDQhYvHo/nJK4+Km3RKR1mM= 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=VDj2r9zT; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4538kw8D027095; Mon, 3 Jun 2024 12:54:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=XFrkMwa8QhZ9jgdNkVDzESUcvGxzFBA04uy+9WMA22k=; b=VD j2r9zT6GAQ1hHr1EkMvoVQYCE09+I83kPIzcDQCTGkNHzlHYaBra4nYMCzzncvxg XCVwVT9+5n1tHw0STRVxfC7Ht3Wf6XJQcv4bqep6suXODbIQpDqtkrHigfuxGfqG noIeump5gHxmsMWOFQf8UHSMNvgq/u7yY08pZg1WhH8OY0te61JDDzHo2ZCdU4OP VO0zpWJPhGtYZJ+gkutjAWuI1dmJGilhaG7rjWA0v6fGF1L1k1Mb9XtdVDKL9Fme vpgs5dq6ntfd166T5dWnT/4yCSIv6VPuqGEsuWuEyP8e3Fh2K8oGrC8FcOdDTDWn 6fB6WYpcRfpSKQh+TeTg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yfw4bbwxt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 12:54:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 453CsMNc003824 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 Jun 2024 12:54:22 GMT Received: from hu-janathot-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 3 Jun 2024 05:54:20 -0700 From: Janaki Ramaiah Thota To: Marcel Holtmann , Luiz Augusto von Dentz CC: , , , Subject: [PATCH] PENDING: Bluetooth: Increase settling time for baudrate change VSC Date: Mon, 3 Jun 2024 18:23:56 +0530 Message-ID: <20240603125357.3035-1-quic_janathot@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: QgyskmBdHtP3jHdnJJRvMgEsMdxi0lgL X-Proofpoint-GUID: QgyskmBdHtP3jHdnJJRvMgEsMdxi0lgL 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-06-03_08,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406030107 From: Harish Bandi This change is done to align the settling time and synchronization for baudrate VSC for WCN6750. In logging disabled builds and few devices baudrate change and flow control is taking time so increasing the wait time to controller and uart to handle baudrate change request properly. Change-Id: If0631cb886e53817f963f075e626c89a791b7be4 Signed-off-by: Harish Bandi --- diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c index eba9165..a59b35e 100644 --- a/drivers/bluetooth/btqca.c +++ b/drivers/bluetooth/btqca.c @@ -600,7 +600,6 @@ rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | (soc_ver & 0x0000000f); if (soc_type == QCA_WCN6750) { - msleep(100); qca_send_patch_config_cmd(hdev); } diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index d8abd27..0b41214 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1356,11 +1356,13 @@ case QCA_WCN3990: case QCA_WCN3991: case QCA_WCN3998: - case QCA_WCN6750: case QCA_WCN6855: case QCA_WCN7850: usleep_range(1000, 10000); break; + case QCA_WCN6750: + msleep(30); + break; default: msleep(300); @@ -1904,7 +1906,6 @@ qca_set_speed(hu, QCA_INIT_SPEED); } - usleep_range(1000, 20000); /* Setup user speed if needed */ speed = qca_get_speed(hu, QCA_OPER_SPEED); if (speed) {