Re: ARM : OMAP: Pass logical DMA channel number always to callback handlers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 26 Nov 2008 14:43:02 +0530
"ext Shilimkar, Santosh" <santosh.shilimkar@xxxxxx> wrote:

> Hi Jarkko\Tony ,
> 
> Recently during some debugging, I observed this patch.
> http://source.mvista.com/git/?p=linux-omap-2.6.git;a=commitdiff;h=538528de0cb256f65716ab2e9613d9e920f97fe2;hp=29e8c3c304b62f31b799565c9ee85d42bd163f80
> 
> As per your description,it improves the debugging. Can you elaborate more on this ?
> 
Honestly don't remember what I meant for easier debugging, probably
just watching how the logical channels are rotating during the transfer
or something like that.

> For users this change is little confusing, if they go as per the signatures of the 'omap_request_dma_chain' and 'omap_request_dma' APIs. Also separating the callbacks for chained and non-chained transfers seems to be the practical usage in most of the cases. Also users would be only interested in 'chain_id' and not 'channel number' in case of chaining.  
> 
As commit log says, user can pass the chain_id via callback data if
needed. I think chained dma callback may also find more use for logical
channel number than chain_id e.g. when modifying the transfer
parameters etc.

And uniform, smaller API set is always better than bloated one.


Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux