Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp262743lqh; Thu, 30 May 2024 23:55:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxkiJB21dvSEcfqppmatmTlRM0nOEzDXkHS9UprOJOBHzB8e7rrE2kJ2A5XXRtF47AR/NwLQfT0orgVQGC+2Gd2s9jIUcCYYjQYq6Rdw== X-Google-Smtp-Source: AGHT+IGJ9keH9Gr0C+KbqxhgDDtsHl4H8tpe9ZykljIZ4NL5xiLmD18Frn0Cx0pSwWMUUBq82imD X-Received: by 2002:a50:a69e:0:b0:57a:1e0a:379f with SMTP id 4fb4d7f45d1cf-57a36384e0bmr709815a12.16.1717138508529; Thu, 30 May 2024 23:55:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717138508; cv=pass; d=google.com; s=arc-20160816; b=A3uY7mRAM4B0kv8qM0vGPqyReGEsMp54D+hIg2TXNXKmeCWLA9aCClgrYzZ80pDKu8 FRLxvkpxEa3glFGbzzCDI6WOTspPk/aRIuWzGIwcz7AQmiGOIyMao0TGHh4K8EV7Y9r+ 0JOR5cLnZyuFeZonlnYkGw9PDCjVSQOOykvj8C8kJjXYJRGU/N5t5qFXhgpZWw27x+Ct H8fImFPJUa5h+vyNs4eJHuZaR1ppGwXNKj9qO0tiEwU8aEMm/bBs7SWr/FmvcWE055u6 OIzWDU8qC1KkbL2yKNa+xRYsZU7QXdSv7fI6MqBmtsArPZojhtfAsxz0cEvHh+A+3mP6 8qPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vj/iKG5SOv70qFtt9ZacYP3jJGUG03ItpLbMK39Ejt8=; fh=7A8ucPQbAdiRJFFZTvFKh2Lw3AZFjtGs3Drix27pIlQ=; b=PgpaWqOnC495fgXRKb8S+uQdbcqvc7IB7gEKvVz7EK/o95mgnErf7geCqt2TYp4tAs 9PbaHloW9/PSGPVpE+hPIuN77lMAArkiPBXKhZJTLYFVYEkIZthpuvscc4j0tf1R1f1A 5ri0KW5+gQEITIHCTAci/E5FYneNmDgT4ApmRIEuMNlc6d99loPpvNWqPHjikDj8FvrA te1YsSLnJCkP8FP2lMeQdDRB1zvkqkHY+ZolLOaOB423IvXWfSdjvGZkvc9s0CL5WE8E fGwuKTwdZpG7KpNquNy+PhX4rW+mXe2EbanmkQVRbCQ4K/PWveZGiYrHFehmxH8pzPAl rkcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BcVRHzov; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196373-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cad8f7si621762a12.587.2024.05.30.23.55.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 23:55:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BcVRHzov; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196373-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 0E8A61F257A8 for ; Fri, 31 May 2024 06:55:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A1A880638; Fri, 31 May 2024 06:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BcVRHzov" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 168E07FBAE; Fri, 31 May 2024 06:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717138498; cv=none; b=Ip7+UhdlfVkBCv+keSJ/NzzrYK1E3K7Lt7dMcfryv8hkeJW6t92TQt+Dxm2AUMUkKbH0Q9fUESau58OAeKkC77DKRrL4KFEzjr+ildxobEN72t28BykTsjhWBx/EozHQPgy+2HZDGicP/lDOY3SvZ284WN0KJfqQ6S5UZvlEH18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717138498; c=relaxed/simple; bh=vj/iKG5SOv70qFtt9ZacYP3jJGUG03ItpLbMK39Ejt8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mEVxeDd7GZjlvLxTzxo8mDVsPgqMbOK5QbeUCQgAbz6C4qGf1DYtcQ8L1ctag5XUTq1BTKvzwYYz938FevAz2GSQI3wJkgFbhWXnRUt2EBEb52RzgQoE27IpB8OO7jDOLNt9o/7TWuM2YEWr3zVxlU/78qE1fGL4jj8aD2Z1ZIs= 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=BcVRHzov; arc=none smtp.client-ip=198.175.65.19 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=1717138497; x=1748674497; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vj/iKG5SOv70qFtt9ZacYP3jJGUG03ItpLbMK39Ejt8=; b=BcVRHzovUhu8czM/PT5y8VV+EVAdY4Q8XEKIl6GWnJTrhVK7havS+Ks3 PYO2Djc8o4MxuAw9Aqe6M2zcL2II3uHHD7WxF8f1OttZ7NdrzPnnBEXhV PL+A25/45kL0Ds01VIzxTwTuu8BK3dkCPMbDjMOI2c+MZ48GxDD7Toloa dRl6PxdWVAUJYLPzxogj6nRI9bAtxUKgrYku33Dqa4BDqwS0iqaMzA+kQ l1q4I+y2zouLRFkb8Ducme5lAWFy/N+FK4noGF2mI7uHoKSv/EmZyhwFg +/NyRebqxboLU85oNBG/tbMZH4CIVk4VEbBt8SlefvL4iWQSiGmjL5Rax w==; X-CSE-ConnectionGUID: 0auM96zMRDO20Koa43zoOQ== X-CSE-MsgGUID: 6ndYnhpjRiO1SP16efHrrg== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="13507510" X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="13507510" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 23:54:57 -0700 X-CSE-ConnectionGUID: 7bYeZLVjRP201gzqW9q7GA== X-CSE-MsgGUID: inShIAHCT7W0bVAdMoLxrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="73549945" Received: from rrware-mobl.amr.corp.intel.com (HELO tlindgre-MOBL1) ([10.125.108.14]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 23:54:50 -0700 Date: Fri, 31 May 2024 09:54:42 +0300 From: Tony Lindgren To: Petr Mladek Cc: Tony Lindgren , Greg Kroah-Hartman , Jiri Slaby , Jonathan Corbet , Steven Rostedt , John Ogness , Sergey Senozhatsky , "David S . Miller" , Andy Shevchenko , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Sebastian Reichel , linux-doc@vger.kernel.org Subject: Re: [PATCH v7 1/7] printk: Save console options for add_preferred_console_match() Message-ID: References: <20240327110021.59793-1-tony@atomide.com> <20240327110021.59793-2-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 24, 2024 at 06:06:21PM +0200, Petr Mladek wrote: > A solution might be to store "devname" separately in > struct console_cmdline and allow empty "name". We could > implement then a function similar to > add_preferred_console_match() which would try to match > "devname" and set/update "name", "index" value when matched. This sounds nice, the empty name can be used to defer consoles that are not known early. And on console_setup() we only set the devname for such cases. To me it seems we additionally still need to save the kernel command line position of the console too in struct kernel_cmdline so we can set the preferred_console for the deferred cases. Regards, Tony