From patchwork Fri Nov 29 04:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: n3rdopolis X-Patchwork-Id: 846269 Received: from sonic305-1.consmr.mail.bf2.yahoo.com (sonic305-1.consmr.mail.bf2.yahoo.com [74.6.133.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AE8B14D428 for ; Fri, 29 Nov 2024 04:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.6.133.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732854979; cv=none; b=FM259JkfLD/4VpRQRWpankDch53g8jvpuZkv3FrSLCKm1wwAMXfCmD+kkS6/cpGmeZQAnwoUbHOCtpWn78bMeHZeB+2f2cGOZTeu1YnDswd824XBJRoJXcBOTfeMhf9IYkOl+hx0A9l633DEfHujh0pAduPwm8kwUTPaZqH7plA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732854979; c=relaxed/simple; bh=+/KmO3a3ZqPkpk88xYk2TASZx3w+zAIDLk4JhcnfO3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:References; b=DZoWcsG/02fEcxMYkZbS9qS2waDiwutxoCAuxEb7bdvQzSL1dK7W/W3t/3tm4NLWVzfK7hZgYGh82Mk6RUKHalVAodmz3kBJkkhSjGic7EM49V5/L4fJvfArJQ8i0TluumLDMl/OkpHZ/Q4l+71Z113Ucb7Tte25/Awchm+5qhY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=verizon.net; spf=pass smtp.mailfrom=verizon.net; dkim=pass (2048-bit key) header.d=verizon.net header.i=@verizon.net header.b=HH9997Nc; arc=none smtp.client-ip=74.6.133.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=verizon.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=verizon.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=verizon.net header.i=@verizon.net header.b="HH9997Nc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verizon.net; s=a2048; t=1732854976; bh=GQSojATNMkj2XY8rz6LmsRqO9TSCVXvI4iHLwdFwzks=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=HH9997NcncJx8MzvDHZRRLL4ghvo45rRNcSrSFyKADaW4v0Ugh8b9/QBa5uX79FaMRDbS7MrKlMC34qLJNz2pYBg4fECWi2XZpDwQNXxjjXL+5YltB1bAHTGWs6tHS/tN/VuAfVh08F+9KtZ1B1sK6zbdug2++DSuYifB+0xQapgdO25NlYBY7Rzo9z3uKRkWHE3L3tWV/cJqyqieMWFr2HFLYsEKAGin7q+EL0VWbCQ8Ac7KDzpRsfl6fZEELbayW/b/FEZhC/oOgM3gILOI5kV7Jzq6QPPIp96Z8nPPtrNoSzDNhePuOn3+TbQ1UgYd4YHDIx3qsVjUusNTxyhSg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1732854976; bh=7RzgHPwIy9OGQj/sXsANIsXF9ePijAbvmwU7JeUxUDE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=SsST8VcpU79fBDWd7LJEVpp0JtnIjULj9BhI3o5ZUDCnZDbnAe8c33LDlcVddIHSZ2WE4/hVQaafterL2weB1Q2+N/4joqFLKGqmLM8Aipz3O2GeuKNebqv5JW9cSojEPogtzTCUUri5TBYU2UndkOmV7PJUrSo/CAZJjkT6Z4Ko5d3LMwxJfmDrMPv/9hQWoq6o3w129yC7abCa7CuooumtEojRLFnKyaD/w+2ZYeUqEXIoxCsXlssnxA/F3q5EkLgNi37hhSZjnMidPR89ASsCpwOcqQBP7tetL6GweeR0jMjcGvc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5E1Ee1IJXixr ThkEFHCiKihwaxHCNfTKF8.u_6hpBc_iC9Yh1rCDxhIA.Gcz.27VfiVyS5_71NB.RVJCAIMfxsXe _KT83YdXKEBPJ9Xl.yMFzjjpMPN5gaoZHcpNu43KnOjfASTGuRQHmALJU_TfeL0ezmLCqrtNZoOo qSmaNopED3kkD4BbubDcJ4EJ0EbKnNnDrnhU74be8z9Lbq_JplX9JnqEpLbpVQxCPBViZnhlb3L1 WU_dbo9zh8IMi X-Sonic-MF: X-Sonic-ID: b678fd99-ae38-49d4-b635-e51f217fb12e Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Fri, 29 Nov 2024 04:36:16 +0000 Received: by hermes--production-bf1-66bb576cbb-h2pjb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID af1c0b40292d512b9d850181f2953147; Fri, 29 Nov 2024 04:15:58 +0000 (UTC) From: n3rdopolis To: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Greg Kroah-Hartman Cc: n3rdopolis Subject: [PATCH 0/2] Optionally allow ttynull to be selected as a default console Date: Thu, 28 Nov 2024 23:15:47 -0500 Message-ID: <20241129041549.778959-1-bluescreen_avenger@verizon.net> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20241129041549.778959-1-bluescreen_avenger.ref@verizon.net> When switching to a CONFIG_VT=n world, at least on x86 systems, /dev/console becomes /dev/ttyS0. This can cause some undesired effects. /dev/console's behavior is now tied to the physical /dev/ttyS0, which when disconnected can cause isatty() to fail when /dev/ttyS0 is disconnected, and users who upgrade to a theoretical vt-less kernel from their distribution who have a device such as a science instrument connected to their /dev/ttyS0 port will suddenly see it receive kernel log messages. When the new CONFIG_NULL_TTY_CONSOLE option is turned on, this will allow the ttynull device to be leveraged as the default console. Distributions that had CONFIG_VT turned on before will be able to leverage this option to where /dev/console is still backed by a psuedo device, avoiding these issues, without needing to enable the entire VT subsystem. n3rdopolis (2): ttynull: Add an option to allow ttynull to be used as a console device tty: Change order of ttynull to be loaded sooner. drivers/tty/Kconfig | 18 +++++++++++++++++- drivers/tty/Makefile | 3 ++- drivers/tty/ttynull.c | 16 +++++++++++++++- 3 files changed, 34 insertions(+), 3 deletions(-)