ASoC: rsnd: fix clock prepare/unprepare
Subsystems (3)
PATCH 1/1 ASoC: rsnd: fix clock prepare/unprepare
From: Ben Dooks <[email protected]>
As with the previous commit, before a clock can be used it must be prepared for use. Change from clk_enable() and clk_disable() to the versions of the calls which also prepare and un-prepare the clocks.
Will fix warnings from the clock code when this is used.
---
This patch is for current linus/master tree
sound/soc/sh/rcar/src.c | 4 ++-- sound/soc/sh/rcar/ssi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/sh/rcar/src.c +2 -2
@@ -258,7 +258,7 @@ static int rsnd_src_init(struct rsnd_mod *mod, {struct rsnd_src *src =rsnd_mod_to_src (mod); -clk_enable (src->clk); +clk_prepare_enable (src->clk);return 0 ; }
@@ -269,7 +269,7 @@ static int rsnd_src_quit(struct rsnd_mod *mod, {struct rsnd_src *src =rsnd_mod_to_src (mod); -clk_disable (src->clk); +clk_disable_unprepare (src->clk);return 0 ; }
sound/soc/sh/rcar/ssi.c +2 -2
@@ -171,7 +171,7 @@ static void rsnd_ssi_hw_start(struct rsnd_ssi *ssi,u32 cr;if (0 == ssi->usrcnt) { -clk_enable (ssi->clk); +clk_prepare_enable (ssi->clk);if (rsnd_dai_is_clk_master (rdai)) {if (rsnd_ssi_clk_from_parent (ssi))
@@ -230,7 +230,7 @@ static void rsnd_ssi_hw_stop(struct rsnd_ssi *ssi,rsnd_ssi_master_clk_stop (ssi); } -clk_disable (ssi->clk); +clk_disable_unprepare (ssi->clk); }dev_dbg (dev,"ssi%d hw stopped\n" ,rsnd_mod_id (&ssi->mod));
Signature · 1 line
1.7.9.5
Mark Brown
maintainerQuoted 10 lines · Kuninori Morimoto
From: Ben Dooks <[email protected]>
As with the previous commit, before a clock can be used it must be prepared for use. Change from
clk_enable()andclk_disable()to the versions of the calls which also prepare and un-prepare the clocks.Will fix warnings from the clock code when this is used.
Signed-off-by Ben Dooks <[email protected]>Signed-off-by Kuninori Morimoto <[email protected]>
This is written by you and sent by you but also signed off by Morimoto-san - what's going on there?
Mark Brown
maintainerQuoted 10 lines · Kuninori Morimoto
From: Ben Dooks <[email protected]>
As with the previous commit, before a clock can be used it must be prepared for use. Change from
clk_enable()andclk_disable()to the versions of the calls which also prepare and un-prepare the clocks.Will fix warnings from the clock code when this is used.
Signed-off-by Ben Dooks <[email protected]>Signed-off-by Kuninori Morimoto <[email protected]>
Sorry, for some reason I misread this as being sent by Ben - applied, thanks.
Hi Mark
Quoted 6 lines
Quoted 6 lines
From: Ben Dooks <[email protected]>
As with the previous commit, before a clock can be used it must be prepared for use. Change from
clk_enable()andclk_disable()to the versions of the calls which also prepare and un-prepare the clocks.
Quoted 7 lines
Quoted 4 lines
Will fix warnings from the clock code when this is used.
Signed-off-by Ben Dooks <[email protected]>Signed-off-by Kuninori Morimoto <[email protected]>Sorry, for some reason I misread this as being sent by Ben - applied, thanks.
Sorry. I didn't explain about that.
but, Thank you