]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/virtio/virtio.c
virtio: Formally reserve bits 28-31 to be 'transport' features.
[linux-2.6-omap-h63xx.git] / drivers / virtio / virtio.c
index fc85cba6457831430b76a4f8e1059f35c8c3e325..baf103361e3a2053f255f7f7782f955bd4883320 100644 (file)
@@ -113,6 +113,11 @@ static int virtio_dev_probe(struct device *_d)
                        set_bit(f, dev->features);
        }
 
+       /* Transport features are always preserved to pass to set_features. */
+       for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++)
+               if (device_features & (1 << i))
+                       set_bit(i, dev->features);
+
        err = drv->probe(dev);
        if (err)
                add_status(dev, VIRTIO_CONFIG_S_FAILED);