Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Martin Kepplinger
linux-next
Commits
95fbeade
Commit
95fbeade
authored
Nov 30, 2020
by
Martin Kepplinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "spi: imx: fix runtime pm support for !CONFIG_PM"
This reverts commit
1dfc44fd
.
parent
750d08b7
Pipeline
#61644
passed with stage
in 71 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
drivers/spi/spi-imx.c
drivers/spi/spi-imx.c
+8
-15
No files found.
drivers/spi/spi-imx.c
View file @
95fbeade
...
...
@@ -1674,18 +1674,15 @@ static int spi_imx_probe(struct platform_device *pdev)
goto
out_master_put
;
}
ret
=
clk_prepare_enable
(
spi_imx
->
clk_per
);
if
(
ret
)
goto
out_master_put
;
ret
=
clk_prepare_enable
(
spi_imx
->
clk_ipg
);
if
(
ret
)
goto
out_put_per
;
pm_runtime_enable
(
spi_imx
->
dev
);
pm_runtime_set_autosuspend_delay
(
spi_imx
->
dev
,
MXC_RPM_TIMEOUT
);
pm_runtime_use_autosuspend
(
spi_imx
->
dev
);
pm_runtime_set_active
(
spi_imx
->
dev
);
pm_runtime_enable
(
spi_imx
->
dev
);
ret
=
pm_runtime_get_sync
(
spi_imx
->
dev
);
if
(
ret
<
0
)
{
dev_err
(
spi_imx
->
dev
,
"failed to enable clock
\n
"
);
goto
out_runtime_pm_put
;
}
spi_imx
->
spi_clk
=
clk_get_rate
(
spi_imx
->
clk_per
);
/*
...
...
@@ -1725,12 +1722,8 @@ static int spi_imx_probe(struct platform_device *pdev)
spi_imx_sdma_exit
(
spi_imx
);
out_runtime_pm_put:
pm_runtime_dont_use_autosuspend
(
spi_imx
->
dev
);
pm_runtime_
se
t_s
uspended
(
&
pdev
->
dev
);
pm_runtime_
pu
t_s
ync
(
spi_imx
->
dev
);
pm_runtime_disable
(
spi_imx
->
dev
);
clk_disable_unprepare
(
spi_imx
->
clk_ipg
);
out_put_per:
clk_disable_unprepare
(
spi_imx
->
clk_per
);
out_master_put:
spi_master_put
(
master
);
...
...
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