From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Fuyao Kashizuku <fuyao@sjterm.com>,
linux-serial <linux-serial@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] serial: 8250_dwlib: Restore NOTEMT for em485
Date: Fri, 4 Dec 2026 16:06:31 +0200 (EET) [thread overview]
Message-ID: <640b6882-1a98-074a-c3d3-ec1fb417970a@linux.intel.com> (raw)
In-Reply-To: <axLH9gpiK_9mYbi9@ashevche-desk.local>
[-- Attachment #1: Type: text/plain, Size: 1797 bytes --]
On Fri, 4 Dec 2026, Andy Shevchenko wrote:
> On Fri, Dec 04, 2026 at 02:56:33PM +0200, Ilpo Järvinen wrote:
> > On Fri, 4 Dec 2026, Andy Shevchenko wrote:
> > > On Sat, Nov 21, 2026 at 02:35:15PM +0800, Fuyao Kashizuku wrote:
>
> ...
>
> > > > +static int dw8250_em485_config(struct uart_port *p, struct ktermios *termios,
> > > > + struct serial_rs485 *rs485)
> > > > +{
> > > > +
> > > > + struct uart_8250_port *up = up_to_u8250p(p);
> > > > +
> > > > + /*
> > > > + * Without CPR, 8250 autoconfiguration can overwrite capabilities.
> > > > + * Restore NOTEMT before enabling emulation: DW has no TEMT interrupt.
> > >
> > > Hmm... The end of the phrase raises a Q: Is it true for *all* versions of
> > > the DW 8250 IP (there are differences between 4.x and older once which might
> > > be related)?
> >
> > My impression there's no TEMT interrupt in DW UART.
> >
> > But if I understand the comment correctly, this problem seem to relate
> > CPRless HW falling back to autoconfig which overwrites what capabilities
> > dwlib set (autoconfig is really annoying as it respects nothing?).
>
> Yes, but shouldn't we do it differently then? Something like having a default
> settings somewhere? I would expect perhaps a default "CPR" value that has to
> be respected if CPR is absent. Or maybe you have a better ideas?
Like limiting collateral damage autoconfig is allowed to do? Doesn't the
autoconfig run too late so we'd need some kind of mask to prevent it from
touching what the driver marks with keep-hands-off?
Perhaps this is just some capabilities = x somewhere where it should only
do capabilities &= ~(BITX|BITY|...BITZ) for the bits it actually
autoconfigures rather than overwriting any capability flags.
--
i.
prev parent reply other threads:[~2026-12-04 14:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 6:35 [PATCH] serial: 8250_dwlib: Restore NOTEMT for em485 Fuyao Kashizuku
2026-11-21 6:42 ` sashiko-bot
2026-12-04 12:28 ` Andy Shevchenko
2026-12-04 12:56 ` Ilpo Järvinen
2026-12-04 14:02 ` Andy Shevchenko
2026-12-04 14:06 ` Ilpo Järvinen [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=640b6882-1a98-074a-c3d3-ec1fb417970a@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=fuyao@sjterm.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/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