[PATCH 0/3] Bluetooth: btusb: Expose hw reset to debugfs

From: Abhishek Pandit-Subedi
Date: Tue Jan 19 2021 - 16:06:42 EST



Hi Marcel,

This series updates the reset gpio based recovery from command
timeouts with the following changes:
* Refactor duplicate code to use a single btusb_gpio_cmd_timeout
* Reduce the number of command timeouts needed for reset to 3
* Expose the gpio based hardware reset to debugfs for testing

The last one is important to us so that we can confirm new chips support
hardware based reset (which is part of our requirements for BT chips).

We will probably also add the 'toggle_hw_reset' debugfs entry to other
drivers that support hardware based reset (i.e. hci_qca, hci_h5, etc) in
subsequent changes.

Thanks
Abhishek



Abhishek Pandit-Subedi (3):
Bluetooth: btusb: Refactor gpio reset
Bluetooth: btusb: Trigger gpio reset quicker
Bluetooth: btusb: Expose reset gpio to debugfs

drivers/bluetooth/btusb.c | 107 +++++++++++++++++++++++---------------
1 file changed, 66 insertions(+), 41 deletions(-)

--
2.30.0.284.gd98b1dd5eaa7-goog