misc: vop: set VIRTIO_F_ACCESS_PLATFORM for vop driver
authorSherry Sun <sherry.sun@nxp.com>
Tue, 29 Sep 2020 08:49:44 +0000 (16:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 13:51:05 +0000 (15:51 +0200)
Set VIRTIO_F_ACCESS_PLATFORM feature for vop driver, as the DMA mapping
details shouldn't decide on the virtio implementation, but the host PCIe
implementation.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20200929084944.24146-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/vop/vop_main.c

index 55e7f21e51f4478c1d3ddbd2ef2bc96bfa1d0cd8..7be3437a01d845df4369a7daae9830219e83a677 100644 (file)
@@ -124,6 +124,7 @@ static void vop_transport_features(struct virtio_device *vdev)
         * creates virtio rings on preallocated memory.
         */
        __virtio_clear_bit(vdev, VIRTIO_F_RING_PACKED);
+       __virtio_set_bit(vdev, VIRTIO_F_ACCESS_PLATFORM);
 }
 
 static int vop_finalize_features(struct virtio_device *vdev)