From: Justin Chen <justin.chen@broadcom.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-serial@vger.kernel.org, opendmb@gmail.com,
"Al Cooper" <alcooperx@gmail.com>,
"Broadcom internal kernel review list"
<bcm-kernel-feedback-list@broadcom.com>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"John Ogness" <john.ogness@linutronix.de>,
"Jiaqing Zhao" <jiaqing.zhao@linux.intel.com>,
"open list:TTY LAYER" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] serial: 8250_bcm7271: improve bcm7271 8250 port
Date: Mon, 14 Aug 2023 09:28:02 -0700 [thread overview]
Message-ID: <533b62f7-a6c2-b360-13e0-b873a1a54251@broadcom.com> (raw)
In-Reply-To: <ZNpEe+nmXGAkEbAb@smile.fi.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
On 8/14/23 8:12 AM, Andy Shevchenko wrote:
> On Sat, Aug 12, 2023 at 09:24:21PM -0700, Justin Chen wrote:
>> On Sat, Aug 12, 2023 at 3:50 AM Greg Kroah-Hartman
>> <gregkh@linuxfoundation.org> wrote:
>>> On Fri, Aug 11, 2023 at 03:14:01PM -0700, Justin Chen wrote:
>
>>>> + [PORT_BCM7271] = {
>>>> + .name = "bcm7271_uart",
>
> This is badly named port type.
>
Would "Brcmstb 7271 UART" suffice?
>>>> + .fifo_size = 32,
>>>> + .tx_loadsz = 32,
>>>> + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01,
>>>> + .rxtrig_bytes = {1, 8, 16, 30},
>>>> + .flags = UART_CAP_FIFO | UART_CAP_AFE
>>>> + },
>>>> };
>
> This is almost a dup of PORT_ALTR_16550_F32. Use it if you wish.
> You can always rename it if it feels the right thing to do.
>
There is some other PORT_ALTR logic that I would like to avoid. I would
also like to avoid future changes to PORT_ALTR that wouldn't be
applicable to us.
> But why 8 and not 16 is the default rxtrig?
>
We were seeing some latency issues on our chips where 16 would cause
overflows. Trying to kill 2 birds with one stone. If creating another
port type is avoidable then alternatively I can change the default in
userspace.
Thanks,
Justin
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4206 bytes --]
next prev parent reply other threads:[~2023-08-14 16:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 22:14 Justin Chen
2023-08-11 23:40 ` Florian Fainelli
2023-08-12 10:50 ` Greg Kroah-Hartman
2023-08-13 4:24 ` Justin Chen
2023-08-14 15:12 ` Andy Shevchenko
2023-08-14 16:28 ` Justin Chen [this message]
2023-08-14 18:09 ` Doug Berger
2023-08-15 6:43 ` Andy Shevchenko
2023-08-14 18:13 ` Doug Berger
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=533b62f7-a6c2-b360-13e0-b873a1a54251@broadcom.com \
--to=justin.chen@broadcom.com \
--cc=alcooperx@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jiaqing.zhao@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=opendmb@gmail.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
all inboxes | Powered by JetHome®