]> www.infradead.org Git - users/dwmw2/linux.git/commit
Bluetooth: Get rid of cmd_timeout and use the reset callback
authorHsin-chen Chuang <chharry@chromium.org>
Wed, 8 Jan 2025 12:24:43 +0000 (20:24 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 15 Jan 2025 15:36:42 +0000 (10:36 -0500)
commitf07d478090b0a03dda46fb45b5c6e089a8408351
tree68159dc0335b940c2473b38b1492270e0e5dd504
parent7c393421755daf35ae1e4e0016b99f308123751a
Bluetooth: Get rid of cmd_timeout and use the reset callback

The hdev->reset is never used now and the hdev->cmd_timeout actually
does reset. This patch changes the call path from
  hdev->cmd_timeout -> vendor_cmd_timeout -> btusb_reset -> hdev->reset
, to
  hdev->reset -> vendor_reset -> btusb_reset
Which makes it clear when we export the hdev->reset to a wider usage
e.g. allowing reset from sysfs.

This patch doesn't introduce any behavior change.

Signed-off-by: Hsin-chen Chuang <chharry@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtksdio.c
drivers/bluetooth/btusb.c
drivers/bluetooth/hci_qca.c
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c