]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccef1133c11a433f8c33fb82a26666a0c2fb282d
treed446a3eb71095a6519d1e5c84b46679b3da03a71
parent66e3c01e64b641a3a3b009903c220f1a863605aa
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