Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107365963
D47075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
698 B
Referenced Files
None
Subscribers
None
D47075.diff
View Options
diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -359,10 +359,6 @@
{
u_char ier;
- if (bas->rclk == 0)
- bas->rclk = DEFAULT_RCLK;
- ns8250_param(bas, baudrate, databits, stopbits, parity);
-
/* Disable all interrupt sources. */
/*
* We use 0xe0 instead of 0xf0 as the mask because the XScale PXA
@@ -373,6 +369,10 @@
uart_setreg(bas, REG_IER, ier);
uart_barrier(bas);
+ if (bas->rclk == 0)
+ bas->rclk = DEFAULT_RCLK;
+ ns8250_param(bas, baudrate, databits, stopbits, parity);
+
/* Disable the FIFO (if present). */
uart_setreg(bas, REG_FCR, 0);
uart_barrier(bas);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 2:57 AM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15790432
Default Alt Text
D47075.diff (698 B)
Attached To
Mode
D47075: uart/ns8250: Disable interrupts sooner
Attached
Detach File
Event Timeline
Log In to Comment