]> git.karo-electronics.de Git - mv-sheeva.git/commit
virtio: console: Don't call hvc_remove() on unplugging console ports
authorAmit Shah <amit.shah@redhat.com>
Thu, 20 May 2010 04:15:47 +0000 (22:15 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 19 May 2010 12:45:48 +0000 (22:15 +0930)
commit69eb9a9f69572c0ebe08a0a46f56bdfdcdaa19a0
tree703a249a72b7f7a9bd53cf769b519701e39d9cbe
parent6dc69f970231387d8fe646a831920da26408b5f5
virtio: console: Don't call hvc_remove() on unplugging console ports

hvc_remove() has some bug which freezes other active hvc ports when one
port is removed.

So disable calling of hvc_remove() which deregisters a port with the
hvc_console.

If the hvc_console code calls into our get_chars() routine as a result
of a poll operation, we will return -EPIPE and the hvc_console code will
then do the necessary cleanup.

This call will be restored when the bug in hvc_remove() is found and
fixed.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c