Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755871AbbHCXkP (ORCPT ); Mon, 3 Aug 2015 19:40:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46955 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755558AbbHCXkN (ORCPT ); Mon, 3 Aug 2015 19:40:13 -0400 Date: Mon, 3 Aug 2015 16:40:12 -0700 From: Greg Kroah-Hartman To: "Maciej S. Szmigiero" Cc: linux-serial@vger.kernel.org, Jiri Slaby , linux-kernel Subject: Re: [PATCH] serial: don't announce CIR serial ports Message-ID: <20150803234012.GA31555@kroah.com> References: <55BE8725.6090303@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55BE8725.6090303@maciej.szmigiero.name> User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1326 Lines: 36 On Sun, Aug 02, 2015 at 11:09:57PM +0200, Maciej S. Szmigiero wrote: > CIR type serial ports aren't real serial ports. > This is just a way to prevent legacy serial driver > from probing and eventually binding some resources > so don't announce them like normal serial ports. > > Signed-off-by: Maciej Szmigiero > --- > drivers/tty/serial/serial_core.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c > index f368520..99f944d 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -2237,7 +2237,7 @@ uart_configure_port(struct uart_driver *drv, struct uart_state *state, > port->ops->config_port(port, flags); > } > > - if (port->type != PORT_UNKNOWN) { > + if (port->type != PORT_UNKNOWN && port->type != PORT_8250_CIR) { > unsigned long flags; > > uart_report_port(drv, port); This does not seem correct, why is this type of "port" somehow special that it should be skiped? thanks, greg k-h -- 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/