Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp140673pxj; Tue, 15 Jun 2021 22:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygeKTqzaiuAjztVtQB6p5+HmtAJXstPURfzuTJfEIiJqKm1wGSopRSs7BFovLYwDPhNe5Y X-Received: by 2002:a50:ee16:: with SMTP id g22mr1953593eds.27.1623820765052; Tue, 15 Jun 2021 22:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623820765; cv=none; d=google.com; s=arc-20160816; b=aWJMHsIU4jBu2GR8bMw5Smr2qJZxeTpodFRqLvtm4gvRMAscErsYWMAKyrOOul6SzT q1nFKYbPG6r7RpUl1b0SUi0ZuhSugkq0YsqJA0rc3vT8sxy2/ZKw5AQstkSVD3LDkOcl FqP3GOGA30nSZcO7fG+i0kcpZG7K3JEbe4bTIBgvRAqwo5HrkpU87vr4YhoHVPqycT+H qgq/EDVxc/Bw1NECqhT5ocJ9pudwMdy7X6d8SOm7xjorJUi7rCACwFa2eURPU82M+iKx ahrJLP/jTjtqHXaIxSS13ZahVgMmpOpWPQcbXoEay2eg2Xlmby+M5OXg9P47tuFTHxvS hClQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=pQvYd+lH6DTnuxGvV5KkMLG6xMSPuhSyyngrpiRSgxM=; b=Ms0Bb1hL1xlDrgcLVkMFlPXqmED9R3RoVQrul6mkuStgWzQ12bLfsCu+O+R/mR3Hg3 CwhooLwcdxd1XKOjNC9bynqnFoGqI+DgsryuPog3ybvDtXKyebaBqs2TrHPx34C6zhyd mIVI0XZnWE9Xf8IYz0vDENAaGxRU4bDvD+rkhG8Tr/XVrO//6GKtAelIMSOlQAbnyH3c 9Tjx/9zpTsOT3eO/fto8p3RKyXarQZYjo/F9VKttSOQUXvUqWIKpnUXxZ67U8Jjm0KMX /+oa5Vyly07v05XPs8pJoUSni+WMZeDdRGzNAMPan/IKP5vpmnyDdEqDNuQ11tyeXSq+ 3ySw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si1316496ejc.357.2021.06.15.22.18.46; Tue, 15 Jun 2021 22:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbhFPFTb convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Jun 2021 01:19:31 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:56890 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbhFPFTa (ORCPT ); Wed, 16 Jun 2021 01:19:30 -0400 Received: from smtpclient.apple (p4fefc9d6.dip0.t-ipconnect.de [79.239.201.214]) by mail.holtmann.org (Postfix) with ESMTPSA id E0D21CED07; Wed, 16 Jun 2021 07:25:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH v9 03/10] Bluetooth: Add a callback function to retireve data path From: Marcel Holtmann In-Reply-To: Date: Wed, 16 Jun 2021 07:17:05 +0200 Cc: "linux-bluetooth@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: References: <20210608122455.19583-1-kiran.k@intel.com> <20210608122455.19583-3-kiran.k@intel.com> <3C9F25C0-3122-4208-938A-3C3094E018BA@holtmann.org> To: "K, Kiran" X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Kiran, >>> There is no standard HCI command to retrieve data path for transport. >>> Add a new callback function to retrieve data path which is used in >>> offload usecase. This needs to be set at setup stage if controller >>> supports offload codecs >>> >>> Signed-off-by: Kiran K >>> Reviewed-by: Chethan T N >>> Reviewed-by: Srivatsa Ravishankar >>> --- >>> * changes in v9: >>> - define a separate patch for core changes >>> >>> include/net/bluetooth/hci_core.h | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/include/net/bluetooth/hci_core.h >>> b/include/net/bluetooth/hci_core.h >>> index 3284044c3dd7..641477396da3 100644 >>> --- a/include/net/bluetooth/hci_core.h >>> +++ b/include/net/bluetooth/hci_core.h >>> @@ -617,6 +617,7 @@ struct hci_dev { >>> int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr); >>> void (*cmd_timeout)(struct hci_dev *hdev); >>> bool (*prevent_wake)(struct hci_dev *hdev); >>> + int (*get_data_path)(struct hci_dev *hdev); >>> }; >> >> and where is the code using hdev->get_data_path. That code needs to be in >> this patch. > > In the previous patchset, there was a comment to separate out driver and core changes. Let me know if I am missing something here. > https://patchwork.kernel.org/project/bluetooth/patch/20210518104232.5431-3-kiran.k@intel.com/ > I know that and this is not contradictory. Introducing such a callback must come with the usage of said callback. Usage means the core side and not the driver side of it. Regards Marcel