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)
commitcbed0ca137ef442c545602a09030bbb35d8db013
tree6cbbac4e5508362607a92e35b24dbf4ef316e29a
parent922ca1dfc2127a5dc363e8c1e6c8a33c5a0a14c6
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