]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/net: 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)
commitd36d840cbf1fd152f401824d3a499ecfb1acc3bc
treee6759be166eb1489f5efe7bf7c8e3ab993a841a4
parentfacdb2ff31f3b1d471babb14281f96e4a5d70b38
virtio/net: verify device has config space

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