diff options
author | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-22 13:31:46 +0000 |
---|---|---|
committer | kaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-22 13:31:46 +0000 |
commit | 02028358c7be16b3a798973bd88432ca68cfdfdf (patch) | |
tree | a5e99f7798071ae6ca4b0fbd43d490c0987393db /target/linux/coldfire/patches/037-m5445x_edma_callback.patch | |
parent | 12a0868f9234d1b7cbf7141959276c809169819b (diff) |
[coldfire]: remove 2.6.25 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24088 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/coldfire/patches/037-m5445x_edma_callback.patch')
-rw-r--r-- | target/linux/coldfire/patches/037-m5445x_edma_callback.patch | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/target/linux/coldfire/patches/037-m5445x_edma_callback.patch b/target/linux/coldfire/patches/037-m5445x_edma_callback.patch deleted file mode 100644 index af2705c63..000000000 --- a/target/linux/coldfire/patches/037-m5445x_edma_callback.patch +++ /dev/null @@ -1,90 +0,0 @@ -From acd937ac924aefd22ea9a66ea621ab80a4f9b594 Mon Sep 17 00:00:00 2001 -From: Kurt Mahan <kmahan@freescale.com> -Date: Mon, 10 Dec 2007 03:37:19 -0700 -Subject: [PATCH] Update EDMA driver to allow callback/arg changes. - -LTIBName: m5445x-edma-callback -Signed-off-by: Kurt Mahan <kmahan@freescale.com> ---- - drivers/spi/coldfire_edma.c | 27 +++++++++++++++++++++++++++ - include/asm-m68k/coldfire_edma.h | 20 ++++++++++++++++++++ - 2 files changed, 47 insertions(+), 0 deletions(-) - ---- a/drivers/spi/coldfire_edma.c -+++ b/drivers/spi/coldfire_edma.c -@@ -206,6 +206,31 @@ int request_edma_channel(int channel, - EXPORT_SYMBOL(request_edma_channel); - - /** -+ * set_edma_callback - Update the channel callback/arg -+ * @channel: channel number -+ * @handler: dma handler -+ * @error_handler: dma error handler -+ * @arg: argument to pass back -+ * -+ * Returns 0 if success or a negative value if failure -+ */ -+int set_edma_callback(int channel, -+ edma_irq_handler handler, -+ edma_error_handler error_handler, -+ void *arg ) -+{ -+ if (devp!=NULL && channel>=0 && channel<=EDMA_CHANNELS && -+ devp->dma_interrupt_handlers[channel].allocated) { -+ devp->dma_interrupt_handlers[channel].irq_handler = handler; -+ devp->dma_interrupt_handlers[channel].error_handler = error_handler; -+ devp->dma_interrupt_handlers[channel].arg = arg; -+ return 0; -+ } -+ return -EINVAL; -+} -+EXPORT_SYMBOL(set_edma_callback); -+ -+/** - * free_edma_channel - Free the edma channel - * @channel: channel number - * @arg: argument created with -@@ -216,8 +241,10 @@ int free_edma_channel(int channel, void - { - if (devp!=NULL && channel>=0 && channel<=EDMA_CHANNELS) { - if (devp->dma_interrupt_handlers[channel].allocated) { -+#if 0 - if (devp->dma_interrupt_handlers[channel].arg != arg) - return -EBUSY; -+#endif - - devp->dma_interrupt_handlers[channel].allocated = 0; - devp->dma_interrupt_handlers[channel].arg = NULL; ---- a/include/asm-m68k/coldfire_edma.h -+++ b/include/asm-m68k/coldfire_edma.h -@@ -96,10 +96,30 @@ int request_edma_channel(int channel, - void *dev, - spinlock_t *lock, - const char *device_id); -+ -+/** -+ * set_edma_callback - Update the channel callback/arg -+ * @channel: channel number -+ * @handler: dma handler -+ * @error_handler: dma error handler -+ * @arg: argument to pass back -+ * -+ * Returns 0 if success or a negative value if failure -+ */ -+int set_edma_callback(int channel, -+ edma_irq_handler handler, -+ edma_error_handler error_handler, -+ void *arg); - - /* Free eDMA channel - * channel - eDMA TCD number - * dev - device - */ - int free_edma_channel(int channel, void *dev); -+ -+/* -+ * DMA Modes -+ */ -+#define DMA_MODE_READ 0 -+#define DMA_MODE_WRITE 1 - #endif |