Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1143372pxv; Fri, 9 Jul 2021 19:22:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2FvVLHeGPPl1FIGIlG1uuqMmLIJQJ7YpBr+UoadxO1OKYpOVFhlmvOE4q7fjjByhqjbmm X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr50093854edv.262.1625883770224; Fri, 09 Jul 2021 19:22:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883770; cv=none; d=google.com; s=arc-20160816; b=Barrs7HFbca3lI0g98cPjFzgrt7P+OG/1SUJmHdrQp7oCCG72PHGC7xWRT0PJTP/xk 7Q6GT3F5iy+cRGzeN4mprOrZIMS5A8p0oxryIEyXuZ6e6TOZjYA7SC6MCliwv/mdLJx+ DsAmDsQ1WBE45BH2mdfzDoWx1VMier07DdsbLzGk19njlkr8Q6n/o1WlKLLUlpSQ2U8+ HwuOazHazpyN/IQUIeH6qxFJ6QaMEH3mzQaYE97VFv+yQHmBMd5nnBgo80ZWLwvD7COQ Vc3qXbJ3appZXWBMVt6WuDCSAhaHp9sgdJNEW0QW3ja9lP/kurw2LO8HErvDeAMqqsaF Aa6Q== 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=X7XJKqh7XiJeJy8EI2Kv95mlGsqTVGbV55URzoPPQzU=; b=ww9+/Tg2ehcDFRzDPXS2GgkXptZquZ0uJISiCkvqz7KzSLFvGiviajDIuKnLcFh3pz zwW66kFg2mRa4wgGH5uXb/CO8dGQx+f5Pal80t6K/fMVplpsn9Qt3bgzTFIA7uFBmu45 nJayLYR0fTulRq/epZ2cum2eYkDE8I6iZ8DHxMiMn87ebJ1cAgQIGbMKk1NlNv+LygDV QOLhp4CIo2NrQRieNGOOBmGK3l1Slpsg/UTwxvn/nVlwr9+pQtMIxiF2UKCz6CfQungT unSdS0bPrfbb5KSYow+P6jFoyohMarnwkWlE8x/oIy+PyDKblv2n9BGtsVuK2b1evyfb 1IHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cOweqfax; 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 ho35si1396531ejc.607.2021.07.09.19.22.26; Fri, 09 Jul 2021 19:22:50 -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=cOweqfax; 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 S233104AbhGJCW6 (ORCPT + 99 others); Fri, 9 Jul 2021 22:22:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:38294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232144AbhGJCVw (ORCPT ); Fri, 9 Jul 2021 22:21:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 738D0613D3; Sat, 10 Jul 2021 02:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883548; bh=3MUwAQubY3y/cjrHEdf/E+gF3nQg7X7Zdc8REz3JAnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cOweqfaxmwqNtyHDeXJuHY/YsK13XnvRm9xqXWYtTHHu0kvT+a/4RoDkzGc310PSj SjNoZvLaIDhm8Mrvs8G0ksO5DwzbRWlVlGMy8mJqy/Xcd5GurkyZaY5lUx6GyMij/9 qbVG6XOjWLFnlQQ4aaKPlTTsdSHY/J6p6Nc04coxSN5R2EDF8StTY9S8fwjjX4vQEO yRCoeKMZV3sPDfYXgVozlcY9D3IER5akp5Nx6rfaegGkRxJpoY2yVzc2HdEDTodvkV VcuB3zd3ZO8R8WbTajfmXRbksXQ727el6rMA5QYScoXAIjjJsHgrfuoLB/HyXdpxoJ HhpXqeVKqrbEw== 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.13 058/114] s390/sclp_vt220: fix console name to match device Date: Fri, 9 Jul 2021 22:16:52 -0400 Message-Id: <20210710021748.3167666-58-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710021748.3167666-1-sashal@kernel.org> References: <20210710021748.3167666-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 7f4445b0f819..2f96c31e9b7b 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