diff options
| -rw-r--r-- | drivers/char/virtio_console.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 4175a2ae972f..1e3f4674da4a 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -1319,13 +1319,16 @@ static void config_intr(struct virtio_device *vdev) | |||
| 1319 | 1319 | ||
| 1320 | portdev = vdev->priv; | 1320 | portdev = vdev->priv; |
| 1321 | 1321 | ||
| 1322 | /* | 1322 | if (!use_multiport(portdev)) { |
| 1323 | * We'll use this way of resizing only for legacy support. | 1323 | /* |
| 1324 | * For newer userspace (VIRTIO_CONSOLE_F_MULTPORT+), use | 1324 | * We'll use this way of resizing only for legacy |
| 1325 | * control messages to indicate console size changes so that | 1325 | * support. For newer userspace |
| 1326 | * it can be done per-port | 1326 | * (VIRTIO_CONSOLE_F_MULTPORT+), use control messages |
| 1327 | */ | 1327 | * to indicate console size changes so that it can be |
| 1328 | resize_console(find_port_by_id(portdev, 0)); | 1328 | * done per-port. |
| 1329 | */ | ||
| 1330 | resize_console(find_port_by_id(portdev, 0)); | ||
| 1331 | } | ||
| 1329 | } | 1332 | } |
| 1330 | 1333 | ||
| 1331 | static int init_vqs(struct ports_device *portdev) | 1334 | static int init_vqs(struct ports_device *portdev) |
