All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: "Martin Hundebøll" <martin@geanix.com>
Cc: linux-serial@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH v3 4/4] tty: 8250: update description of RUNTIME_PORTS / nr_uarts
Date: Wed, 26 Oct 2022 14:25:05 +0300 (EEST)	[thread overview]
Message-ID: <f29eb4e-7ed5-ab81-6924-d599dea8a08d@linux.intel.com> (raw)
In-Reply-To: <20221025073944.102437-4-martin@geanix.com>

[-- Attachment #1: Type: text/plain, Size: 2555 bytes --]

On Tue, 25 Oct 2022, Martin Hundebøll wrote:

> The 8250 module has been updated allow configurations with zero builtin
> UART ports, so change the description of the parameter to reflect that.
> 
> Signed-off-by: Martin Hundebøll <martin@geanix.com>
> ---
> 
> Change since v2:
>  * new patch
> 
>  drivers/tty/serial/8250/8250_core.c |  3 ++-
>  drivers/tty/serial/8250/Kconfig     | 10 +++++-----
>  2 files changed, 7 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
> index a8fbc2325244..3d8bf0296080 100644
> --- a/drivers/tty/serial/8250/8250_core.c
> +++ b/drivers/tty/serial/8250/8250_core.c
> @@ -1257,7 +1257,8 @@ module_param_hw(share_irqs, uint, other, 0644);
>  MODULE_PARM_DESC(share_irqs, "Share IRQs with other non-8250/16x50 devices (unsafe)");
>  
>  module_param(nr_uarts, uint, 0644);
> -MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")");
> +MODULE_PARM_DESC(nr_uarts, "Number of built-in (non-discoverable) UARTs to initialize. (1-"
> +		_MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")");

This fails to build. You have dropped the second underscore for some 
reason.

Shouldn't that 1- be also changed to 0- ?

-- 
 i.


>  
>  module_param(skip_txen_test, uint, 0644);
>  MODULE_PARM_DESC(skip_txen_test, "Skip checking for the TXEN bug at init time");
> diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig
> index d0b49e15fbf5..65ef03553146 100644
> --- a/drivers/tty/serial/8250/Kconfig
> +++ b/drivers/tty/serial/8250/Kconfig
> @@ -191,15 +191,15 @@ config SERIAL_8250_NR_UARTS
>  	  via hot-plug, or any ISA multi-port serial cards.
>  
>  config SERIAL_8250_RUNTIME_UARTS
> -	int "Number of 8250/16550 serial ports to register at runtime"
> +	int "Number of built-in (non-discoverable) UARTs to initialize at boot time"
>  	depends on SERIAL_8250
>  	range 0 SERIAL_8250_NR_UARTS
>  	default "4"
>  	help
> -	  Set this to the maximum number of serial ports you want
> -	  the kernel to register at boot time.  This can be overridden
> -	  with the module parameter "nr_uarts", or boot-time parameter
> -	  8250.nr_uarts
> +	  Set this to the maximum number of built-in (non-discoverable) serial
> +	  ports you want the kernel to initialize at boot time.  This can be
> +	  overridden with the module parameter "nr_uarts", or boot-time
> +	  parameter 8250.nr_uarts
>  
>  config SERIAL_8250_EXTENDED
>  	bool "Extended 8250/16550 serial driver options"
> 

  reply	other threads:[~2022-10-26 11:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25  7:39 [PATCH v3 1/4] serial: 8250: allow use of non-runtime configured uart ports Martin Hundebøll
2022-10-25  7:39 ` [PATCH v3 2/4] serial: 8250: allow zero runtime-configured ports Martin Hundebøll
2022-10-25  7:39 ` [PATCH v3 3/4] serial: 8250: skip platform device registration with no runtime ports Martin Hundebøll
2022-10-26 11:31   ` Ilpo Järvinen
2022-10-28  9:13     ` Ilpo Järvinen
2022-10-28  9:40       ` Ilpo Järvinen
2022-11-01  8:32         ` Martin Hundebøll
2022-11-01 11:44           ` Ilpo Järvinen
2022-11-01 12:41             ` Martin Hundebøll
2022-11-01 13:22               ` Ilpo Järvinen
2022-11-01 14:16                 ` Martin Hundebøll
2022-11-01 15:19                   ` Ilpo Järvinen
2022-10-25  7:39 ` [PATCH v3 4/4] tty: 8250: update description of RUNTIME_PORTS / nr_uarts Martin Hundebøll
2022-10-26 11:25   ` Ilpo Järvinen [this message]
2022-11-01  8:33     ` Martin Hundebøll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f29eb4e-7ed5-ab81-6924-d599dea8a08d@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=martin@geanix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.