]> git.karo-electronics.de Git - karo-tx-linux.git/commit
at_hdmac: bugfix for enabling channel irq
authorNikolaus Voss <n.voss@weinmann.de>
Tue, 17 Jan 2012 09:28:33 +0000 (10:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:06:07 +0000 (11:06 -0800)
commit73632d80356dcadfcacc8e20a319850b112abb9b
treec45b68cce11dddb591e9dcf3c90a98e352bc636b
parent603b63484725a6e88e4ae5da58716efd88154b1e
at_hdmac: bugfix for enabling channel irq

commit bda3a47c886664e86ee14eb79e9072b9e341f575 upstream.

commit 463894705e4089d0ff69e7d877312d496ac70e5b deleted redundant
chan_id and chancnt initialization in dma drivers as this is done
in dma_async_device_register().

However, atc_enable_irq() relied on chan_id set before registering
the device, what left only channel 0 functional for this driver.

This patch introduces atc_enable/disable_chan_irq() as a variant
of atc_enable/disable_irq() with the channel as explicit argument.

Signed-off-by: Nikolaus Voss <n.voss@weinmann.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h