rpms/kernel/F-11 linux-2.6-serial-add-txen-test-param.patch, NONE, 1.1 kernel.spec, 1.1544, 1.1545
Chuck Ebbert
cebbert at fedoraproject.org
Wed Apr 15 16:11:44 UTC 2009
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24387
Modified Files:
kernel.spec
Added Files:
linux-2.6-serial-add-txen-test-param.patch
Log Message:
Add serial driver option to skip testing for the TXEN bug. (#495762)
linux-2.6-serial-add-txen-test-param.patch:
--- NEW FILE linux-2.6-serial-add-txen-test-param.patch ---
Allow users to force skipping the TXEN test at init time. Applies
to all serial ports. Intended for debugging only.
Signed-off-by: Chuck Ebbert <cebbert at redhat.com>
Index: linux-2.6.29.noarch/drivers/serial/8250.c
===================================================================
--- linux-2.6.29.noarch.orig/drivers/serial/8250.c
+++ linux-2.6.29.noarch/drivers/serial/8250.c
@@ -67,6 +67,8 @@ static int serial_index(struct uart_port
return (serial8250_reg.minor - 64) + port->line;
}
+static unsigned int skip_txen_test; /* force skip of txen test at init time */
+
/*
* Debugging.
*/
@@ -2097,7 +2099,7 @@ static int serial8250_startup(struct uar
is variable. So, let's just don't test if we receive
TX irq. This way, we'll never enable UART_BUG_TXEN.
*/
- if (up->port.flags & UPF_NO_TXEN_TEST)
+ if (skip_txen_test || up->port.flags & UPF_NO_TXEN_TEST)
goto dont_test_tx_en;
/*
@@ -3245,6 +3247,9 @@ MODULE_PARM_DESC(share_irqs, "Share IRQs
module_param(nr_uarts, uint, 0644);
MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")");
+module_param(skip_txen_test, uint, 0644);
+MODULE_PARM_DESC(skip_txen_test, "Skip checking for the TXEN bug at init time");
+
#ifdef CONFIG_SERIAL_8250_RSA
module_param_array(probe_rsa, ulong, &probe_rsa_count, 0444);
MODULE_PARM_DESC(probe_rsa, "Probe I/O ports for RSA");
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-11/kernel.spec,v
retrieving revision 1.1544
retrieving revision 1.1545
diff -u -r1.1544 -r1.1545
--- kernel.spec 15 Apr 2009 06:36:56 -0000 1.1544
+++ kernel.spec 15 Apr 2009 16:11:39 -0000 1.1545
@@ -636,6 +636,7 @@
Patch453: linux-2.6-input-wacom-bluetooth.patch
Patch460: linux-2.6-serial-460800.patch
+Patch461: linux-2.6-serial-add-txen-test-param.patch
# 8192 too low
Patch480: increase-MAX_LOCKDEP_ENTRIES.patch
@@ -1276,6 +1277,8 @@
# Allow to use 480600 baud on 16C950 UARTs
ApplyPatch linux-2.6-serial-460800.patch
+# let users skip the TXEN bug test
+ApplyPatch linux-2.6-serial-add-txen-test-param.patch
ApplyPatch increase-MAX_LOCKDEP_ENTRIES.patch
@@ -1963,6 +1966,9 @@
# and build.
%changelog
+* Wed Apr 15 2009 Chuck Ebbert <cebbert at redhat.com>
+- Add serial driver option to skip testing for the TXEN bug. (#495762)
+
* Wed Apr 15 2009 Dave Airlie <airlied at redhat.com>
- drm-modesetting-radeon: fix rs690 video (#492685) + add bandwidth calcs
More information about the fedora-extras-commits
mailing list