From patchwork Tue Jan 4 13:51:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Williamson X-Patchwork-Id: 450801 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p04Doj81012431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 Jan 2011 13:51:06 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p04DmtO9012832 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Jan 2011 07:48:57 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id p04DmtU0003858; Tue, 4 Jan 2011 07:48:55 -0600 (CST) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 09DDB80627; Tue, 4 Jan 2011 07:48:55 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 43E2380626 for ; Tue, 4 Jan 2011 07:48:53 -0600 (CST) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id p04DmqVZ003509 for ; Tue, 4 Jan 2011 07:48:52 -0600 (CST) Received: from psmtp.com (na3sys009amx195.postini.com [74.125.149.176]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id p04DmqYR001611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 4 Jan 2011 07:48:52 -0600 Received: from source ([209.85.216.173]) (using TLSv1) by na3sys009amx195.postini.com ([74.125.148.10]) with SMTP; Tue, 04 Jan 2011 08:48:52 EST Received: by qyk1 with SMTP id 1so16378743qyk.4 for ; Tue, 04 Jan 2011 05:48:51 -0800 (PST) Received: by 10.224.41.8 with SMTP id m8mr20591006qae.161.1294148931294; Tue, 04 Jan 2011 05:48:51 -0800 (PST) Received: from localhost.localdomain (rrcs-24-39-249-130.nys.biz.rr.com [24.39.249.130]) by mx.google.com with ESMTPS id h20sm12773116qck.12.2011.01.04.05.48.49 (version=SSLv3 cipher=RC4-MD5); Tue, 04 Jan 2011 05:48:50 -0800 (PST) From: Michael Williamson To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 1/2] serial: Provide capability to disable modem status interrupts in 8250 driver Date: Tue, 4 Jan 2011 08:51:01 -0500 Message-Id: <1294149062-31173-1-git-send-email-michael.williamson@criticallink.com> X-Mailer: git-send-email 1.7.0.4 X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:69.22781/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: khilman@deeprootsystems.com, gregkh@suse.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 04 Jan 2011 13:51:06 +0000 (UTC) diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 09a5508..5b9e9f3 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -2613,7 +2613,8 @@ static void serial8250_config_port(struct uart_port *port, int flags) autoconfig(up, probeflags); /* if access method is AU, it is a 16550 with a quirk */ - if (up->port.type == PORT_16550A && up->port.iotype == UPIO_AU) + if ((up->port.type == PORT_16550A && up->port.iotype == UPIO_AU) || + up->port.flags & UPF_NO_MSR) up->bugs |= UART_BUG_NOMSR; if (up->port.type != PORT_UNKNOWN && flags & UART_CONFIG_IRQ) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 212eb4c..e76064e 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -339,6 +339,7 @@ struct uart_port { #define UPF_BUGGY_UART ((__force upf_t) (1 << 14)) #define UPF_NO_TXEN_TEST ((__force upf_t) (1 << 15)) #define UPF_MAGIC_MULTIPLIER ((__force upf_t) (1 << 16)) +#define UPF_NO_MSR ((__force upf_t) (1 << 17)) #define UPF_CONS_FLOW ((__force upf_t) (1 << 23)) #define UPF_SHARE_IRQ ((__force upf_t) (1 << 24)) /* The exact UART type is known and should not be probed. */ @@ -348,7 +349,7 @@ struct uart_port { #define UPF_DEAD ((__force upf_t) (1 << 30)) #define UPF_IOREMAP ((__force upf_t) (1 << 31)) -#define UPF_CHANGE_MASK ((__force upf_t) (0x17fff)) +#define UPF_CHANGE_MASK ((__force upf_t) (0x37fff)) #define UPF_USR_MASK ((__force upf_t) (UPF_SPD_MASK|UPF_LOW_LATENCY)) unsigned int mctrl; /* current modem ctrl settings */