staging: tidspbridge: use prepare/unprepare on dsp clocks
authorOmar Ramirez Luna <omar.ramirez@copitl.com>
Mon, 24 Dec 2012 14:10:25 +0000 (08:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 23:03:56 +0000 (15:03 -0800)
commite16a922a27ec352537a8027cadc32dc156534ca5
treed446a3eb71095a6519d1e5c84b46679b3da03a71
parentfe02508529a937faa7f978d10c7d0565f3879cb0
staging: tidspbridge: use prepare/unprepare on dsp clocks

This solves runtime failures while trying to enable WDT3 related
functionality on firmware load, however it does affect other clocks
controlled by the driver. Seen on 3.8-rc1.

CCF provides clk_prepare and clk_unprepare for enable and disable
operations respectively, this needs to be called in the correct
order while handling clocks.

Code path to enable/disable dsp clocks can still be reached from an
atomic context, hence we can't use clk_prepare_enable and
clk_disable_unprepare yet.

Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/core/dsp-clock.c
drivers/staging/tidspbridge/core/wdt.c