From: Cornelia Huck Date: Mon, 20 Oct 2014 13:58:49 +0000 (+0200) Subject: virtio_console: move early VQ enablement X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~118^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65eca3a20264a8999570c269406196bd1ae23be7;p=pandora-kernel.git 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed