Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
33b42bcb
Commit
33b42bcb
authored
Oct 31, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] 8250: Warn when ports with zero base_baud are registered.
parent
383d6a28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
drivers/serial/8250.c
drivers/serial/8250.c
+18
-3
No files found.
drivers/serial/8250.c
View file @
33b42bcb
...
...
@@ -2508,11 +2508,26 @@ int register_serial(struct serial_struct *req)
port
.
iobase
|=
(
long
)
req
->
port_high
<<
HIGH_BITS_OFFSET
;
/*
* If a clock rate wasn't specified by the low level
* driver, then default to the standard clock rate.
* If a clock rate wasn't specified by the low level driver, then
* default to the standard clock rate. This should be 115200 (*16)
* and should not depend on the architecture's BASE_BAUD definition.
* However, since this API will be deprecated, it's probably a
* better idea to convert the drivers to use the new API
* (serial8250_register_port and serial8250_unregister_port).
*/
if
(
port
.
uartclk
==
0
)
if
(
port
.
uartclk
==
0
)
{
printk
(
KERN_WARNING
"Serial: registering port at [%08lx,%08lx,%p] irq %d with zero baud_base
\n
"
,
port
.
iobase
,
port
.
mapbase
,
port
.
membase
,
port
.
irq
);
printk
(
KERN_WARNING
"Serial: see %s:%d for more information
\n
"
,
__FILE__
,
__LINE__
);
dump_stack
();
/*
* Fix it up for now, but this is only a temporary measure.
*/
port
.
uartclk
=
BASE_BAUD
*
16
;
}
return
serial8250_register_port
(
&
port
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment