Home
last modified time | relevance | path

Searched hist:"0 bbc1413028e93629a2ecd5588cc427fa834404b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/dma/
H A Dimx-sdma.cdiff 0bbc1413028e93629a2ecd5588cc427fa834404b Thu Jan 12 21:10:01 CST 2012 Richard Zhao <richard.zhao@linaro.org> dma/imx-sdma: convernt to use bit ops

We don't need extra lock, so we use non-atomic bit ops to set/clear bits,

merge event_mask0 and event_mask1 into an array, it helps use bit ops.

It also fixs the issue:

sdmac->event_mask0 = 1 << sdmac->event_id0;
sdmac->event_mask1 = 1 << (sdmac->event_id0 - 32);

It event_id0 < 32, it shifts negative number. If event_id0 >= 32, it
shifts number >= sizeof(int). Both the cases behavior is undefined.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>