dmaengine: Freescale: use spin_lock_bh instead of spin_lock_irqsave
authorHongbo Zhang <hongbo.zhang@freescale.com>
Wed, 21 May 2014 08:03:01 +0000 (16:03 +0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 14 Jul 2014 16:02:18 +0000 (21:32 +0530)
commit2baff5700b0832632f05c2ae93362fe3320cc735
treecf30808cd57a5d18e33fce720a9c3574f74a44db
parent1795cd9b3a91d4b5473c97f491d63892442212ab
dmaengine: Freescale: use spin_lock_bh instead of spin_lock_irqsave

The usage of spin_lock_irqsave() is a stronger locking mechanism than is
required throughout the driver. The minimum locking required should be used
instead. Interrupts will be turned off and context will be saved, it is
unnecessary to use irqsave.

This patch changes all instances of spin_lock_irqsave() to spin_lock_bh(). All
manipulation of protected fields is done using tasklet context or weaker, which
makes spin_lock_bh() the correct choice.

Signed-off-by: Hongbo Zhang <hongbo.zhang@freescale.com>
Signed-off-by: Qiang Liu <qiang.liu@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsldma.c