Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1150401pxv; Fri, 9 Jul 2021 19:37:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyThaeFnhtg934VOdVhBl3MCAvWXDrolc9mP89hOoCxDORxei9vLm68P0IOZSenTD38nBUv X-Received: by 2002:a02:630e:: with SMTP id j14mr18569529jac.86.1625884666686; Fri, 09 Jul 2021 19:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884666; cv=none; d=google.com; s=arc-20160816; b=rPXHPoq+PwrNj/xoD8xeUEvfXzuDEIQNVn5lYeVN/Xg4Uy/VizmKRWEglbW3No1g1S RRCsOrkI+G4+u4OEntzQd+Q7ZUbJLXulVxtwZWme6SaCBzmZ8DT1RHpTvK80vId2o15s D29uuiWMHhGPtblTlGUDEHiP6fAZEJrTSKfK0Udc7aLS20HjOB3poAoisKOITPJiZAEs qInEBLbMW7piBi4CuDAQJ2eEa7uqRnpDW2KzYXHdtjdT+mOdFqydw3yW4zdiSjXNi1of t+nFIqeNM+u93hMVr4f/hZC5TBrDe45JSGFG2xjPFq+UsLkIsvM9zQSlQ15wh85WtBez 2z3w== 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=Dz+gDM0MF/uMYuF+ujBEeutqacv4p6IOlJstGc1C1n4=; b=Ur473w7zrAp2f76PCzHvCdK4K4rt9ftUFW6GyeAYgGf+Qbn45csqJf0MO5B3Vgu/iu WsB7yc2GLdxO3NU6Hdg61ej6sEt7AiA9wE/cBI8OZo+PYISk8MHtYPN5h2upwG8M3pXU UiEeqwDp1UN0NejbcBPx7/izpaFPLmbUvR8uXiBVOTX88I3m2cByVl8NXMyvQYGG4ZNY SMvaVMvEKpG9u58PrWYLoDkQRbj66OV6DTeKmxI7gHQ1d2YqfXxx9oM5aur1+4BbvwCX 3R0an4EPERNHsmsIdXAIEjX1t2hdkhtwAuoAAmmfsjycGafLNNQnWRgwInE41E6IrIKr ytsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OP5IOOo4; 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 z18si8826281jat.72.2021.07.09.19.37.33; Fri, 09 Jul 2021 19:37:46 -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=OP5IOOo4; 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 S234653AbhGJCjL (ORCPT + 99 others); Fri, 9 Jul 2021 22:39:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:53320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233959AbhGJCf3 (ORCPT ); Fri, 9 Jul 2021 22:35:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ABB6961413; Sat, 10 Jul 2021 02:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884347; bh=76H8fEoFE0QAszweaPuruSCXXxWs976mpnn4kWZZISA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OP5IOOo4NeYG+7ieCPjVo+pDaZ1LJxpWBlw8prB1nmcbNR2U57lWMbuuxOphFPfW1 hYFPof52oOuZoyO0LGBQruhye/MUVeMOlXWvQx+0FUHT5SRMsI7vTzf3KO+3sUatVz F2aas+/LyVtA49HRgiyjycU6HxzlonqulChWwFDI5HTLaDdQRWA9X786Z2FvcWyVHv 2wZVO/ZXIXHFMSbz5e80CaQVp7MnTAGFtXO4OtsEtyEi1pqGiORKlPein7tGfH9Ogw HsjkV4ieAa5lUVtsmjIFJZWOKhWXAivdwEWW0lpjHa1TOd2uo4mmypMuBg2edkwRju R986OS/OCrf0g== 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 4.19 18/39] s390/sclp_vt220: fix console name to match device Date: Fri, 9 Jul 2021 22:31:43 -0400 Message-Id: <20210710023204.3171428-18-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023204.3171428-1-sashal@kernel.org> References: <20210710023204.3171428-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 4bda9055daef..e8bfd29bb1f9 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -141,7 +141,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