lkml.org 
[lkml]   [2015]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCHv3 02/16] vme: tsi148: fix DMA lists longer that one item
    Date
    DMA lists on tsi148 weren't processed further than the first item
    because of the broken logic. This regression was introduced in:

    ac1a4f2caf7b071 "Staging: VME: Ensure TSI148 link list descriptors..."

    Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
    Cc: Igor Alekseev <igor.alekseev@itep.ru>
    ---
    drivers/vme/bridges/vme_tsi148.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/vme/bridges/vme_tsi148.c b/drivers/vme/bridges/vme_tsi148.c
    index 895c2a3..1be4136 100644
    --- a/drivers/vme/bridges/vme_tsi148.c
    +++ b/drivers/vme/bridges/vme_tsi148.c
    @@ -1844,8 +1844,8 @@ static int tsi148_dma_list_add(struct vme_dma_list *list,

    reg_split((unsigned long long)entry->dma_handle, &address_high,
    &address_low);
    - entry->descriptor.dnlau = cpu_to_be32(address_high);
    - entry->descriptor.dnlal = cpu_to_be32(address_low);
    + prev->descriptor.dnlau = cpu_to_be32(address_high);
    + prev->descriptor.dnlal = cpu_to_be32(address_low);

    }

    --
    1.8.3.1


    \
     
     \ /
      Last update: 2015-05-28 14:41    [W:2.423 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site