Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1144884pxv; Fri, 9 Jul 2021 19:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyANh32QKs/VfIqRN8NQGsLrEZET0SOXKCotyVo0/OOUGMnb6+3zb5zj7hNacLh1EBLm1DX X-Received: by 2002:aa7:dc42:: with SMTP id g2mr49985054edu.362.1625883976210; Fri, 09 Jul 2021 19:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883976; cv=none; d=google.com; s=arc-20160816; b=pBm3FQZkABsUcdYuQBqvoxITP5FLWx42gosxTh09GLKwiXHlFD0NAjgQs2iGxBV0Pb gQl6ZZvOUN/hvHacgUBVUnWoBRl45l90f/uPN/5Y1taREgKzrnD50JDBDMnjfFD02JXn svGiZdQeKlEHo8vZYky6CGNKGA4FyOlR3La9VLhExlnSSr4zuwb3IGxrX9GWsCezFyqQ Xenq1Y7ITC9rDu7qnEO/x/yFAmVK9LmjVKWI9Ka9dd6r5IxLCEUz3OmXmF5vsYL3c9UE tE4rT574xFovVp+kYq9Fjs6E68KH1gwnjsZK07NSUGOVc9LqPo7m+4UrKIVauq0ffEsv eupw== 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=NoP8nUejyXiE51PBBNEQiDgl9SDdbAqgAcCGTHUCGU4=; b=scN4qZLYORsFXJVSgbTus1n29sZO8dQOIvfVMsSiG+3CgM/Y8+sq2N/FoBBtBl6jxv dJ68iQ8ckt+m6ywCKbipEPsyaDq4eRu4l9f8v1fJXc2/lczhl6yoKnAR9SiTRObvBlpo ZUWpyzsZac1lQ0RsKmJAuyc6qKfuxXtBomPCoGW7SbDAb8ssdUPrXzP9ck40tnDD1Z0H 38qFw3EPXZjllQ29ni5QhpK7jce8SW+0isEWDEuRxKQYMI5i9eFgL/+/MIYFJJkFwfa3 pWtjLCAtiQzo+TQkONsPZIkZmFetA9LHFJVfSTX5yYzHb2vLyPl1tqsTW6cDDMfc2TrY nsxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="K5sNa8g/"; 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 a16si9145166eje.682.2021.07.09.19.25.52; Fri, 09 Jul 2021 19:26:16 -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="K5sNa8g/"; 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 S233666AbhGJC04 (ORCPT + 99 others); Fri, 9 Jul 2021 22:26:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:42542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233352AbhGJCZv (ORCPT ); Fri, 9 Jul 2021 22:25:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B204613D4; Sat, 10 Jul 2021 02:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883786; bh=b5k22aFWXR3H3b4wSw22+FAs12UBiGOtQLj3c6QFxYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K5sNa8g/zzzrROSw42CWm6eM6h68grR3EIbnAxTEj8VuhOtiEl2YHHYEveCBVMhKU pKP+4AF5ytxIKJmVRQM4IZ3+qVUcUtgaVM0CDLd//azfzTkjXxZDLnWus+b1HmCYbE Njj/8yQvPfAvFJUB8p0Uq1jC70PxCjVI2qnStdiL7EmTAaqT1aoCMxRylym+z9KuMm N2m7fakZM6SPmaHNPg5qhNYegiLnMwFjzowzBV5JTJHjUTiteVc1baGSmepRT4WaIE +c2lO7N5wuHsERehedyENS3FaifAq1hSpMwkkU2GqKJUdwPmVEaV5j1/ZB0ytn8lhU 9/pDfuHerZo3Q== 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.12 053/104] s390/sclp_vt220: fix console name to match device Date: Fri, 9 Jul 2021 22:21:05 -0400 Message-Id: <20210710022156.3168825-53-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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 5aab59ad5688..248d134a0592 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -165,7 +165,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 047f812d1a1c..71ed1bf15598 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