omap: Fix race condition in omap dma driver
authorTao Hu <taohu@motorola.com>
Wed, 11 Nov 2009 02:55:17 +0000 (18:55 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 11 Nov 2009 02:55:17 +0000 (18:55 -0800)
commitee90732456fe8e75406fdd3cd136a4bfb7ce31f5
tree0c0f49d8240d595e8162fbc02939266e3c268a9e
parentb419148e567728f6af0c3b01965c1cc141e3e13a
omap: Fix race condition in omap dma driver

The bug could cause irq enable bit of one DMA channel is
cleared/set unexpectedly when 2 (or more) drivers are calling
omap_request_dma()/omap_free_dma() simultaneously

Signed-off-by: Fei Yang <AFY095@motorola.com>
Signed-off-by: Tao Hu <taohu@motorola.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c