lkml.org 
[lkml]   [2010]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] DMAENGINE: generic slave channel control v3
    From
    2010/7/28 Dan Williams <dan.j.williams@intel.com>:

    > What are the rules for when a new dma_slave_config can be set?

    My idea is that these are done immediately before any work
    to be carried out.

    > Looking at the driver implementations it seems there is nothing
    > preventing a concurrent call to device_control to occur at "wrong
    > time"?  Is there a synchronization context I'm missing?

    I do imagine that the code using this will be naturally serialized,
    since you need to configure the channel before using it for
    something. i.e. the channel is typically STOPPED. If you like
    I can add checking for this to the coh901318 and ste_dma40
    patches. (It wouldn't affect this one though.)

    Drivers that want to support reconfiguring while a channel is
    running a transfer may have to look harder.

    Yours,
    Linus Walleij
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-07-29 01:07    [W:0.023 / U:1.196 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site