]> 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)
commitc0095b191489f98e447869d834d4f54cb28a5189
treed446a3eb71095a6519d1e5c84b46679b3da03a71
parent1e16a66149617a069b114e1a1e1150f30c4afba7
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