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 490BD3AE715 for ; Wed, 15 Jul 2026 16:01:56 +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=1784131317; cv=none; b=I92IM7q+I7riJ1z+JGDyeS01oVQ0xnnITTWhTY9HO3zbv1GN8pEbV788bncTTFuAFJEsubt1Q1OZekGGt+s6KVx23GCFRoQKHOIDBgbif/aY/gmYUuurN9ijI0AHBLf272Ydof6cSJM+EWtyrJ2yRkEqvZxUHauPKH4O8h9S9hA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784131317; c=relaxed/simple; bh=AkwRkrwFbGv580FAr21//3tWt4+M5qQK3nvERZFNsxM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=WI9um6xiTgn5UxcXf5YjDW9s9dLuwjGzYh1LnC0vac3fsBnozeTX/oru90kQlS1ytEaE7zi7ybsKrVmsW//ql17CvagGKLDCizfK9laX6B1vCNdmZbViJRsVJq3JeHvkU10icMfPa7ImMUqmYuPmYE18QPvKAhBIxlLO88P0HhM= 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=VVmTHw2N; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=f9zTHVr+; 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="VVmTHw2N"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="f9zTHVr+" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784131314; 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=AkwRkrwFbGv580FAr21//3tWt4+M5qQK3nvERZFNsxM=; b=VVmTHw2NfLwDIOgSyuioluPOpwBhipwpKBWmXUoKCKSD1ECfL8hry7ZvS0fiYWOpJfA55+ +tTufD+vr4tqhVCdZ8aWOEBS6RJ+6/rUofefkJFExI0je6Pa9Sh2rXIEAB3kR1PnwVVXb4 MZ00mR5h8y0gQ4UvLxnBjk0GWoZOr14YtqVPrPQGI3ub4c7EHC4MBsWsHV0LQE3ms7D6Ty qbOPRB+0XSS8C0cwF5AXplhrkXVaxPS5cROOB2uth9cz1YbFUZPENjwZgH3gDeNRbOQfrP U1JAsk0pG0AMWyzyz/jWvJ8qpk8v7V5FUloxrAwqPdx2Ow1NzkdP6CslQgC8zw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784131314; 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=AkwRkrwFbGv580FAr21//3tWt4+M5qQK3nvERZFNsxM=; b=f9zTHVr++9XvL+doQ7eyUj/dv4UxoA/2qwVNP8Ccr0KYSZTHdBzrF0T+V9OMbMdVoZF0hO OD2x5noTLESYmbBw== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Marcos Paulo de Souza , Chris Down , Naveen Kumar Chaudhary , linux-kernel@vger.kernel.org, Petr Mladek Subject: Re: [PATCH v4 07/11] printk: Separate code for enabling console In-Reply-To: <20260604101459.393162-8-pmladek@suse.com> References: <20260604101459.393162-1-pmladek@suse.com> <20260604101459.393162-8-pmladek@suse.com> Date: Wed, 15 Jul 2026 18:07:53 +0206 Message-ID: <87qzl4meby.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-06-04, 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. > > No behavior change. > > Signed-off-by: Petr Mladek Reviewed-by: John Ogness