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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:42 +0000 (16:05 +0200)
commit78cddc9aa6be2122da9ee3a4d2fff0be5db08cea
treef5d2d6db6ed60c13669450702a8b642590cbecc8
parent2f4e7363a998b28f0f6821f4312f402ab3e3f54b
s390/sclp_vt220: fix console name to match device

[ Upstream commit b7d91d230a119fdcc334d10c9889ce9c5e15118b ]

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>
arch/s390/kernel/setup.c
drivers/s390/char/sclp_vt220.c