]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refactor hci_dev_open to a separate hci_dev_do_open function
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 1 Oct 2013 19:44:49 +0000 (22:44 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Oct 2013 06:27:08 +0000 (23:27 -0700)
commit13fccc75001b121326de761dccfa23b4dbd5df9f
tree6cbbac4e5508362607a92e35b24dbf4ef316e29a
parente89b07098bfc356cd6443b64173248c36597f8d3
Bluetooth: Refactor hci_dev_open to a separate hci_dev_do_open function

The requirements of an external call to hci_dev_open from hci_sock.c are
different to that from within hci_core.c. In the former case we want to
flush any pending work in hdev->req_workqueue whereas in the latter we
don't (since there we are already calling from within the workqueue
itself). This patch does the necessary refactoring to a separate
hci_dev_do_open function (analogous to hci_dev_do_close) but does not
yet introduce the synchronizations relating to the workqueue usage.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c