From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0C7972C21C7 for ; Fri, 15 May 2026 12:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778849829; cv=none; b=hBvLyXVPYud71PxtIBPELszgc7CrmvACl4xar0AFm1a4c72BgZpqVtH39bfikcty5A66JySpguPjh6eiVbbiXJTbmfVxiLOipo5n5ZnHdpq+zwt7hweqvKMggOxbkib7yEbi9kFb9yQgDf1G/xDbqxkRD08CdCb6xZiVcRz1HP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778849829; c=relaxed/simple; bh=2dsl93+XGnSfUzxjWeI9snGfCHjDbT+cSyhX7RDqE0k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=f9DS5sLBbe4lVmbsZsp1jhUNPSAxB9veNPc40kX3fvyc+NcQv4npip+7i7hE4/RfuSJUoZqGQQ2p2TbhhRbWWDJkymigZNSZho3UJaMPJ1dvy6HW0CkvUsduUwx0+3mMROsICu15Pih7RnZ5IyHgAc2di9a/DvHEQxwwjx33mKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nXvWE3cG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GhvP7RoT; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nXvWE3cG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GhvP7RoT" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1778849825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2dsl93+XGnSfUzxjWeI9snGfCHjDbT+cSyhX7RDqE0k=; b=nXvWE3cGqR57ZXjuanbclCNEMq2TxCpipEa0sJQ2hrfrm8ALz9SyYaITiEl+1PGlvRldeL z7xZUJ3PFdTEPMidIIfbBobJEb0aHU/ckHDaI+cQkiS0u/470nXStp4LuYOUpQBD3m2Jgl PlEITrfR6oY1UmFwP+WoS3S14dnoh86OzMCDiE5gH3JLreMuwVpXf/mff2Dp2fqTKvJ7fJ VoLSH91nalU780LgKptKTeBjFSYjAheuxBs+lbPEbiqd9yshsUFuwB2mvKZKCtzOkX0TSh 831LCz0jK95jCc+KXb9+s0WQh3G4lIb4BH1ctboIi8EKZDtCAvy057fr1LiDDQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1778849825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2dsl93+XGnSfUzxjWeI9snGfCHjDbT+cSyhX7RDqE0k=; b=GhvP7RoTRcFQRk2ImPD08NTTfWiPFPEzvYIpMJeR48k/iY9ZjQYbtCGvHy4F9MEGopCbci 2srNq7BEj4OOTNBA== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Marcos Paulo de Souza , Chris Down , linux-kernel@vger.kernel.org, Petr Mladek Subject: Re: [PATCH v2 5/9] printk: Separate code for enabling console In-Reply-To: <20260423130015.85175-6-pmladek@suse.com> References: <20260423130015.85175-1-pmladek@suse.com> <20260423130015.85175-6-pmladek@suse.com> Date: Fri, 15 May 2026 15:03:04 +0206 Message-ID: <87fr3s7rvj.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 2026-04-23, Petr Mladek wrote: > There are several code paths which try to enable a newly registered > console. Move the logic into a separate try_enable_console() function. > > It simplifies a bit the long register_console() function definition. > > Also followup patches are going to add even more code paths. And it will > be easier to use "return" when it does not make sense to try other > variants. > > The patch does not change the existing behavior. > > Signed-off-by: Petr Mladek Reviewed-by: John Ogness