]> git.baikalelectronics.ru Git - kernel.git/commit
ifcvf: move IRQ request/free to status change handlers
authorZhu Lingshan <lingshan.zhu@intel.com>
Tue, 12 May 2020 08:00:44 +0000 (16:00 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2020 19:36:51 +0000 (15:36 -0400)
commit35baf484c3fb428fb08c7338f9ce5d67c9148617
treed906604b46aeab0827cd55e7331c3474c5e645f5
parentba3167da7137635d941846bcbb038a25f24d8bb7
ifcvf: move IRQ request/free to status change handlers

This commit move IRQ request and free operations from probe()
to VIRTIO status change handler to comply with VIRTIO spec.

VIRTIO spec 1.1, section 2.1.2 Device Requirements: Device Status Field
The device MUST NOT consume buffers or send any used buffer
notifications to the driver before DRIVER_OK.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Link: https://lore.kernel.org/r/1589270444-3669-1-git-send-email-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c