Open npal-cy opened 2 years ago
Hi @jhedberg,
This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.
Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.
@npal-cy you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.
Thanks!
@npal-cy and I are still interested in this. I would like to hear from @jhedberg and the bluetooth subsystem team to understand if we are going the right direction or need to consider a different solution.
Ian
@ifyall @npal-cy have you considered just creating a custom driver for CYW43xxx? If code duplication is a concern, there's also #61221 which is intended to look into possibilities of factoring our common parts of H:4 handling (my initial feeling is that H:4 is so simple, that there's not much to be saved by trying to share code, but I guess we'll see if/when someone submits a draft PR).
Is your enhancement proposal related to a problem? Please describe. I am working on developing HCI extension driver for CYW43xxx. One feature which need to be added is Support low power mode for CYW43xx. The current version of H4 does not support this. There are two extra lines BT_DEV_WAKE and BT_HOST_WAKE:
I can handle BT_HOST_WAKE from CY43xxx HCI extension driver (set/release pm_constraint by BT_HOST_WAKE gpio event), but can't handle BT_DEV_WAKE. H4 driver should assert/deassert BT_DEV_WAKE before/after HCI UART TX operation.
Describe the solution you'd like one of possible solution can be adding callback function in bt_hci_driver structure and notify BT_HCI_EVENT_TRANSFER_DATA_START/ BT_HCI_EVENT_TRANSFER_DATA_COMPLETED events to callback, which will be implemented in Vendor HCI extension driver. Details below: