Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbbHBVKn (ORCPT ); Sun, 2 Aug 2015 17:10:43 -0400 Received: from vi37-28-154-113.vibiznes.pl ([37.28.154.113]:55492 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751685AbbHBVKK (ORCPT ); Sun, 2 Aug 2015 17:10:10 -0400 Message-ID: <55BE8725.6090303@maciej.szmigiero.name> Date: Sun, 02 Aug 2015 23:09:57 +0200 From: "Maciej S. Szmigiero" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: linux-serial@vger.kernel.org CC: Greg Kroah-Hartman , Jiri Slaby , linux-kernel Subject: [PATCH] serial: don't announce CIR serial ports Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 28 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); -- 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/