Commit e84d3896 authored by Sherry Sun's avatar Sherry Sun Committed by Greg Kroah-Hartman
Browse files

misc: vop: set VIRTIO_F_ACCESS_PLATFORM for vop driver



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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSherry Sun <sherry.sun@nxp.com>
Signed-off-by: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20200929084944.24146-1-sherry.sun@nxp.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aef85b56
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)