From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757513AbaHEJey (ORCPT ); Tue, 5 Aug 2014 05:34:54 -0400 Received: from 251.110.2.81.in-addr.arpa ([81.2.110.251]:48373 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754689AbaHEJew (ORCPT ); Tue, 5 Aug 2014 05:34:52 -0400 Date: Tue, 5 Aug 2014 10:34:09 +0100 From: One Thousand Gnomes To: Ricardo Ribalda Delgado Cc: Greg Kroah-Hartman , Jiri Slaby , Alan Cox , Heikki Krogerus , Murali Karicheri , Jingoo Han , Michael Welling , Peter Hurley , Joe Schultz , Ingo Molnar , Doug Anderson , linux-serial@vger.kernel.org, LKML Subject: Re: [PATCH 2/2 v2] serial: Add support for Fintek F81216A LPC to 4 UART Message-ID: <20140805103409.33afef2a@alan.etchedpixels.co.uk> In-Reply-To: References: <1406834546-23033-1-git-send-email-ricardo.ribalda@gmail.com> <20140801132343.45153300@alan.etchedpixels.co.uk> Organization: Intel Corporation X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; 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 On Fri, 1 Aug 2014 14:28:11 +0200 Ricardo Ribalda Delgado wrote: > Hello > > >> Signed-off-by: Ricardo Ribalda Delgado > > > > This half of things looks good to me. > > > Thanks!, What about the other half? Would you accept a two step approach? > > 1st: add support for 8250_core > 2nd: handle rs485 ioctl on serial_core and modify all the other > drivers to use that? (to avoid code duplication) We really want to handle it at the tty layer I think not at serial_core. I have a patch for that and I'm playing with it but it's taking longer than I hoped. In the mean time I think your patch #1 is ok except for the trivial item that I'd prefer the struct serial_rs485 was further down the struct uart_8250_port. It's packed so that the bits you need most are in the first cache line or two. Alan