All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: sDMA: Correct the the omap_request_dma_chain() signature
@ 2009-04-29 12:09 Santosh Shilimkar
  2009-04-29 19:08 ` Jarkko Nikula
  2009-05-18 21:26 ` [APPLIED] [PATCH] OMAP: sDMA: Correct the the Tony Lindgren
  0 siblings, 2 replies; 8+ messages in thread
From: Santosh Shilimkar @ 2009-04-29 12:09 UTC (permalink / raw)
  To: linux-omap; +Cc: Santosh Shilimkar

Original OMAP DMA chaining design has chain_id as one of the callback
parameters. The below patch broke the desing.
http://git.omapzoom.org/?p=repo/omapkernel.git;a=commitdiff;h=538528de0cb256f65716ab2e9613d9e920f97fe2
Now callback returns logical channel number and not chain_id. 
Hence the signature of the omap_request_dma_chain() functions needs to be
corrected to avoid any confusion.

More details are on this email thread :
http://marc.info/?l=linux-omap&m=122961071931459&w=2

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
 arch/arm/plat-omap/dma.c              |    2 +-
 arch/arm/plat-omap/include/mach/dma.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 6093018..fcc6f69 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1199,7 +1199,7 @@ static void create_dma_lch_chain(int lch_head, int lch_queue)
  * 	     Failure: -EINVAL/-ENOMEM
  */
 int omap_request_dma_chain(int dev_id, const char *dev_name,
-			   void (*callback) (int chain_id, u16 ch_status,
+			   void (*callback) (int lch, u16 ch_status,
 					     void *data),
 			   int *chain_id, int no_of_chans, int chain_mode,
 			   struct omap_dma_channel_params params)
diff --git a/arch/arm/plat-omap/include/mach/dma.h b/arch/arm/plat-omap/include/mach/dma.h
index 224b077..2d5af41 100644
--- a/arch/arm/plat-omap/include/mach/dma.h
+++ b/arch/arm/plat-omap/include/mach/dma.h
@@ -546,7 +546,7 @@ extern int omap_get_dma_index(int lch, int *ei, int *fi);
 /* Chaining APIs */
 #ifndef CONFIG_ARCH_OMAP1
 extern int omap_request_dma_chain(int dev_id, const char *dev_name,
-				  void (*callback) (int chain_id, u16 ch_status,
+				  void (*callback) (int lch, u16 ch_status,
 						    void *data),
 				  int *chain_id, int no_of_chans,
 				  int chain_mode,
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-05-18 21:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 12:09 [PATCH] OMAP: sDMA: Correct the the omap_request_dma_chain() signature Santosh Shilimkar
2009-04-29 19:08 ` Jarkko Nikula
2009-04-30  4:32   ` Shilimkar, Santosh
2009-04-30  4:48     ` Shilimkar, Santosh
     [not found]       ` <bd7b27490904300146p17cb127asf2013cc3f0840a26@mail.gmail.com>
2009-04-30  9:18         ` Shilimkar, Santosh
     [not found]           ` <bd7b27490904300236q458b8198x200a976b9941dc10@mail.gmail.com>
2009-04-30  9:44             ` Shilimkar, Santosh
2009-05-13 10:12               ` Shilimkar, Santosh
2009-05-18 21:26 ` [APPLIED] [PATCH] OMAP: sDMA: Correct the the Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.