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
29c7abf9
Commit
29c7abf9
authored
Jan 14, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
ae0a0dc5
b8ebb266
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
Documentation/serial/driver
Documentation/serial/driver
+9
-2
drivers/serial/serial_core.c
drivers/serial/serial_core.c
+15
-1
No files found.
Documentation/serial/driver
View file @
29c7abf9
...
...
@@ -211,18 +211,25 @@ hardware.
Yes 1 1 character received, marked as
TTY_PARITY
Other flags may be used (eg, xon/xoff characters) if your
hardware supports hardware "soft" flow control.
Locking: none.
Interrupts: caller dependent.
This call must not sleep
pm(port,state,oldstate)
p
erform any power management related activities on the specified
port.
s
tate indicates the new state (defined by ACPI D0-D3),
P
erform any power management related activities on the specified
port.
S
tate indicates the new state (defined by ACPI D0-D3),
oldstate indicates the previous state. Essentially, D0 means
fully on, D3 means powered down.
This function should not be used to grab any resources.
This will be called when the port is initially opened and finally
closed, except when the port is also the system console. This
will occur even if CONFIG_PM is not set.
Locking: none.
Interrupts: caller dependent.
...
...
drivers/serial/serial_core.c
View file @
29c7abf9
...
...
@@ -1877,7 +1877,21 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *port)
* Re-enable the console device after suspending.
*/
if
(
uart_console
(
port
))
{
uart_change_speed
(
state
,
NULL
);
struct
termios
termios
;
/*
* First try to use the console cflag setting.
*/
memset
(
&
termios
,
0
,
sizeof
(
struct
termios
));
termios
.
c_cflag
=
port
->
cons
->
cflag
;
/*
* If that's unset, use the tty termios setting.
*/
if
(
state
->
info
&&
state
->
info
->
tty
&&
termios
.
c_cflag
==
0
)
termios
=
*
state
->
info
->
tty
->
termios
;
port
->
ops
->
set_termios
(
port
,
&
termios
,
NULL
);
console_start
(
port
->
cons
);
}
...
...
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