13 Dec, 2016

1 commit

  • 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: Vinod Koul

    Vinod Koul
     

03 Oct, 2016

1 commit


05 Sep, 2016

1 commit


08 Aug, 2016

1 commit

  • This is in preperation of moving to a callback that provides results to the
    callback for the transaction. The conversion will maintain current behavior
    and the driver must convert to new callback mechanism at a later time in
    order to receive results.

    Signed-off-by: Dave Jiang
    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: Vinod Koul

    Dave Jiang
     

23 Jul, 2016

1 commit


16 Jul, 2016

1 commit


22 Jun, 2016

1 commit


08 Jun, 2016

1 commit

  • The sirfsoc_dmadata structs are not used outside the driver, so
    remove build warnings by making them static. Fixes:

    drivers/dma/sirf-dma.c:1129:24: warning: symbol 'sirfsoc_dmadata_a6' was not declared. Should it be static?
    drivers/dma/sirf-dma.c:1134:24: warning: symbol 'sirfsoc_dmadata_a7v1' was not declared. Should it be static?
    drivers/dma/sirf-dma.c:1139:24: warning: symbol 'sirfsoc_dmadata_a7v2' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Vinod Koul

    Ben Dooks
     

04 Mar, 2016

1 commit

  • The sirf dma driver uses #ifdef to check for CONFIG_PM_SLEEP
    for its suspend/resume code but then has no #ifdef for the
    respective runtime PM code, so we get a warning if CONFIG_PM
    is disabled altogether:

    drivers/dma/sirf-dma.c:1000:12: error: 'sirfsoc_dma_runtime_resume' defined but not used [-Werror=unused-function]

    This removes the existing #ifdef and instead uses __maybe_unused
    annotations for all four functions to let the compiler know it
    can silently drop the function definition.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Vinod Koul

    Arnd Bergmann
     

01 Oct, 2015

1 commit


19 Aug, 2015

1 commit

  • If DMA interrupt comes and is latched by IRQ controller during the
    execution of dma_terminate_all(), dma_irq routine will be executed
    after dma terminated, and it will cause kernel panic.
    We clear DMA interrupts in dma_terminate_all() to avoid this useless
    interrupt.

    Signed-off-by: Yanchang Li
    Signed-off-by: Barry Song
    Signed-off-by: Vinod Koul

    Yanchang Li
     

08 Jun, 2015

1 commit

  • add support for new CSR atlas7 SoC. atlas7 exists V1 and V2 IP.
    atlas7 DMAv1 is basically moved from marco, which has never been
    delivered to customers and renamed in this patch.
    atlas7 DMAv2 supports chain DMA by a chain table, this
    patch also adds chain DMA support for atlas7.

    atlas7 DMAv1 and DMAv2 co-exist in the same chip. there are some HW
    configuration differences(register offset etc.) with old prima2 chips,
    so we use compatible string to differentiate old prima2 and new atlas7,
    then results in different set in HW for them.

    Signed-off-by: Hao Liu
    Signed-off-by: Yanchang Li
    Signed-off-by: Barry Song
    Signed-off-by: Vinod Koul

    Hao Liu
     

19 Mar, 2015

1 commit


22 Dec, 2014

3 commits


15 Dec, 2014

1 commit

  • Pull driver core update from Greg KH:
    "Here's the set of driver core patches for 3.19-rc1.

    They are dominated by the removal of the .owner field in platform
    drivers. They touch a lot of files, but they are "simple" changes,
    just removing a line in a structure.

    Other than that, a few minor driver core and debugfs changes. There
    are some ath9k patches coming in through this tree that have been
    acked by the wireless maintainers as they relied on the debugfs
    changes.

    Everything has been in linux-next for a while"

    * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
    Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
    fs: debugfs: add forward declaration for struct device type
    firmware class: Deletion of an unnecessary check before the function call "vunmap"
    firmware loader: fix hung task warning dump
    devcoredump: provide a one-way disable function
    device: Add dev__once variants
    ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
    ath: use seq_file api for ath9k debugfs files
    debugfs: add helper function to create device related seq_file
    drivers/base: cacheinfo: remove noisy error boot message
    Revert "core: platform: add warning if driver has no owner"
    drivers: base: support cpu cache information interface to userspace via sysfs
    drivers: base: add cpu_device_create to support per-cpu devices
    topology: replace custom attribute macros with standard DEVICE_ATTR*
    cpumask: factor out show_cpumap into separate helper function
    driver core: Fix unbalanced device reference in drivers_probe
    driver core: fix race with userland in device_add()
    sysfs/kernfs: make read requests on pre-alloc files use the buffer.
    sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
    fs: sysfs: return EGBIG on write if offset is larger than file size
    ...

    Linus Torvalds
     

17 Nov, 2014

1 commit

  • Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
    build warning when CONFIG_PM_SLEEP is not selected. This is because
    sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
    when the CONFIG_PM_SLEEP is enabled.

    drivers/dma/sirf-dma.c:838:12: warning: 'sirfsoc_dma_pm_suspend' defined but not used [-Wunused-function]
    drivers/dma/sirf-dma.c:879:12: warning: 'sirfsoc_dma_pm_resume' defined but not used [-Wunused-function]

    Signed-off-by: Jingoo Han
    Signed-off-by: Vinod Koul

    Jingoo Han
     

06 Nov, 2014

1 commit


20 Oct, 2014

1 commit


04 Aug, 2014

1 commit


16 Apr, 2014

1 commit


29 Mar, 2014

1 commit


20 Jan, 2014

1 commit


13 Aug, 2013

2 commits

  • this patch adds PM ops entries in sirf-dma drivers, so that this
    driver can support suspend/resume, hibernation and runtime PM.

    while suspending, sirf-dma will lose all registers, so we save
    them at suspend and restore in resume for active channels.

    Signed-off-by: Barry Song
    Signed-off-by: Rongjun Ying
    Signed-off-by: Vinod Koul

    Barry Song
     
  • sirfsoc_dma_prep_cyclic() returns pointer, thus NULL should be
    used instead of 0 in order to fix the following sparse warning:

    drivers/dma/sirf-dma.c:598:24: warning: Using plain integer as NULL pointer

    Signed-off-by: Jingoo Han
    Signed-off-by: Vinod Koul

    Jingoo Han
     

05 Jul, 2013

1 commit


02 May, 2013

1 commit


15 Apr, 2013

1 commit


27 Feb, 2013

1 commit

  • Pull slave-dmaengine updates from Vinod Koul:
    "This is fairly big pull by my standards as I had missed last merge
    window. So we have the support for device tree for slave-dmaengine,
    large updates to dw_dmac driver from Andy for reusing on different
    architectures. Along with this we have fixes on bunch of the drivers"

    Fix up trivial conflicts, usually due to #include line movement next to
    each other.

    * 'next' of git://git.infradead.org/users/vkoul/slave-dma: (111 commits)
    Revert "ARM: SPEAr13xx: Pass DW DMAC platform data from DT"
    ARM: dts: pl330: Add #dma-cells for generic dma binding support
    DMA: PL330: Register the DMA controller with the generic DMA helpers
    DMA: PL330: Add xlate function
    DMA: PL330: Add new pl330 filter for DT case.
    dma: tegra20-apb-dma: remove unnecessary assignment
    edma: do not waste memory for dma_mask
    dma: coh901318: set residue only if dma is in progress
    dma: coh901318: avoid unbalanced locking
    dmaengine.h: remove redundant else keyword
    dma: of-dma: protect list write operation by spin_lock
    dmaengine: ste_dma40: do not remove descriptors for cyclic transfers
    dma: of-dma.c: fix memory leakage
    dw_dmac: apply default dma_mask if needed
    dmaengine: ioat - fix spare sparse complain
    dmaengine: move drivers/of/dma.c -> drivers/dma/of-dma.c
    ioatdma: fix race between updating ioat->head and IOAT_COMPLETION_PENDING
    dw_dmac: add support for Lynxpoint DMA controllers
    dw_dmac: return proper residue value
    dw_dmac: fill individual length of descriptor
    ...

    Linus Torvalds
     

28 Jan, 2013

2 commits


08 Jan, 2013

