virtio/scsi: 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:47 +0000 (16:28 +1030)
commit8cab3cd6ad622f070b18cd1c2e3b97e1d3806629
treeda174ec64f4fd5321a32de13a0e4c0013b68372d
parent6ba422489bcaebd89142cc0aeae9095d03c8301a
virtio/scsi: verify device has config space

Some devices might not implement config space access
(e.g. remoteproc used not to - before 3.9).
virtio/scsi 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/scsi/virtio_scsi.c