Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
005a336e
Commit
005a336e
authored
Apr 26, 2007
by
Paul Mundt
Committed by
Paul Mundt
May 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serial: sh-sci: Fix module clock refcount for serial console.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
1534a3b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
drivers/serial/sh-sci.c
drivers/serial/sh-sci.c
+11
-0
No files found.
drivers/serial/sh-sci.c
View file @
005a336e
...
...
@@ -78,8 +78,10 @@ struct sci_port {
struct
timer_list
break_timer
;
int
break_flag
;
#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
/* Port clock */
struct
clk
*
clk
;
#endif
};
#ifdef CONFIG_SH_KGDB
...
...
@@ -958,7 +960,9 @@ static int sci_startup(struct uart_port *port)
if
(
s
->
enable
)
s
->
enable
(
port
);
#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
s
->
clk
=
clk_get
(
NULL
,
"module_clk"
);
#endif
sci_request_irq
(
s
);
sci_start_tx
(
port
);
...
...
@@ -978,8 +982,10 @@ static void sci_shutdown(struct uart_port *port)
if
(
s
->
disable
)
s
->
disable
(
port
);
#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
clk_put
(
s
->
clk
);
s
->
clk
=
NULL
;
#endif
}
static
void
sci_set_termios
(
struct
uart_port
*
port
,
struct
ktermios
*
termios
,
...
...
@@ -1231,6 +1237,11 @@ static int __init serial_console_setup(struct console *co, char *options)
port
->
type
=
serial_console_port
->
type
;
#if defined(CONFIG_SUPERH) && !defined(CONFIG_SUPERH64)
if
(
!
serial_console_port
->
clk
)
serial_console_port
->
clk
=
clk_get
(
NULL
,
"module_clk"
);
#endif
if
(
port
->
flags
&
UPF_IOREMAP
)
sci_config_port
(
port
,
0
);
...
...
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