1. 28 1月, 2014 1 次提交
  2. 26 1月, 2014 2 次提交
  3. 20 1月, 2014 14 次提交
  4. 13 1月, 2014 1 次提交
  5. 09 1月, 2014 1 次提交
  6. 08 1月, 2014 1 次提交
  7. 19 12月, 2013 2 次提交
  8. 16 12月, 2013 6 次提交
    • V
      dmaengine: mmp: fix uninitialized variable · a9ebbcd9
      Vinod Koul 提交于
      drivers/dma/mmp_tdma.c:236:8: warning: 'tdcr' may be used
      uninitialized in this function [-Wuninitialized]
      Reported-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      a9ebbcd9
    • V
      dmaengine: mmp_tdma: fix the 'pointer from integer' warnings · 9d0f1fa6
      Vinod Koul 提交于
      the driver is using unsigned long type for storing the channel register base
      "reg_base", this leads to bunch of warns when we try to use this as pointer. So
      better use an iomem pointer type for this variable
      
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_chan_set_desc':
      drivers/dma/mmp_tdma.c:143: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:144: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:144: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_enable_chan':
      drivers/dma/mmp_tdma.c:151: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:153: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:153: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_disable_chan':
      drivers/dma/mmp_tdma.c:160: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:160: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:164: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_resume_chan':
      drivers/dma/mmp_tdma.c:171: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:171: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_pause_chan':
      drivers/dma/mmp_tdma.c:178: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:178: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_config_chan':
      drivers/dma/mmp_tdma.c:263: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c: In function 'mmp_tdma_clear_chan_irq':
      drivers/dma/mmp_tdma.c:269: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast
      drivers/dma/mmp_tdma.c:274: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      9d0f1fa6
    • J
      mmp_pdma: Style neatening · 2b7f65b1
      Joe Perches 提交于
      Neaten code used as a template for other drivers.
      Make the code more consistent with kernel styles.
      
      o Convert #defines with (1<<foo) to BIT(foo)
      o Alignment wrapping
      o Logic inversions to put return at end of functions
      o Convert devm_kzalloc with multiply to devm_kcalloc
      o typo of Peripheral fix
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      2b7f65b1
    • N
      dma: imx-sdma: Add new dma type for ssi dual fifo script · 1a895578
      Nicolin Chen 提交于
      This patch adds a new DMA_TYPE for SSI dual FIFO script, included
      in SDMA firmware version 2. This script would allow SSI use dual
      fifo mode to transimit/receive data without occasional hardware
      underrun/overrun.
      Signed-off-by: NNicolin Chen <b42378@freescale.com>
      Acked-by: NKumar Gala <galak@codeaurora.org>
      Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      1a895578
    • N
      dma: imx-sdma: Add sdma firmware version 2 support · cd72b846
      Nicolin Chen 提交于
      On i.MX5/6 series, SDMA is using new version firmware to support SSI
      dual FIFO feature and HDMI Audio (i.MX6Q/DL only). Thus add it.
      Signed-off-by: NNicolin Chen <b42378@freescale.com>
      Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      cd72b846
    • L
      dma: pl330: Alloc dma_parms for the dma device · b714b84e
      Lars-Peter Clausen 提交于
      In order to be able to set a maximum segment size for the device we need to
      allocate a dma_parameters struct for the device first.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      b714b84e
  9. 10 12月, 2013 2 次提交
    • S
      dma: add dma_get_any_slave_channel(), for use in of_xlate() · 8010dad5
      Stephen Warren 提交于
      mmp_pdma.c implements a custom of_xlate() function that is 95% identical
      to what Tegra will need. Create a function to implement the common part,
      so everyone doesn't just cut/paste the implementation.
      
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Vinod Koul <vinod.koul@intel.com>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: dmaengine@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      8010dad5
    • S
      dma: add channel request API that supports deferred probe · 0ad7c000
      Stephen Warren 提交于
      dma_request_slave_channel() simply returns NULL whenever DMA channel
      lookup fails. Lookup could fail for two distinct reasons:
      
      a) No DMA specification exists for the channel name.
         This includes situations where no DMA specifications exist at all, or
         other general lookup problems.
      
      b) A DMA specification does exist, yet the driver for that channel is not
         yet registered.
      
      Case (b) should trigger deferred probe in client drivers. However, since
      they have no way to differentiate the two situations, it cannot.
      
      Implement new function dma_request_slave_channel_reason(), which performs
      identically to dma_request_slave_channel(), except that it returns an
      error-pointer rather than NULL, which allows callers to detect when
      deferred probe should occur.
      
      Eventually, all drivers should be converted to this new API, the old API
      removed, and the new API renamed to the more desirable name. This patch
      doesn't convert the existing API and all drivers in one go, since some
      drivers call dma_request_slave_channel() then dma_request_channel() if
      that fails. That would require either modifying dma_request_channel() in
      the same way, or adding extra error-handling code to all affected
      drivers, and there are close to 100 drivers using the other API, rather
      than just the 15-20 or so that use dma_request_slave_channel(), which
      might be tenable in a single patch.
      
      acpi_dma_request_slave_chan_by_name() doesn't currently implement
      deferred probe. It should, but this will be addressed later.
      Acked-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      0ad7c000
  10. 04 12月, 2013 2 次提交
  11. 28 11月, 2013 5 次提交
  12. 15 11月, 2013 3 次提交