diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2014-10-20 15:58:49 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-11-13 09:53:26 +0200 |
commit | 65eca3a20264a8999570c269406196bd1ae23be7 (patch) | |
tree | 4a858297ded216b231be941fab08bae31110136c /drivers/net | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) | |
download | blackbird-op-linux-65eca3a20264a8999570c269406196bd1ae23be7.tar.gz blackbird-op-linux-65eca3a20264a8999570c269406196bd1ae23be7.zip |
virtio_console: move early VQ enablement
Commit f5866db6 (virtio_console: enable VQs early) tried to make
sure that DRIVER_OK was set when virtio_console started using its
virtqueues. Doing this in add_port(), however, means that we try
to set DRIVER_OK again when when a port is dynamically added after
the probe function is done.
Let's move virtio_device_ready() to the probe function just before
trying to use the virtqueues instead. This is fine as nothing can
fail inbetween.
Reported-by: Thomas Graf <tgraf@suug.ch>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions