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
Kirill Smelkov
linux
Commits
08ab8c20
Commit
08ab8c20
authored
Jul 03, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-serial
parents
10e047b4
976ecd12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
drivers/serial/serial_core.c
drivers/serial/serial_core.c
+13
-1
No files found.
drivers/serial/serial_core.c
View file @
08ab8c20
...
...
@@ -1808,6 +1808,12 @@ uart_set_options(struct uart_port *port, struct console *co,
struct
termios
termios
;
int
i
;
/*
* Ensure that the serial console lock is initialised
* early.
*/
spin_lock_init
(
&
port
->
lock
);
memset
(
&
termios
,
0
,
sizeof
(
struct
termios
));
termios
.
c_cflag
=
CREAD
|
HUPCL
|
CLOCAL
;
...
...
@@ -2196,10 +2202,16 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port)
state
->
port
=
port
;
spin_lock_init
(
&
port
->
lock
);
port
->
cons
=
drv
->
cons
;
port
->
info
=
state
->
info
;
/*
* If this port is a console, then the spinlock is already
* initialised.
*/
if
(
!
uart_console
(
port
))
spin_lock_init
(
&
port
->
lock
);
uart_configure_port
(
drv
,
state
,
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