]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/sclp_vt220: fix console name to match device
authorValentin Vidic <vvidic@valentin-vidic.from.hr>
Tue, 27 Apr 2021 19:40:10 +0000 (21:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:06:59 +0000 (17:06 +0200)
Console name reported in /proc/consoles:

  ttyS1                -W- (EC p  )    4:65

does not match the char device name:

  crw--w----    1 root     root        4,  65 May 17 12:18 /dev/ttysclp0

so debian-installer inside a QEMU s390x instance gets confused and fails
to start with the following error:

  steal-ctty: No such file or directory

Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
Link: https://lore.kernel.org/r/20210427194010.9330-1-vvidic@valentin-vidic.from.hr
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/setup.c
drivers/s390/char/sclp_vt220.c

index 59c21df9ea7957061c5849561cdd87aa5da68d1e..f069083a7517a2c1ec640463a2d6d3160db371a3 100644 (file)
@@ -168,7 +168,7 @@ static void __init set_preferred_console(void)
        else if (CONSOLE_IS_3270)
                add_preferred_console("tty3270", 0, NULL);
        else if (CONSOLE_IS_VT220)
-               add_preferred_console("ttyS", 1, NULL);
+               add_preferred_console("ttysclp", 0, NULL);
        else if (CONSOLE_IS_HVC)
                add_preferred_console("hvc", 0, NULL);
 }
index 7f4445b0f81921c8f5609e9d0ca60674ea99869c..2f96c31e9b7b21a788c3b332a47b074c7e4130af 100644 (file)
@@ -35,8 +35,8 @@
 #define SCLP_VT220_MINOR               65
 #define SCLP_VT220_DRIVER_NAME         "sclp_vt220"
 #define SCLP_VT220_DEVICE_NAME         "ttysclp"
-#define SCLP_VT220_CONSOLE_NAME                "ttyS"
-#define SCLP_VT220_CONSOLE_INDEX       1       /* console=ttyS1 */
+#define SCLP_VT220_CONSOLE_NAME                "ttysclp"
+#define SCLP_VT220_CONSOLE_INDEX       0       /* console=ttysclp0 */
 
 /* Representation of a single write request */
 struct sclp_vt220_request {