From: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
To: Charles Coldwell <coldwell@gmail.com>
Cc: Jon Ringle <jon@ringle.org>,
"linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Greg KH <gregkh@linuxfoundation.org>,
Alexander Shiyan <shc_work@mail.ru>,
Jon Ringle <jringle@gridpoint.com>
Subject: Re: [PATCH v7 1/2] serial: sc16is7xx
Date: Fri, 25 Apr 2014 17:48:48 +0100 [thread overview]
Message-ID: <20140425174848.7e79066e@alan.etchedpixels.co.uk> (raw)
In-Reply-To: <alpine.LRH.2.03.1404251019300.2893@frank.harvard.edu>
> Fair enough, but the 8250 framework does allow you to insert your own
> irq service routine. "serial8250_default_handle_irq" is the default
> (unsurprisingly), but if the uart_port has a non-NULL "handle_irq"
> method it will be faithfully copied into the uart_8250_port
> "handle_irq" method in 8250_core.c:early_serial_setup.
It's nowhere near sufficient and this was discussed earlier in some depth.
> If that's really true, then I would say it argues in favor of a
> revision of the 8250 code. Certainly, this is not the last time that
> a 16550-compatible UART will appear on a non-PCI, non-ISA bus.
The 8250 code has deep seated assumptions about locking and atomicity.
Not only would it be very hard to unify the drivers the end result would
probably be quite horrible to maintain.
We should just merge the driver as is, as submitted in version 7. It's
fine. The fact all the I/O accesses are asynchronous completely changes
the way the driver is written. Architecturally from the 8250 driver's
point of view its a completely unrelated piece of hardware that shares
some constants.
If there are other 16x50 i2c/spi uarts then yes merge them with the
sc16is7xx driver.
Alan
next prev parent reply other threads:[~2014-04-25 16:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 0:56 [PATCH v7 1/2] serial: sc16is7xx jon
2014-04-25 0:56 ` [PATCH v7 2/2] serial: sc16is7xx: Add bindings documentation for the SC16IS7XX UARTs jon
2014-04-25 13:21 ` [PATCH v7 1/2] serial: sc16is7xx Charles Coldwell
2014-04-25 13:35 ` Alexander Shiyan
2014-04-25 14:11 ` Jon Ringle
2014-04-25 13:44 ` Charles Coldwell
2014-04-25 14:08 ` Jon Ringle
2014-04-25 14:24 ` Charles Coldwell
2014-04-25 14:33 ` Alexander Shiyan
2014-04-25 14:36 ` Charles Coldwell
2014-04-25 14:41 ` Jon Ringle
2014-04-25 14:54 ` Alexander Shiyan
2014-04-25 16:48 ` One Thousand Gnomes [this message]
2014-04-25 17:26 ` Greg KH
[not found] ` <1398447618.26477952@f179.i.mail.ru>
2014-04-25 18:24 ` Jon Ringle
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=20140425174848.7e79066e@alan.etchedpixels.co.uk \
--to=gnomes@lxorguk.ukuu.org.uk \
--cc=coldwell@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jon@ringle.org \
--cc=jringle@gridpoint.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=shc_work@mail.ru \
/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;
as well as URLs for NNTP newsgroup(s).