1 commit

  • The driver supports old up SiRFprimaII SoCs, this patch makes it support
    the new SiRFmarco as well.
    SiRFmarco, as a SMP SoC, adds new DMA_INT_EN_CLR and DMA_CH_LOOP_CTRL_CLR
    registers, to disable IRQ/Channel, we should write 1 to the corresponding
    bit in the two CLEAR register.

    Tested on SiRFmarco using SPI driver:
    $ /mnt/spidev-sirftest -D /dev/spidev32766.0
    spi mode: 0
    bits per word: 8
    max speed: 500000 Hz (500 KHz)

    00 00 00 00 00 00
    00 00 00 00 00 00
    00 00 00 00 00 00
    00 00 00 00 00 00
    00 00 00 00 00 00
    00 00 00 00 00 00
    00 00 00 00

    $ cat /proc/interrupts
    CPU0 CPU1
    32: 1593 0 GIC sirfsoc_timer0
    33: 0 3533 GIC sirfsoc_timer1
    44: 0 0 GIC sirfsoc_dma
    45: 16 0 GIC sirfsoc_dma
    47: 6 0 GIC sirfsoc_spi
    50: 5654 0 GIC sirfsoc-uart
    ...

    Signed-off-by: Barry Song
    Signed-off-by: Vinod Koul

    Barry Song
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitconst,
    and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Viresh Kumar
    Cc: Dan Williams
    Cc: Vinod Koul
    Cc: Barry Song
    Cc: Jeff Kirsher
    Cc: Alexander Duyck
    Cc: Russell King
    Cc: Linus Walleij
    Cc: Jassi Brar
    Cc: Dave Jiang
    Cc: Bill Pemberton
    Cc: Guennadi Liakhovetski
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

29 Nov, 2012

2 commits


24 Oct, 2012

2 commits


10 Oct, 2012

1 commit

  • Pull slave-dmaengine updates from Vinod Koul:
    "This time we have Andy updates on dw_dmac which is attempting to make
    this IP block available as PCI and platform device though not fully
    complete this time.

    We also have TI EDMA moving the dma driver to use dmaengine APIs, also
    have a new driver for mmp-tdma, along with bunch of small updates.

    Now for your excitement the merge is little unusual here, while
    merging the auto merge on linux-next picks wrong choice for pl330
    (drivers/dma/pl330.c) and this causes build failure. The correct
    resolution is in linux-next. (DMA: PL330: Fix build error) I didn't
    back merge your tree this time as you are better than me so no point
    in doing that for me :)"

    Fixed the pl330 conflict as in linux-next, along with trivial header
    file conflicts due to changed includes.

    * 'next' of git://git.infradead.org/users/vkoul/slave-dma: (29 commits)
    dma: tegra: fix interrupt name issue with apb dma.
    dw_dmac: fix a regression in dwc_prep_dma_memcpy
    dw_dmac: introduce software emulation of LLP transfers
    dw_dmac: autoconfigure data_width or get it via platform data
    dw_dmac: autoconfigure block_size or use platform data
    dw_dmac: get number of channels from hardware if possible
    dw_dmac: fill optional encoded parameters in register structure
    dw_dmac: mark dwc_dump_chan_regs as inline
    DMA: PL330: return ENOMEM instead of 0 from pl330_alloc_chan_resources
    DMA: PL330: Remove redundant runtime_suspend/resume functions
    DMA: PL330: Remove controller clock enable/disable
    dmaengine: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
    DMA: PL330: Set the capability of pdm0 and pdm1 as DMA_PRIVATE
    ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE
    dma: tegra: use list_move_tail instead of list_del/list_add_tail
    mxs/dma: Enlarge the CCW descriptor area to 4 pages
    dw_dmac: utilize slave_id to pass request line
    dmaengine: mmp_tdma: add dt support
    dmaengine: mmp-pdma support
    spi: davici - make davinci select edma
    ...

    Linus Torvalds
     

22 Sep, 2012

1 commit

  • Change the parameter list of device_prep_dma_cyclic() so the DMA drivers
    can receive the flags coming from clients.
    This feature can be used during audio operation to disable all audio
    related interrupts when the DMA_PREP_INTERRUPT is cleared from the flags.

    Signed-off-by: Peter Ujfalusi
    Acked-by: Nicolas Ferre
    Acked-by: Shawn Guo
    Acked-by: Vinod Koul
    Signed-off-by: Mark Brown

    Peter Ujfalusi