Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp315068lqt; Thu, 6 Jun 2024 04:43:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVudLRiomHsdCZOKKJFgdvQbwvcGMAGpW0dIaGCHjKZiUuWf6nSPHdOydDGxW1alidIPo8zz/TZNDXU7Kpk8VpwjKwzPoT8DZl46tRuJA== X-Google-Smtp-Source: AGHT+IErskVnwzIB/uASHSJSsdgR+BuEBNdsX+iyXfi+KJwnabOD5B73BcYVtIAb+waz63UnhuKO X-Received: by 2002:a17:907:2669:b0:a63:4e95:5639 with SMTP id a640c23a62f3a-a699fcf6385mr286822566b.47.1717674193382; Thu, 06 Jun 2024 04:43:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717674193; cv=pass; d=google.com; s=arc-20160816; b=KAB5df0x93Ss+FTJbXQywQ0i3W9d1p+SH/F8l612kNzc3BgrkyXmBOV0edD6D3vjhY mLOxL2OMCzWLSW8f1harKMlQLuhVGyKkdLu00fiU3hZRT7pc8bvkF/MHrReuGK/QOdY9 aDkqhlFMMUaJap/Sp6UPLfsZs5eFO5pzs65aSt1OclsjYCzo2QXRTPAEz8Nw+bIqOxV0 wuNuTzw6hK5jM3X2W1N7zbJDFjkuF0V+0p/QIxcD5D4g9ZGe4lvIQ6q9ESe9LKW8og/9 AjVajn7ApEIRQ9Bk/oFWOskEYNmhBXoYQ51WkJTC/co2XtCIyR5jkFWFLwarZntk0OGQ g78Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HMT72mwyfY92na6Y5OQKgN1Ha842yA/0XumtdDJIMKc=; fh=AdHGMkTtr6ZKc/VHToenAaAB0j9M9hQilWfS0ATKUPM=; b=xjjNlyCW7oJbw1dgq2aBn+tFtowhTMqLMlaNbJlfLMMym7HxUR+KfIU3VvUgY5FjAu R5JLzJjdoBxGaC+ueaXHi56Y3+IAjswuQo8Jx9BzyQMgJ6zsLd5Oj4tG/N9U6mZTTCb+ jHcK73xx9g7kWMW7mUztt/AaQg+m3ZqE+zL4G1sO/fPxHU9MbS28Z8nd+LsWCtAkEYHo gaKczKh6pfaKEiq+Au9tlYNveQAtah4SMKHdJpBT8DpKOfPb1wjvl5N3riz+kk+m3ia4 yPfVuXHm022JCJXQaCWDZfQF9SwS+ieDagiyk17hohYVFwGw0Q1XAUlHfbUUQYfEGhiS bcFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJaPyw21; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80728872si60756366b.836.2024.06.06.04.43.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJaPyw21; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204193-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204193-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 047FF1F238C0 for ; Thu, 6 Jun 2024 11:43:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2219819581F; Thu, 6 Jun 2024 11:42:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EJaPyw21" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3DC519580C; Thu, 6 Jun 2024 11:42:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717674164; cv=none; b=oWOu8qzEJAHO1+ctXG6M8Y0cGTjCobcTdAyEMRS94lThLmiz02bi1eki8tDT95nBGs6EdWdgaJASPToxMhse6uSWAUS09VP63rdAoc/ej2KBY7kEMwa4jzqJl3U+gMhSTlyChz83pJ03o+N1YbhpQN31yUBFgADofr3XicWhuaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717674164; c=relaxed/simple; bh=ZmU91IMTzL3EbILWOMUaRcnOPrsPyfbS4xQgTphHPZQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NkL/nyfAWnPdfuCF6nTv0P/iyrAwKcKEwBD7g2ihbBnsFAQTvpSWbPZL5l0Gj6XsM8oEoxqgAMoYlXPYQ9RWaysd55jYsuBQDye7eUuj163izKonauyLw1C/D9L5QsxAuwEcv9Y+D3FvzZwS/9zMPc0nMTb4u+aMaM9l4Exlhs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=EJaPyw21; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717674163; x=1749210163; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZmU91IMTzL3EbILWOMUaRcnOPrsPyfbS4xQgTphHPZQ=; b=EJaPyw21C7aRe6Ug78tGr4RzOG6CgtZ/9s84Lo+vJ2GsNXVJRt7/Bx4C Yqupz1pTDFzZMYPacXCX4PVVIhDtcF28vUK9rGHu5trDdsIan+WCXTaG+ xFU2mryVGt/5K6oWHnrxV3FZ6fq2fgJ9vvBr6fCIArHjbiIptJo/mW7bt yWMtBREnX8RYfxg29JjiavcQB/Yaf3BRbEo3l6SKs30/Iyq86Gt38PsA0 8olo4P9meW47b0OaPHMBJLgu2GeRiVniZIQyuRUptlGfyP6FAibCVPMGd HeEucTu0a4DrYAkw2Q3oN/9zOGLdAa5Oks4qZsiY1ciEQ2O5iUZKNlyUn Q==; X-CSE-ConnectionGUID: ZDYwbEm6QOune/YGSsqiVg== X-CSE-MsgGUID: NhNNbIYGT3KTgMJm3YGB9w== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="14517465" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="14517465" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 04:42:42 -0700 X-CSE-ConnectionGUID: KIvjY8cFQsG2VkZvGz6RLg== X-CSE-MsgGUID: SbU9GlMET92bldHYUhbBZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="42514908" Received: from unknown (HELO tlindgre-MOBL1.intel.com) ([10.245.247.177]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 04:42:38 -0700 From: Tony Lindgren To: Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky , Greg Kroah-Hartman , Andy Shevchenko , Tony Lindgren Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , linux-serial@vger.kernel.org, Tony Lindgren , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] Revert "printk: Flag register_console() if console is set on command line" Date: Thu, 6 Jun 2024 14:41:47 +0300 Message-ID: <20240606114149.118633-2-tony.lindgren@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606114149.118633-1-tony.lindgren@linux.intel.com> References: <20240606114149.118633-1-tony.lindgren@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This reverts commit b73c9cbe4f1fc02645228aa575998dd54067f8ef. There is no need for this change now that we are reserving console_cmdline slots for the DEVNAME:0.0 style consoles. Signed-off-by: Tony Lindgren --- kernel/printk/printk.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 52bdd7dcdb6f..8b746eeb77fa 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2541,9 +2541,6 @@ static int __init console_setup(char *str) if (console_opt_save(str, brl_options)) return 1; - /* Flag register_console() to not call try_enable_default_console() */ - console_set_on_cmdline = 1; - /* Don't attempt to parse a DEVNAME:0.0 style console */ if (strchr(str, ':')) { reserve_deferred_console(str); @@ -3578,7 +3575,7 @@ void register_console(struct console *newcon) * Note that a console with tty binding will have CON_CONSDEV * flag set and will be first in the list. */ - if (preferred_console < 0 && !console_set_on_cmdline) { + if (preferred_console < 0) { if (hlist_empty(&console_list) || !console_first()->device || console_first()->flags & CON_BOOT) { try_enable_default_console(newcon); -- 2.45.2