Skip to content

Commit 78cddc9

Browse files
vvidicgregkh
authored andcommitted
s390/sclp_vt220: fix console name to match device
[ Upstream commit b7d91d2 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2f4e736 commit 78cddc9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/s390/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void __init set_preferred_console(void)
166166
else if (CONSOLE_IS_3270)
167167
add_preferred_console("tty3270", 0, NULL);
168168
else if (CONSOLE_IS_VT220)
169-
add_preferred_console("ttyS", 1, NULL);
169+
add_preferred_console("ttysclp", 0, NULL);
170170
else if (CONSOLE_IS_HVC)
171171
add_preferred_console("hvc", 0, NULL);
172172
}

‎drivers/s390/char/sclp_vt220.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
#define SCLP_VT220_MINOR 65
3636
#define SCLP_VT220_DRIVER_NAME "sclp_vt220"
3737
#define SCLP_VT220_DEVICE_NAME "ttysclp"
38-
#define SCLP_VT220_CONSOLE_NAME "ttyS"
39-
#define SCLP_VT220_CONSOLE_INDEX 1 /* console=ttyS1 */
38+
#define SCLP_VT220_CONSOLE_NAME "ttysclp"
39+
#define SCLP_VT220_CONSOLE_INDEX 0 /* console=ttysclp0 */
4040

4141
/* Representation of a single write request */
4242
struct sclp_vt220_request {

0 commit comments

Comments
 (0)