mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
virtio: Formally reserve bits 28-31 to be 'transport' features.
We assign feature bits as required, but it makes sense to reserve some for the particular transport, rather than the particular device. Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
faeba830b0
commit
dd7c7bc462
2 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue