[PATCH v1 0/6] dmaengine: dw: export dw_dma_{probe,remove} for others

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are couple of users currently that have a private DMA IP attached to the
main device, namely ADSP and serial. They would like to do a DMA for
operations. Thus, we share dw_dma_probe() and dw_dma_remove().

The DMA controller is enabled automatically whenever first user aquires a
channel, and disabled when the last one release a channel.

Patchseries was tested on Bay Trail with ADSP hardware by Liam (Cc'ed).

Andy Shevchenko (6):
  dmaengine: dw: move private definitions to regs.h
  dmaengine: dw: split dma-dw.h to platform and private parts
  dmaengine: dw: introduce dw_dma_on() helper
  dmaengine: dw: always export dw_dma_{en,dis}able
  dmaengine: dw: enable and disable controller when needed
  dmaengine: dw: export probe()/remove() and Co to users

 drivers/dma/dw/core.c                | 77 +++++++++++++++++++-----------------
 drivers/dma/dw/internal.h            | 39 +++---------------
 drivers/dma/dw/pci.c                 |  4 +-
 drivers/dma/dw/platform.c            |  8 ++--
 drivers/dma/dw/regs.h                | 33 ++++++++++++++--
 include/linux/dma/dw.h               | 64 ++++++++++++++++++++++++++++++
 include/linux/platform_data/dma-dw.h | 58 ++-------------------------
 sound/atmel/abdac.c                  |  4 +-
 sound/atmel/ac97c.c                  |  1 +
 9 files changed, 154 insertions(+), 134 deletions(-)
 create mode 100644 include/linux/dma/dw.h

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux