]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/blk: verify device has config space
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Jan 2015 14:23:37 +0000 (16:23 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:45 +0000 (16:28 +1030)
commitd5782a4d621a668b965e9f334ffdefe26025e7ec
treeaa76c268d0ac57ed4a50b63bd694a9051af318fc
parent402285706f2f5d118e0593e66f586b463c5fe4eb
virtio/blk: verify device has config space

Some devices might not implement config space access
(e.g. remoteproc used not to - before 3.9).
virtio/blk needs config space access so make it
fail gracefully if not there.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c