Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp456082pxu; Tue, 6 Oct 2020 10:18:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyOFSgaLXmOfJmYVgXSatdRVQCK3sUg5OwsH+MKGLuWHbISZg8imGGm1DyklYIA6HzhCVY X-Received: by 2002:a50:abc3:: with SMTP id u61mr6468231edc.253.1602004735292; Tue, 06 Oct 2020 10:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602004735; cv=none; d=google.com; s=arc-20160816; b=0U1rZOFwJRA1XQCFqMsdR6+qk/DqAu1958OvydP6XbyyAO54jL3FsQh74PeKRI1vST ND/1rsa/6magc9IT+I5XJRIQl1afKkSeudh1ZI3PPt1Yvb7BT8luNziX+7WltS+OikzV /Jn5f5n71aeyBd9hg2pqggG9ZWvB7gc3RMEAHJ/dNvzdkQwQNrORfBz6jOKCFRxdghDT EktCMu/MjT6zun3l8iRZkAL8iVVfUuq99TobAtl+lFdCPErVn4uENihEhKG4e0BHY2o2 5AjFnep7YVQKC8Ke2qKzJ0H9G69qWyyd20bXdXjIqAPPfJ9aGTnqY1ukfm9vQHdZX/Ut XWNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yTGFOHS5GcOt7CVNwiIo17hbgHumuG0VmvA89y6hN+k=; b=IHpFnXI1Es4NDnYqtt9fjOmJYzKcjJ2PXLtZ9k04v/TlAPVPzUvQ4ZK7xJ7QonwGxD ihD+fvw7TGaH4g97VzfkSO1sXuHQDFovcX4dWMFBM8gWfYoUbTHGptp3eRbwC3hi8kg5 NjhdKOJl0J89BwoiBg+tUDKUYu1Q7/ptE95W12e18GfWfrjMte8322Wy9sN3MV0uJPuC 3QG0TSANQ+g+zTxLITWXBN5WBZjRCAjRVTaXJqGwQlUyjMXp2NevSR8a5lafr6v1EnL3 LrH1rGLNZX+irPOPUjzO7IX/jPX4IkHHTqiQoySb3LHPhrQcDqoJaaWwjX2SwGoUk68P j2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bSpOj+AC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si2822890eja.484.2020.10.06.10.18.31; Tue, 06 Oct 2020 10:18:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bSpOj+AC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgJFRPJ (ORCPT + 99 others); Tue, 6 Oct 2020 13:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgJFRPJ (ORCPT ); Tue, 6 Oct 2020 13:15:09 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D518DC061755 for ; Tue, 6 Oct 2020 10:15:07 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id 34so8313326pgo.13 for ; Tue, 06 Oct 2020 10:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yTGFOHS5GcOt7CVNwiIo17hbgHumuG0VmvA89y6hN+k=; b=bSpOj+AC45cpECVjPMPeMl0lam129LvO9ZcWAHbMzJIibYalTmxs/g0W301CCYjBuW ZkD34feINU+2hWGElB2GFvvH12dg6PuO4iIQf+9a6eBERwxiDoo0lJ1bAnRHza9bCi2j T55yyJJOtABNg1xcrNdFX7OzpRlQYTISiAexqNQx9b7aszTF2nH/Z4igim1IpLay56Mb pe5Xg5kzu9TnAP1dl0TSzyE4mEyGQQTBuv2G1wk0MyeMt3CmRbUcqVowTtl2v2UI/sUG npnqn8G0XH5Y6uGULH0h2GfFcvhgjZzMSSzYvEfgsJyxlZAEcV8sUOWmMui1IO5jlnyG BWTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yTGFOHS5GcOt7CVNwiIo17hbgHumuG0VmvA89y6hN+k=; b=FPbYt/xUwiApeM3nTT2I1o6wnWLGH8eLC+DvUhPeA1IG3ykbAlmNK7TNTNl/itHJue E8uk0Gif9MMRGC0jYkWFjiqGsfoQpV4zUG1XsP+08P2qf2QrynMcZXVLJMpoQoRQ3g0a KbpvsNEwmgB3Aa5XiySK60vypSDg1FlLTpo1LL6S13dZ5ynle5hIcBgmmqAPKNt5jG6z mE44nASXLSTX2gUq/XfdijRLOeSRwllvZciOWSAY9BTJAyrtolrQbnrJSgsOoWGziox2 QBb1AshQHt6kCqasLOf+yHe4Ww6rn23XySvLzAQrXFf6oppk70L+3G9dysbJUXhYyk5N Kxbw== X-Gm-Message-State: AOAM532x48axDu6pQVa4f8NvPfS7GMdSEp41IPmnYKotdEBVrrRBDHG8 Lxd9lW2CQV+wfK5tRmDvXJ4= X-Received: by 2002:a63:1d26:: with SMTP id d38mr5176136pgd.0.1602004507235; Tue, 06 Oct 2020 10:15:07 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id x5sm4659348pfr.83.2020.10.06.10.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 10:15:06 -0700 (PDT) Date: Wed, 7 Oct 2020 02:15:04 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Guenter Roeck , Sergey Senozhatsky , Shreyas Joshi , rostedt@goodmis.org, shreyasjoshi15@gmail.com, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Linus Torvalds Subject: Re: [PATCH] printk: handle blank console arguments passed in. Message-ID: <20201006171504.GA64770@jagdpanzerIV.localdomain> References: <20200522065306.83-1-shreyas.joshi@biamp.com> <20200522100046.GH3464@linux-b0ei> <20201006025935.GA597@jagdpanzerIV.localdomain> <20201006095226.GB32369@alley> <24f7a6bc-c917-2bb7-0e86-9d729c18e812@roeck-us.net> <20201006134328.GD32369@alley> <20201006163514.GE32369@alley> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201006163514.GE32369@alley> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/10/06 18:35), Petr Mladek wrote: > > > Whatever is decided, I'd like to have it made official and documented to > > > avoid a similar problem in the future. > > Sigh, it is even bigger mess than I expected. There is a magic > variable "console_set_on_cmdline". It used, for example, in > of_console_check() to prevent using the default console from dts. I wonder if we can do something like: --- @@ -2200,6 +2200,9 @@ static int __init console_setup(char *str) char *s, *options, *brl_options = NULL; int idx; if (str[0] == 0) { + console_set_on_cmdline = 1; return 1; } if (_braille_console_setup(&str, &brl_options)) return 1; --- -ss