Commit cb12daac authored by Jeff Ohlstein's avatar Jeff Ohlstein
Browse files

msm: dma: Convert spinlocks to mutexes for new clock apis



Converting the dma driver to mutexes is a requirement for using the new
clk_prepare and clk_unprepare apis. In order to deal with callers who
run in atomic context, refactor the enqueuing code to run in a
workqueue. Introduce a new spinlock that only protects the command lists
and not the hardware so the enqueue routine can add to the lists in
atomic context.

Change-Id: I0dc29dad96bf9b11fef0f973fb5dcead43a440cb
Signed-off-by: default avatarJeff Ohlstein <johlstei@codeaurora.org>
parent 3cd33861
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment