Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146990pxv; Fri, 9 Jul 2021 19:30:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLyT1doCEWhFOpfvp+YwBAzdnSWjYMDfVvsDD+T/b+pAEq/x40a/6pqE+Tyi107WpkJb2f X-Received: by 2002:a05:6402:692:: with SMTP id f18mr28971185edy.327.1625884234395; Fri, 09 Jul 2021 19:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884234; cv=none; d=google.com; s=arc-20160816; b=Oq3xniAoWxb+SjG2Buc3YyPmbEGtdF66rpAg1nQFfMNEIWcrNap5j4bw1m8pSTMfQk go4IintRXuK8UxuYgVNTlrFm7BQ+piSbUkBmoDJS0a+EFwwCsd3chFjfFXN5jnJEmIlT rxH8JR0Ikps/mxnwFCNQFQJBCc0P/f+6vmjp5vWgSRFWzoy4s3hLiyiiP/teJSsJr1Ao hSF9PT1ajQRvPUKpUb+ZO/hSXJdi22w2RUxYC63nocCwtihy9x4wXGLaUb4slMg1GAqP e/oPXNSsur0mRwXXTWSYEkYuj50XAGDlGhKTIgrvg86sB+bqbvM3aSFkr5wBVWAdiG58 hyiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XOsFimCHSWogtN4wrAhwF3GyD4VuULTA6cQa2Cv0Res=; b=H89Y9TP3plU3WOTcN0XsGC/jH5RnJhvkBWeazMrh9kg92b8Tb6T6YAgqvc1X7N8zMt X6MF106RYX9qzGoeT02MYLJSiGKFCqspoyCObJKui/cwF5/2Et45234A2CQ4C722bF5W 4EZnbcjrwUM/9C1NdAA4F7hwLgrknA9lGjy9eU1OG6rzmpLnWkgHUyrBipSoMHPdN7PR HXM6UjPMP0sMHcfwy0Tt6KEd0Oi184MWJ1JzlUM2XO1dEvu7ojBIfwkoqcbkzv5nzdSc 4O6/xtaqyoP3RIkaTscP6TNL4kqm5oIaS9Rc1Z4VglmrfwU4+WrG7qYAHmDIOvJVZnmD 1m9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JO5224GS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi15si9743386edb.459.2021.07.09.19.30.11; Fri, 09 Jul 2021 19:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JO5224GS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbhGJCcD (ORCPT + 99 others); Fri, 9 Jul 2021 22:32:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234163AbhGJC3O (ORCPT ); Fri, 9 Jul 2021 22:29:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35F5D61402; Sat, 10 Jul 2021 02:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883935; bh=pJIUwBz43rdhKVezuX1CTvQA/iMHbAFMJDzTtzD0FhI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JO5224GScli74W7hEhTEdh6YdJD+iZwGRFJgZk66FxUO1aKkfd9H845dBdMLCh4sR Woon+yfgciGqDsOyftNMjeoAnCiGU0+J0lnj/wCnGkCfgvWDIFybCDkTQBfFPWweig 78F5jkY77cTD+w5ds8Hc4vnV0ZXeqb28KwBIjTRo1Am164f6E7NuUb/Upp3N+RQ/NA 3HPeegb2EKo3YGuENCPasqcDGusSuWCEoEk4BuDzMCBUSnXMOOrHs9hDLW8R+MSiyq qNLu0it5wUPeVVlDLF3wT/8TrWAdRwLv83k7Gtl5uPnz21iGaJtZ3RxDcyFjlJO+yV 49GrScHBY4+Rw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Valentin Vidic , Christian Borntraeger , Vasily Gorbik , Sasha Levin , linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 50/93] s390/sclp_vt220: fix console name to match device Date: Fri, 9 Jul 2021 22:23:44 -0400 Message-Id: <20210710022428.3169839-50-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valentin Vidic [ 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 Link: https://lore.kernel.org/r/20210427194010.9330-1-vvidic@valentin-vidic.from.hr Signed-off-by: Christian Borntraeger Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/kernel/setup.c | 2 +- drivers/s390/char/sclp_vt220.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index e83ce909686c..1f23c4b5ea15 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -166,7 +166,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); } diff --git a/drivers/s390/char/sclp_vt220.c b/drivers/s390/char/sclp_vt220.c index 3f9a6ef650fa..3c2ed6d01387 100644 --- a/drivers/s390/char/sclp_vt220.c +++ b/drivers/s390/char/sclp_vt220.c @@ -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 { -- 2.30.2