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
ed6929c5
Commit
ed6929c5
authored
Oct 19, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] Add explaination why we don't use RTS flow control.
parent
ef017328
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
drivers/serial/8250.c
drivers/serial/8250.c
+10
-2
No files found.
drivers/serial/8250.c
View file @
ed6929c5
...
@@ -1658,9 +1658,17 @@ serial8250_set_termios(struct uart_port *port, struct termios *termios,
...
@@ -1658,9 +1658,17 @@ serial8250_set_termios(struct uart_port *port, struct termios *termios,
serial_out
(
up
,
UART_IER
,
up
->
ier
);
serial_out
(
up
,
UART_IER
,
up
->
ier
);
if
(
up
->
capabilities
&
UART_CAP_EFR
)
{
if
(
up
->
capabilities
&
UART_CAP_EFR
)
{
unsigned
char
efr
=
0
;
/*
* TI16C752/Startech hardware flow control. FIXME:
* - TI16C752 requires control thresholds to be set.
* - UART_MCR_RTS is ineffective if auto-RTS mode is enabled.
*/
if
(
termios
->
c_cflag
&
CRTSCTS
)
efr
|=
UART_EFR_CTS
;
serial_outp
(
up
,
UART_LCR
,
0xBF
);
serial_outp
(
up
,
UART_LCR
,
0xBF
);
serial_outp
(
up
,
UART_EFR
,
serial_outp
(
up
,
UART_EFR
,
efr
);
termios
->
c_cflag
&
CRTSCTS
?
UART_EFR_CTS
:
0
);
}
}
if
(
up
->
capabilities
&
UART_NATSEMI
)
{
if
(
up
->
capabilities
&
UART_NATSEMI
)
{
...
...
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