mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
virtio_mmio: add support to set a virtio device as wakeup source
According to virtio_mmio wakeup flag in device trees, set its IRQ as wakeup source in virtqueue initialization. Change-Id: Id861bf10d475c66bcb343dbbb01ba143338dd18c Signed-off-by: Minghao Xue <mingxue@codeaurora.org>
This commit is contained in:
parent
38b1718d28
commit
8a3cdd45a7
1 changed files with 3 additions and 0 deletions
|
|
@ -476,6 +476,9 @@ static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs,
|
|||
if (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) {
|
||||
if (!names[i]) {
|
||||
vqs[i] = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue