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

Commit dd229f78 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "virtio_mmio: add support to set a virtio device as wakeup source"

parents d44a2bd9 8a3cdd45
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -476,6 +476,9 @@ static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs,
	if (err)
	if (err)
		return err;
		return err;


	if (of_property_read_bool(vm_dev->pdev->dev.of_node, "virtio,wakeup"))
		enable_irq_wake(irq);

	for (i = 0; i < nvqs; ++i) {
	for (i = 0; i < nvqs; ++i) {
		if (!names[i]) {
		if (!names[i]) {
			vqs[i] = NULL;
			vqs[i] = NULL;