[PATCH v3 4/5] dmaengine: qcom: bam_dma: do not write to global regs in remote mode

2018-02-15 Thread srinivas . kandagatla
From: Srinivas Kandagatla BAM_DESC_CNT_TRSHLD register is global register, which can only be written when BAM is in master mode, So check the mode of operation before writing it. Without this check SOC's xPU would catch such access and crash the system. First

[PATCH v3 4/5] dmaengine: qcom: bam_dma: do not write to global regs in remote mode

2018-02-15 Thread srinivas . kandagatla
From: Srinivas Kandagatla BAM_DESC_CNT_TRSHLD register is global register, which can only be written when BAM is in master mode, So check the mode of operation before writing it. Without this check SOC's xPU would catch such access and crash the system. First noticed on DB820c while testing