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
3ca71bf9
Commit
3ca71bf9
authored
Nov 02, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SERIAL] Set port->type to unknown only when using autoconfig
parent
6c37a6ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/serial/core.c
drivers/serial/core.c
+3
-2
No files found.
drivers/serial/core.c
View file @
3ca71bf9
...
...
@@ -2003,7 +2003,6 @@ __uart_register_port(struct uart_driver *drv, struct uart_state *state,
state
->
port
=
port
;
spin_lock_init
(
&
port
->
lock
);
port
->
type
=
PORT_UNKNOWN
;
port
->
cons
=
drv
->
cons
;
port
->
info
=
state
->
info
;
...
...
@@ -2020,8 +2019,10 @@ __uart_register_port(struct uart_driver *drv, struct uart_state *state,
flags
=
UART_CONFIG_TYPE
;
if
(
port
->
flags
&
UPF_AUTO_IRQ
)
flags
|=
UART_CONFIG_IRQ
;
if
(
port
->
flags
&
UPF_BOOT_AUTOCONF
)
if
(
port
->
flags
&
UPF_BOOT_AUTOCONF
)
{
port
->
type
=
PORT_UNKNOWN
;
port
->
ops
->
config_port
(
port
,
flags
);
}
/*
* Register the port whether it's detected or not. This allows
...
...
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