Re: [PATCH v2 2/2] Bluetooth: Support the vendor specific debug events

From: Marcel Holtmann
Date: Fri May 07 2021 - 04:36:02 EST


Hi Joseph,

> This patch allows a user space process to enable/disable the vendor
> specific (vs) debug events dynamically through the set experimental
> feature mgmt interface if CONFIG_BT_FEATURE_VS_DBG_EVT is enabled.
>
> Since the debug event feature needs to invoke the callback function
> provided by the driver, i.e., hdev->set_vs_dbg_evt, a valid controller
> index is required.
>
> For generic Linux machines, the vendor specific debug events are
> disabled by default.
>
> Reviewed-by: Chethan Tumkur Narayan <chethan.tumkur.narayan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Kiran Krishnappa <kiran.k@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Miao-chen Chou <mcchou@xxxxxxxxxxxx>
> Signed-off-by: Joseph Hwang <josephsih@xxxxxxxxxxxx>
> ---
>
> (no changes since v1)
>
> drivers/bluetooth/btintel.c | 73 ++++++++++++++++++++-
> drivers/bluetooth/btintel.h | 13 ++++
> drivers/bluetooth/btusb.c | 16 +++++
> include/net/bluetooth/hci.h | 4 ++
> include/net/bluetooth/hci_core.h | 10 +++
> net/bluetooth/Kconfig | 10 +++
> net/bluetooth/mgmt.c | 108 ++++++++++++++++++++++++++++++-
> 7 files changed, 232 insertions(+), 2 deletions(-)

maybe I forgot to mention this, we don’t intermix core changes with driver changes to support it.

You first need to introduce the core feature and then patch the driver to support it.

Regards

Marcel