Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115648017
D47069.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
D47069.diff
View Options
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c
--- a/sys/dev/uart/uart_core.c
+++ b/sys/dev/uart/uart_core.c
@@ -559,8 +559,14 @@
uart_cpu_eqres(&sc->sc_bas, &sysdev->bas)) {
/* XXX check if ops matches class. */
sc->sc_sysdev = sysdev;
- sysdev->bas.rclk = sc->sc_bas.rclk;
- }
+ if (sysdev->bas.rclk != 0) {
+ /* Let the boot sequence control */
+ sc->sc_bas.rclk = sysdev->bas.rclk;
+ } else {
+ /* Boot didn't set it, use use class */
+ sysdev->bas.rclk = sc->sc_bas.rclk;
+ }
+ }
}
error = UART_PROBE(sc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 12:59 PM (15 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17817917
Default Alt Text
D47069.diff (587 B)
Attached To
Mode
D47069: uart: Prefer rclk passed in over rclk in the class
Attached
Detach File
Event Timeline
Log In to Comment