Linux Serial subsystem development
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: Greg KH <gregkh@linuxfoundation.org>,
	Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>,
	<kernel.development@povil.us>
Cc: <linux-serial@vger.kernel.org>, <shubhrajyoti.datta@gmail.com>,
	<git-dev@xilinx.com>
Subject: Re: [PATCH] uartlite: Update the default for the parameter
Date: Mon, 18 Oct 2021 11:18:40 +0200	[thread overview]
Message-ID: <cfe542a5-4a4e-0ceb-d7b0-7d96b03710ef@xilinx.com> (raw)
In-Reply-To: <YW0zZVBLImlS4g1R@kroah.com>

+Sam,

On 10/18/21 10:42, Greg KH wrote:
> On Mon, Oct 18, 2021 at 01:50:00PM +0530, Shubhrajyoti Datta wrote:
>> Update the default number of uarts.
>> The commit b44b96a060f3 changed the default from 16 to 1 change it back to 16.
>>
>> Fixes: b44b96a060f3 (uartlite: Adding a kernel parameter for the number of uartlites)
>>
> 
> No extra line here please.
> 
> Also, your subject is odd, please make it more obvious what is
> happening.
> 
> But nost importantly, _WHY_ are you making this change?  What happened
> since that commit was made that now we should have the default be 16?
> Previously that commit said the default should NOT be 16, and here you
> are changing it back.  What changed to require this?

"The uartlite is used by FPGAs that support a basically unlimited number
of uarts so limiting it at 16 dosn't make sense as users might need more
than that."

He said that doesn't make sense to limit it to 16 and limit it to 256 by 
Kconfig range and set default to 1. Where it is also said that number 
should be unlimited.
And also no information why he setup default to 1 where it should be 
unlimited. I would say high number should be fine for the most of cases.
I have never seen any design with 256 uarts on it.

I think we could potentially find real maximum number for looking at the 
biggest fpga and setup this number but from my perspective 256 is big 
enough for a range. But default 1 sounds weird. And origin 16 written in 
driver should be quite reasonable default to cover 99% cases.

Thanks,
Michal

      parent reply	other threads:[~2021-10-18  9:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18  8:20 [PATCH] uartlite: Update the default for the parameter Shubhrajyoti Datta
2021-10-18  8:27 ` Michal Simek
2021-10-18  8:42 ` Greg KH
2021-10-18  8:42   ` Greg KH
2021-10-18  9:18   ` Michal Simek [this message]

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=cfe542a5-4a4e-0ceb-d7b0-7d96b03710ef@xilinx.com \
    --to=michal.simek@xilinx.com \
    --cc=git-dev@xilinx.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel.development@povil.us \
    --cc=linux-serial@vger.kernel.org \
    --cc=shubhrajyoti.datta@gmail.com \
    --cc=shubhrajyoti.datta@xilinx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox