Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp617011rdb; Fri, 17 Nov 2023 08:02:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlToBNiEGjvwmLNVP+tSmSWB0a/jeOCkRYN/eHcmMuu4g/0xAIVgaZ6kv2ye6ChSAAU8xy X-Received: by 2002:a05:6871:3143:b0:1f4:b0cb:f280 with SMTP id lu3-20020a056871314300b001f4b0cbf280mr25302314oac.21.1700236949022; Fri, 17 Nov 2023 08:02:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700236949; cv=none; d=google.com; s=arc-20160816; b=BAU5qoOv9klOUF3nIiVr1b2nSoQm22a58r7Jf/78FNBv0jutrY5Jn4LBJHkVy+bfnF QFLRBsmenwBbfypJTx8TMl5X7f6H3FisR6ahzM5+tcF43eGuiS0dG92teVqIxFjyU/SE z7pvPmHUps0xM2xqvyuDpzn3Ykmv2UBP/Nxh3TkJXG5xsyuoOVj/x9pQTphxZ7IjIgKI 9VG45RDvtwbPk5md3dNYM0P23EGSXvV2glplKoCkjOOBcb04++ck/ltt049QWnvQPRxL AUKO2fcr0r3gfe75inkRYqb+ndfmbp/UWvv7x8pJsxf6c4DHJxnDycTK2O0O9l6jVJMc TKtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=U2SN9v6ygW2GedDXRXak0weNAqvI8+I/yNpqchw+QQ8=; fh=JFbqcbQFtmikK76YhOgevgkI1YcxkLIEqp7Hgwa8Pl8=; b=RWg+fE+s+maxoWv/06UHRPEYiiF7W72lyghxdULaNISzAj16pOzrCysRyxAbIlak4H lb5kWPRjPN89L5VnWQpy7ycqmPTXYgfL2Gy3sBQMsMIQ18ukzol8ZKHuZpUxeixe6Gwu jkjm25+2NjVtTMp5We/bPO62gyrv0U+0lCtjbiTYY/a9mxzUciQ9ZMSLoXH67uYF+tSE tigA1V5szWXn2vqw/jvli8dOfNYCQWMwTo5tX4G6Caa74n0I8vBEoK/LcUiQfN9uxYaT NyKsH//GI8YgdWxS6NHGp90mh8fNjiyNOxl0F1bmIzzh9O9sxhqNoaO0WNTutiArCbyn TQgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a0aKFJaT; spf=pass (google.com: domain of linux-bluetooth+bounces-101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id na14-20020a056871738e00b001dba3c0111esi684835oac.226.2023.11.17.08.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a0aKFJaT; spf=pass (google.com: domain of linux-bluetooth+bounces-101-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 75625280EAA for ; Fri, 17 Nov 2023 16:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63CB837164; Fri, 17 Nov 2023 16:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a0aKFJaT" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6CAC90 for ; Fri, 17 Nov 2023 08:02:19 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c50cf61f6dso28162911fa.2 for ; Fri, 17 Nov 2023 08:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700236938; x=1700841738; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=U2SN9v6ygW2GedDXRXak0weNAqvI8+I/yNpqchw+QQ8=; b=a0aKFJaTZzLwm7yfUXtfrQeW6Il9VGK6l+L1c7xNXycphjjQ2ZDdsrLqtEVbV56I4m 3PDGOD8KpebuoOXuV9iZIxwC7rvu0OVpu5u5gcNK7Vpr1enUg1Oz/3o8UTVEE05vGoQL 5CTfclmOMx3SudkZ4X0oFUHzCsyQ0Bk7fVphYHOyub1+IEoc8w9V1cz/1lRU7btdAHt1 A6zR8srg0yg0t+jlWs20MIuoQXoj0PbACEozJk+RNjgyjyii5AZSzSAK9WXW60dcOHL5 GLaLbQsyZn1whpx4SiMyupqoVc9ibeN9FvbrJaYQdTNyH4SuPOGi0f7y1jlIWzybXBYh jFag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700236938; x=1700841738; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U2SN9v6ygW2GedDXRXak0weNAqvI8+I/yNpqchw+QQ8=; b=XhuJtMehncXaSRr8Jn8XJkP6gtZsOYvq3hgmSVLJa+3jhtADgHtQJuHWv4Ego70YTo r4s17idjT/sptgaFu3ufg40fI+AtU0LQdlRT/STqsxKKuwDGYKRYeH3AR1NUtCDTIJuF W7EViRaaJtLpP7q89TLqamy7UnzVmDcRf/IqmArxo8TWjFyYLGX2/EYBHJ3870/8V15s fp0kyHa/FwK55RwtUDmxSoDB7mwSShSYzpdhDXhY7yhsU6MywWjk4E0V53Gtidhn2280 A+Jq2qrblE2i3YROjW4dPLURSVS/s9QtXLMRXQ4+no1CVXvREdtPffu9N3ghHbUrOTbJ Q7cQ== X-Gm-Message-State: AOJu0YyGqmWdKL2bGEGcAtrRgOY9i6b4gU/CkIbigigqVugGeC8yGiq8 MQpQ8RzNUukrjlaULJZNuBVnrxJk14pit/vvLdU= X-Received: by 2002:a2e:8042:0:b0:2c6:ef8d:b49d with SMTP id p2-20020a2e8042000000b002c6ef8db49dmr15865ljg.24.1700236937713; Fri, 17 Nov 2023 08:02:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1699251565-28759-1-git-send-email-quic_zijuhu@quicinc.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Fri, 17 Nov 2023 11:02:05 -0500 Message-ID: Subject: Re: [PATCH v1 0/2] Bluetooth: Support SCO offload for QCA2066 To: quic_zijuhu Cc: marcel@holtmann.org, johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Nov 6, 2023 at 9:47=E2=80=AFPM quic_zijuhu wrote: > > On 11/7/2023 12:16 AM, Luiz Augusto von Dentz wrote: > > Hi, > > > > On Mon, Nov 6, 2023 at 1:19=E2=80=AFAM Zijun Hu wrote: > >> > >> This patch series are to support SCO offload for QCA2066, ALL BTHOST > >> needs to do is specifying both Input_Data_Path and Output_Data_Path > >> as 0x01 for HCI_Enhanced_Setup_Synchronous_Connection, does NOT need > >> to configure data path by HCI_Configure_Data_Path at all. > > > > This part it doesn't need to use HCI_Configure_Data_Path seems to be > > non-standard, if so it needs to be handled by the driver, also it is > > probably a good idea to explain how it works, what are the commands > > used and the result traffic using btmon to collect the HCI trace. > > > My change does NOT touch current BT core driver logic at all. i just assi= gn NULL to > hdev->get_codec_config_data within QCA device driver. so it follows curre= nt kernel > offload design. > > BTW, Core spec also does not specify standard procedures for SCO offload = since it is > vendor specific. We should probably document the expectation so it is clearer to the driver what to expect, also the offload must be selected by the application via socket interface as the HCI routing is the default, so if the controller defaults to offload that needs fixing. As for this change in specific, the configure data path function can check if the driver does implement it, so we don't have to check it before calling avoiding duplicate code. > >> Zijun Hu (2): > >> Bluetooth: hci_conn: Check non NULL before calling > >> hdev->get_codec_config_data() > >> Bluetooth: qca: Support SCO offload for QCA2066 > >> > >> drivers/bluetooth/hci_qca.c | 19 +++++++++++++++++++ > >> net/bluetooth/hci_conn.c | 2 +- > >> 2 files changed, 20 insertions(+), 1 deletion(-) > >> > >> -- > >> The Qualcomm Innovation Center > >> > > > > > --=20 Luiz Augusto von Dentz