Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f971041 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Use system workqueue to schedule power_on



hdev->workqueue should be only for rx/tx, so move this one out.

Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 6d438e33
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1522,7 +1522,7 @@ int hci_register_dev(struct hci_dev *hdev)

	set_bit(HCI_AUTO_OFF, &hdev->flags);
	set_bit(HCI_SETUP, &hdev->flags);
	queue_work(hdev->workqueue, &hdev->power_on);
	schedule_work(&hdev->power_on);

	hci_notify(hdev, HCI_DEV_REG);

+1 −1
Original line number Diff line number Diff line
@@ -415,7 +415,7 @@ static int set_powered(struct sock *sk, u16 index, unsigned char *data, u16 len)
	}

	if (cp->val)
		queue_work(hdev->workqueue, &hdev->power_on);
		schedule_work(&hdev->power_on);
	else
		schedule_work(&hdev->power_off.work);