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
84b61465
Commit
84b61465
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/s3c64xx' into spi-next
parents
d448121c
9d7fd21a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
drivers/spi/spi-s3c64xx.c
drivers/spi/spi-s3c64xx.c
+12
-10
No files found.
drivers/spi/spi-s3c64xx.c
View file @
84b61465
...
...
@@ -1459,11 +1459,14 @@ static int s3c64xx_spi_suspend(struct device *dev)
struct
spi_master
*
master
=
dev_get_drvdata
(
dev
);
struct
s3c64xx_spi_driver_data
*
sdd
=
spi_master_get_devdata
(
master
);
spi_master_suspend
(
master
);
int
ret
=
spi_master_suspend
(
master
);
if
(
ret
)
return
ret
;
/* Disable the clock */
clk_disable_unprepare
(
sdd
->
src_clk
);
clk_disable_unprepare
(
sdd
->
clk
);
if
(
!
pm_runtime_suspended
(
dev
))
{
clk_disable_unprepare
(
sdd
->
clk
);
clk_disable_unprepare
(
sdd
->
src_clk
);
}
sdd
->
cur_speed
=
0
;
/* Output Clock is stopped */
...
...
@@ -1479,15 +1482,14 @@ static int s3c64xx_spi_resume(struct device *dev)
if
(
sci
->
cfg_gpio
)
sci
->
cfg_gpio
();
/* Enable the clock */
clk_prepare_enable
(
sdd
->
src_clk
);
clk_prepare_enable
(
sdd
->
clk
);
if
(
!
pm_runtime_suspended
(
dev
))
{
clk_prepare_enable
(
sdd
->
src_clk
);
clk_prepare_enable
(
sdd
->
clk
);
}
s3c64xx_spi_hwinit
(
sdd
,
sdd
->
port_id
);
spi_master_resume
(
master
);
return
0
;
return
spi_master_resume
(
master
);
}
#endif
/* CONFIG_PM_SLEEP */
...
...
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