Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752761AbaDYQtN (ORCPT ); Fri, 25 Apr 2014 12:49:13 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:59230 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbaDYQtK (ORCPT ); Fri, 25 Apr 2014 12:49:10 -0400 Date: Fri, 25 Apr 2014 17:48:48 +0100 From: One Thousand Gnomes To: Charles Coldwell Cc: Jon Ringle , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Greg KH , Alexander Shiyan , Jon Ringle Subject: Re: [PATCH v7 1/2] serial: sc16is7xx Message-ID: <20140425174848.7e79066e@alan.etchedpixels.co.uk> In-Reply-To: References: <1398387367-4047-1-git-send-email-jon@ringle.org> Organization: Intel Corporation X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/