]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: Handle port hot-plug
authorAmit Shah <amit.shah@redhat.com>
Mon, 21 Dec 2009 16:52:08 +0000 (22:22 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:58 +0000 (14:22 +1030)
commit8c1656508247c18012dfceca1be7b3fc3ef7d52c
treecef6d7fcdd30978a552200586d4a5fc4afb82843
parent9f40cea25bb277bd49ef793f7655da4ffb2ee72c
virtio: console: Handle port hot-plug

If the 'nr_ports' variable in the config space is updated to a higher
value, that means new ports have been hotplugged.

Introduce a new workqueue to handle such updates and create new ports.

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