Ignore:
Timestamp:
Mar 15, 2017, 2:42:58 AM (4 months ago)
Author:
brainslayer
Message:

use new squashfs in all kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/dma/imx-sdma.c

    r31574 r31662  
    299299 * @word_size           peripheral access size
    300300 * @buf_tail            ID of the buffer that was processed
     301 * @buf_ptail           ID of the previous buffer that was processed
    301302 * @num_bd              max NUM_BD. number of descriptors currently handling
    302303 */
     
    310311        enum dma_slave_buswidth         word_size;
    311312        unsigned int                    buf_tail;
     313        unsigned int                    buf_ptail;
    312314        unsigned int                    num_bd;
    313315        unsigned int                    period_len;
     
    701703                bd->mode.status |= BD_DONE;
    702704                bd->mode.count = sdmac->period_len;
     705                sdmac->buf_ptail = sdmac->buf_tail;
     706                sdmac->buf_tail = (sdmac->buf_tail + 1) % sdmac->num_bd;
    703707
    704708                /*
     
    710714
    711715                dmaengine_desc_get_callback_invoke(&sdmac->desc, NULL);
    712 
    713                 sdmac->buf_tail++;
    714                 sdmac->buf_tail %= sdmac->num_bd;
    715716
    716717                if (error)
     
    11871188
    11881189        sdmac->buf_tail = 0;
     1190        sdmac->buf_ptail = 0;
     1191        sdmac->chn_real_count = 0;
    11891192
    11901193        dev_dbg(sdma->dev, "setting up %d entries for channel %d.\n",
     
    12891292
    12901293        sdmac->buf_tail = 0;
     1294        sdmac->buf_ptail = 0;
     1295        sdmac->chn_real_count = 0;
    12911296        sdmac->period_len = period_len;
    12921297
     
    13861391
    13871392        if (sdmac->flags & IMX_DMA_SG_LOOP)
    1388                 residue = (sdmac->num_bd - sdmac->buf_tail) *
     1393                residue = (sdmac->num_bd - sdmac->buf_ptail) *
    13891394                           sdmac->period_len - sdmac->chn_real_count;
    13901395        else
Note: See TracChangeset for help on using the changeset viewer.