From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
LKML <linux-kernel@vger.kernel.org>,
linux-serial <linux-serial@vger.kernel.org>,
Jiri Slaby <jirislaby@kernel.org>
Subject: Re: [PATCH v2 1/1] serial: 8250_of: Drop quirk fot NPCM from 8250_port
Date: Fri, 16 Feb 2024 16:41:37 +0200 (EET) [thread overview]
Message-ID: <3885f098-140c-bd5a-922d-a010236cc87d@linux.intel.com> (raw)
In-Reply-To: <Zc9zsrp5KeSRoqxP@smile.fi.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Fri, 16 Feb 2024, Andy Shevchenko wrote:
> On Fri, Feb 16, 2024 at 11:31:01AM +0200, Ilpo Järvinen wrote:
> > On Thu, 15 Feb 2024, Andy Shevchenko wrote:
> > > On Thu, Feb 15, 2024 at 06:40:15PM +0200, Ilpo Järvinen wrote:
> > > > On Thu, 15 Feb 2024, Andy Shevchenko wrote:
>
> ...
>
> > > > > + /*
> > > > > + * Nuvoton calls the scratch register 'UART_TOR' (timeout
> > > > > + * register). Enable it, and set TIOC (timeout interrupt
> > > > > + * comparator) to be 0x20 for correct operation.
> > > > > + */
> > > > > + serial_port_out(port, UART_NPCM_TOR, UART_NPCM_TOIE | 0x20);
> > > > > +
> > > > > + return serial8250_do_startup(port);
> > > >
> > > > I know this matches how it is currently done\
> > >
> > > Exactly, I haven't changed the workflow.
> > > Does it mean you are okay with the change?
> >
> > Mostly. Another thing I was let bit unsure if it's okay to move that
> > serial_port_out() outside of RPM get/put that is inside
> > serial8250_do_startup().
>
> We have other (actively used AFAIK) drivers which do the same.
> In any case this driver does not use RPM anyway, and in the future,
> when Tony finalizes his RPM work those 8250 RPM wrappers should gone.
> If somebody implements RPM in this driver, it may be done via standard
> RPM calls.
>
> TL;DR: for now it's okay, I am sure.
Okay,
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
--
i.
prev parent reply other threads:[~2024-02-16 14:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 14:50 [PATCH v2 1/1] serial: 8250_of: Drop quirk fot NPCM from 8250_port Andy Shevchenko
2024-02-15 16:40 ` Ilpo Järvinen
2024-02-15 16:43 ` Andy Shevchenko
2024-02-16 9:31 ` Ilpo Järvinen
2024-02-16 14:39 ` Andy Shevchenko
2024-02-16 14:41 ` 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=3885f098-140c-bd5a-922d-a010236cc87d@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.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 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.