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
67f7654e
Commit
67f7654e
authored
Jun 23, 2005
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Serial: Bugs are not capabilities
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
55d3b282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/serial/8250.c
drivers/serial/8250.c
+4
-4
No files found.
drivers/serial/8250.c
View file @
67f7654e
...
...
@@ -1037,7 +1037,7 @@ static void serial8250_start_tx(struct uart_port *port, unsigned int tty_start)
up
->
ier
|=
UART_IER_THRI
;
serial_out
(
up
,
UART_IER
,
up
->
ier
);
if
(
up
->
capabilitie
s
&
UART_BUG_TXEN
)
{
if
(
up
->
bug
s
&
UART_BUG_TXEN
)
{
unsigned
char
lsr
,
iir
;
lsr
=
serial_in
(
up
,
UART_LSR
);
iir
=
serial_in
(
up
,
UART_IIR
);
...
...
@@ -1564,13 +1564,13 @@ static int serial8250_startup(struct uart_port *port)
serial_outp
(
up
,
UART_IER
,
0
);
if
(
lsr
&
UART_LSR_TEMT
&&
iir
&
UART_IIR_NO_INT
)
{
if
(
!
(
up
->
capabilitie
s
&
UART_BUG_TXEN
))
{
up
->
capabilitie
s
|=
UART_BUG_TXEN
;
if
(
!
(
up
->
bug
s
&
UART_BUG_TXEN
))
{
up
->
bug
s
|=
UART_BUG_TXEN
;
pr_debug
(
"ttyS%d - enabling bad tx status workarounds
\n
"
,
port
->
line
);
}
}
else
{
up
->
capabilitie
s
&=
~
UART_BUG_TXEN
;
up
->
bug
s
&=
~
UART_BUG_TXEN
;
}
spin_unlock_irqrestore
(
&
up
->
port
.
lock
,
flags
);
...
...
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