1. 14 Dec, 2016 6 commits
  2. 12 Dec, 2016 13 commits
    • Vinod Koul's avatar
      dmaengine: sirf-dma: remove unused ‘sdesc’ · 2ef7ff03
      Vinod Koul authored
      In sirfsoc_dma_pm_suspend(), variable ‘sdesc’ is initialized but never used, which
      leads to warning with W=1.
      
      drivers/dma/sirf-dma.c: In function 'sirfsoc_dma_pm_suspend':
      drivers/dma/sirf-dma.c:1014:27: warning: variable 'sdesc' set but not used [-Wunused-but-set-variable]
      
      So remove it.
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      2ef7ff03
    • Vinod Koul's avatar
      dmaengine: pl330: remove unused ‘regs’ · 920e00d6
      Vinod Koul authored
      In pl330_add(), variable ‘regs’ is initialized but never used, which
      leads to warning with W=1.
      
      drivers/dma/pl330.c: In function 'pl330_add':
      drivers/dma/pl330.c:1891:16: warning: variable 'regs' set but not used [-Wunused-but-set-variable]
      
      So remove it.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      920e00d6
    • Vinod Koul's avatar
      dmaengine: s3c24xx: remove unused ‘cdata’ · 963173fe
      Vinod Koul authored
      In s3c24xx_dma_get_phy(), variable ‘cdata’ is initialized but never used, which
      leads to warning with W=1. Removing this make pdata unused.
      
      drivers/dma/s3c24xx-dma.c: In function ‘s3c24xx_dma_get_phy’:
      drivers/dma/s3c24xx-dma.c:293:30: warning: variable ‘cdata’ set but not used [-Wunused-but-set-variable]
        struct s3c24xx_dma_channel *cdata;
      
      So remove both of them.
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      963173fe
    • Vinod Koul's avatar
      dmaengine: stm32-dma: remove unused ‘src_addr’ · cad0eca3
      Vinod Koul authored
      In stm32_dma_set_xfer_param(), variable ‘src_addr’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/stm32-dma.c: In function ‘stm32_dma_set_xfer_param’:
      drivers/dma/stm32-dma.c:577:13: warning: variable ‘src_addr’ set but not used [-Wunused-but-set-variable]
        dma_addr_t src_addr, dst_addr;
      
      So remove it.
      Reviewed-by: default avatarM'boumba Cedric Madianga <cedric.madianga@gmail.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      cad0eca3
    • Vinod Koul's avatar
      dmaengine: stm32-dma: remove unused ‘dst_addr’ · 2a440bd4
      Vinod Koul authored
      In stm32_dma_set_xfer_param(), variable ‘dst_addr’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/stm32-dma.c: In function ‘stm32_dma_set_xfer_param’:
      drivers/dma/stm32-dma.c:577:23: warning: variable ‘dst_addr’ set but not used [-Wunused-but-set-variable]
        dma_addr_t src_addr, dst_addr;
      
      So remove it.
      Reviewed-by: default avatarM'boumba Cedric Madianga <cedric.madianga@gmail.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      2a440bd4
    • Vinod Koul's avatar
      dmaengine: stm32-dma: remove unused ‘sfcr’ · 1bc4f06c
      Vinod Koul authored
      In stm32_dma_chan_irq(), variable ‘sfcr’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/stm32-dma.c: In function ‘stm32_dma_chan_irq’:
      drivers/dma/stm32-dma.c:530:19: warning: variable ‘sfcr’ set but not used [-Wunused-but-set-variable]
        u32 status, scr, sfcr;
      
      So remove it.
      Reviewed-by: default avatarM'boumba Cedric Madianga <cedric.madianga@gmail.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      1bc4f06c
    • Vinod Koul's avatar
      dmaengine: pch_dma: remove unused ‘cookie’ · b33f7832
      Vinod Koul authored
      In pd_tx_submit(), variable ‘cookie’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/pch_dma.c: In function ‘pd_tx_submit’:
      drivers/dma/pch_dma.c:420:15: warning: variable ‘cookie’ set but not used [-Wunused-but-set-variable]
        dma_cookie_t cookie;
      
      So remove it.
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      b33f7832
    • Vinod Koul's avatar
      dmaengine: mic_x100_dma: remove unused ‘data’ · 765d2a65
      Vinod Koul authored
      In mic_dma_init(), variable ‘data’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/mic_x100_dma.c: In function ‘mic_dma_init’:
      drivers/dma/mic_x100_dma.c:557:17: warning: variable ‘data’ set but not used [-Wunused-but-set-variable]
         unsigned long data;
      
      So remove it.
      
      Cc: Sudeep Dutt <sudeep.dutt@intel.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      765d2a65
    • Vinod Koul's avatar
      dmaengine: img-mdc: remove unused ‘prev_phys’ · e5a6b3d5
      Vinod Koul authored
      In mdc_prep_dma_memcpy(), mdc_prep_dma_cyclic() and mdc_prep_slave_sg()
      variable ‘prev_phys’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/img-mdc-dma.c: In function ‘mdc_prep_dma_memcpy’:
      drivers/dma/img-mdc-dma.c:295:24: warning: variable ‘prev_phys’ set but not used [-Wunused-but-set-variable]
        dma_addr_t curr_phys, prev_phys;
      
      drivers/dma/img-mdc-dma.c: In function ‘mdc_prep_dma_cyclic’:
      drivers/dma/img-mdc-dma.c:378:24: warning: variable ‘prev_phys’ set but not used [-Wunused-but-set-variable]
        dma_addr_t curr_phys, prev_phys;
      
      drivers/dma/img-mdc-dma.c: In function ‘mdc_prep_slave_sg’:
      drivers/dma/img-mdc-dma.c:461:24: warning: variable ‘prev_phys’ set but not
      used [-Wunused-but-set-variable]
        dma_addr_t curr_phys, prev_phys;
      
      So remove it.
      
      Cc: Damien.Horsley <Damien.Horsley@imgtec.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      e5a6b3d5
    • Vinod Koul's avatar
      dmaengine: usb-dmac: remove unused ‘uchan’ · 7833a31d
      Vinod Koul authored
      In usb_dmac_of_xlate(), variable ‘uchan’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/sh/usb-dmac.c: In function ‘usb_dmac_of_xlate’:
      drivers/dma/sh/usb-dmac.c:655:24: warning: variable ‘uchan’ set but not used [-Wunused-but-set-variable]
        struct usb_dmac_chan *uchan;
      
      So remove it.
      
      Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      7833a31d
    • Vinod Koul's avatar
      dmaengine: ioat: remove unused ‘res’ · eef2c22c
      Vinod Koul authored
      In __cleanup(), variable ‘res’ is initialized but never used, which
      leads to warning with W=1
      
      drivers/dma/ioat/dma.c: In function ‘__cleanup’:
      drivers/dma/ioat/dma.c:614:28: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
          struct dmaengine_result res;
      
      So remove it.
      
      Cc: Dave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      eef2c22c
    • Vinod Koul's avatar
      dmaengine: ioat: remove unused ‘ioat_dma’ · 4cc80441
      Vinod Koul authored
      In ioat_tx_submit_unlock(), variable ‘ioat_dma’ is initialized but never
      used, which leads to warning with W=1
      
      drivers/dma/ioat/dma.c: In function ‘ioat_alloc_ring_ent’:
      drivers/dma/ioat/dma.c:341:25: warning: variable ‘ioat_dma’ set but not used [-Wunused-but-set-variable]
        struct ioatdma_device *ioat_dma;
      
      So remove it.
      
      Cc: Dave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      4cc80441
    • Vinod Koul's avatar
      dmaengine: ioat: remove unused ‘is_raid_device’ · 56c492f3
      Vinod Koul authored
      In ioat3_dma_probe(), variable ‘is_raid_device’ is initialized but never
      used, which leads to warning with W=1
      
      drivers/dma/ioat/init.c: In function ‘ioat3_dma_probe’:
      drivers/dma/ioat/init.c:1084:7: warning: variable ‘is_raid_device’ set
      but not used [-Wunused-but-set-variable]
        bool is_raid_device = false;
      
      So remove it.
      
      Cc: Dave Jiang <dave.jiang@intel.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      56c492f3
  3. 08 Dec, 2016 3 commits
    • Vladimir Murzin's avatar
      dmaengine: pl330: do not generate unaligned access · d07c9e1e
      Vladimir Murzin authored
      When PL330 is used with !MMU the following fault is seen:
      
      Unhandled fault: alignment exception (0x801) at 0x8f26a002
      Internal error: : 801 [#1] ARM
      Modules linked in:
      CPU: 0 PID: 640 Comm: dma0chan0-copy0 Not tainted 4.8.0-6a82063-clean+ #1600
      Hardware name: ARM-Versatile Express
      task: 8f1baa80 task.stack: 8e6fe000
      PC is at _setup_req+0x4c/0x350
      LR is at 0x8f2cbc00
      pc : [<801ea538>]    lr : [<8f2cbc00>]    psr: 60000093
      sp : 8e6ffdc0  ip : 00000000  fp : 00000000
      r10: 00000000  r9 : 8f2cba10  r8 : 8f2cbc00
      r7 : 80000013  r6 : 8f21a050  r5 : 8f21a000  r4 : 8f2ac800
      r3 : 8e6ffe18  r2 : 00944251  r1 : ffffffbc  r0 : 8f26a000
      Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
      Control: 00c5387c
      Process dma0chan0-copy0 (pid: 640, stack limit = 0x8e6fe210)
      Stack: (0x8e6ffdc0 to 0x8e700000)
      fdc0: 00000001 60000093 00000000 8f2cba10 8f26a000 00000004 8f0ae000 8f2cbc00
      fde0: 8f0ae000 8f2ac800 8f21a000 8f21a050 80000013 8f2cbc00 8f2cba10 00000000
      fe00: 60000093 801ebca0 8e6ffe18 000013ff 40000093 00000000 00944251 8f2ac800
      fe20: a0000013 8f2b1320 00001986 00000000 00000001 000013ff 8f1e4f00 8f2cba10
      fe40: 8e6fff6c 801e9044 00000003 00000000 fef98c80 002faf07 8e6ffe7c 00000000
      fe60: 00000002 00000000 00001986 8f1f158d 8f1e4f00 80568de4 00000002 00000000
      fe80: 00001986 8f1f53ff 40000001 80580500 8f1f158d 8001e00c 00000000 cfdfdfdf
      fea0: fdae2a25 00000001 00000004 8e6fe000 00000008 00000010 00000000 00000005
      fec0: 8f2b1330 8f2b1334 8e6ffe80 8e6ffe8c 00001986 00000000 8f21a014 00000001
      fee0: 8e6ffe60 8e6ffe78 00000002 00000000 000013ff 00000001 80568de4 8f1e8018
      ff00: 0000158d 8055ec30 00000001 803f6b00 00001986 8f2cba10 fdae2a25 00000001
      ff20: 8f1baca8 8e6fff24 8e6fff24 00000000 8e6fff24 ac6f3037 00000000 00000000
      ff40: 00000000 8e6fe000 8f1e4f40 00000000 8f1e4f40 8f1e4f00 801e84ec 00000000
      ff60: 00000000 00000000 00000000 80031714 dfdfdfcf 00000000 dfdfdfcf 8f1e4f00
      ff80: 00000000 8e6fff84 8e6fff84 00000000 8e6fff90 8e6fff90 8e6fffac 8f1e4f40
      ffa0: 80031640 00000000 00000000 8000f548 00000000 00000000 00000000 00000000
      ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 dfdfdfcf cfdfdfdf
      [<801ea538>] (_setup_req) from [<801ebca0>] (pl330_tasklet+0x41c/0x490)
      [<801ebca0>] (pl330_tasklet) from [<801e9044>] (dmatest_func+0xb58/0x149c)
      [<801e9044>] (dmatest_func) from [<80031714>] (kthread+0xd4/0xec)
      [<80031714>] (kthread) from [<8000f548>] (ret_from_fork+0x14/0x2c)
      Code: e3a03001 e3e01043 e5c03001 e59d3048 (e5802002)
      
      This happens because _emit_{ADDH,MOV,GO) accessing to unaligned data
      while writing to buffer. Fix it with writing to buffer byte by byte.
      Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
      Tested-by: default avatarRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      d07c9e1e
    • Vinod Koul's avatar
      dmaengine: k3dma: move to dma_pool_zalloc · 646b3b56
      Vinod Koul authored
      Replace dma_pool_alloc & memset with dma_pool_zalloc.
      Acked-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      646b3b56
    • Vinod Koul's avatar
      dmaengine: at_hdmac: move to dma_pool_zalloc · 12154c87
      Vinod Koul authored
      Replace dma_pool_alloc & memset with dma_pool_zalloc.
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      12154c87
  4. 06 Dec, 2016 3 commits
  5. 30 Nov, 2016 9 commits
  6. 29 Nov, 2016 1 commit
  7. 25 Nov, 2016 5 commits