diff options
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r-- | drivers/char/virtio_console.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 11a9573f901e..9a698707e14b 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -869,7 +869,18 @@ static int remove_port(struct port *port) | |||
869 | spin_lock_irq(&pdrvdata_lock); | 869 | spin_lock_irq(&pdrvdata_lock); |
870 | list_del(&port->cons.list); | 870 | list_del(&port->cons.list); |
871 | spin_unlock_irq(&pdrvdata_lock); | 871 | spin_unlock_irq(&pdrvdata_lock); |
872 | #if 0 | ||
873 | /* | ||
874 | * hvc_remove() not called as removing one hvc port | ||
875 | * results in other hvc ports getting frozen. | ||
876 | * | ||
877 | * Once this is resolved in hvc, this functionality | ||
878 | * will be enabled. Till that is done, the -EPIPE | ||
879 | * return from get_chars() above will help | ||
880 | * hvc_console.c to clean up on ports we remove here. | ||
881 | */ | ||
872 | hvc_remove(port->cons.hvc); | 882 | hvc_remove(port->cons.hvc); |
883 | #endif | ||
873 | } | 884 | } |
874 | if (port->guest_connected) | 885 | if (port->guest_connected) |
875 | send_control_msg(port, VIRTIO_CONSOLE_PORT_OPEN, 0); | 886 | send_control_msg(port, VIRTIO_CONSOLE_PORT_OPEN, 0); |