From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>,
Alex Williamson <alex.williamson@hp.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-serial <linux-serial@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Lennert Buytenhek <buytenh@arista.com>
Subject: Re: [PATCH v2 1/1] serial: 8250: Turn IER bits on only after irq has been set up
Date: Mon, 19 Sep 2022 17:06:56 +0300 (EEST) [thread overview]
Message-ID: <f55fafa9-c957-f7ee-ea49-475ba5f96d9@linux.intel.com> (raw)
In-Reply-To: <YySaixqlQjkMYPUB@smile.fi.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1154 bytes --]
On Mon, 19 Sep 2022, Andy Shevchenko wrote:
> On Fri, Sep 16, 2022 at 06:44:49PM +0300, Andy Shevchenko wrote:
> > On Fri, Sep 16, 2022 at 06:36:16PM +0300, Andy Shevchenko wrote:
> > > On Fri, Sep 16, 2022 at 04:38:04PM +0300, Ilpo Järvinen wrote:
> >
> > Side note:
> >
> > $ git grep -n -w setup_irq -- drivers/tty/
> > drivers/tty/serial/8250/8250_core.c:382: .setup_irq = univ8250_setup_irq,
> > drivers/tty/serial/8250/8250_port.c:2341: retval = up->ops->setup_irq(up);
> >
> > which rises a question of whether we need the setup_irq member in the
> > respective structure.
>
> And to be confident, the files that include linux/serial_8250.h and have
> setup_irq word in them (recursive `git grep`) in entire source tree:
>
> drivers/tty/serial/8250/8250_core.c
> drivers/tty/serial/8250/8250_port.c
> include/linux/serial_8250.h
Thanks. I know about it already.
The whole struct uart_8250_ops seems useless indirection layer (and
IIRC the results of my history dig, it was added w/o any justification).
It's on my kill list already :-) but I'll wait a bit with the cleanups to
avoid -linus vs -next conflicts.
--
i.
prev parent reply other threads:[~2022-09-19 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 13:38 [PATCH v2 1/1] serial: 8250: Turn IER bits on only after irq has been set up Ilpo Järvinen
2022-09-19 13:56 ` Andy Shevchenko
2022-09-19 13:56 ` Andy Shevchenko
2022-09-19 13:56 ` Andy Shevchenko
2022-09-19 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=f55fafa9-c957-f7ee-ea49-475ba5f96d9@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=alex.williamson@hp.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=aris@cathedrallabs.org \
--cc=buytenh@arista.com \
--cc=buytenh@wantstofly.org \
--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