1. 21 9月, 2016 5 次提交
    • M
      ASoC: fsl_ssi: Remove .num_reg_defaults_raw from regmap_config · 7de2763d
      Marek Vasut 提交于
      This driver provides no .reg_defaults_raw in regmap_config, so
      the .num_reg_defaults_raw is useless, and, in fact harmful. It
      triggers kernel crash in regmap_init which tries to access the
      register defaults.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      7de2763d
    • M
      ASoC: fsl_ssi: use flat regmap cache · bfcf928d
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bfcf928d
    • M
      ASoC: fsl_spdif: use flat regmap cache · 35ddb157
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      35ddb157
    • M
      ASoC: fsl_esai: use flat regmap cache · 0effb865
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      0effb865
    • M
      ASoC: fsl_asrc: use flat regmap cache · b4138868
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b4138868
  2. 03 9月, 2016 1 次提交
  3. 19 8月, 2016 3 次提交
  4. 17 8月, 2016 1 次提交
  5. 30 6月, 2016 1 次提交
    • A
      ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode · 4f14f5c1
      Alexander Shiyan 提交于
      The i.MX51 datasheet says:
      Chapter 56.1.2.4 I2S Mode
      ...
      When I2S modes are entered (I2S master (01) or I2S slave (10)),
      the following settings are recommended:
      ...
      - TX Frame Rate should be 2 i.e. (STCCR[12:8] = 1)
      - RX Frame Rate should be 2 i.e. (SRCCR[12:8] = 1)
      
      Chapter 56.3.3.12 SSI Transmit and Receive Clock Control Registers (STCCR & SRCCR)
      ...
      Bits 12-8 DC4-DC0
      Frame Rate Divider Control. These bits are used to control the divide ratio
      for the programmable frame rate dividers. The divide ratio works on the word
      clock. In Normal mode, this ratio determines the word transfer rate.
      In Network mode, this ratio sets the number of words per frame. The divide
      ratio ranges from 1 to 32 in Normal mode and from 2 to 32 in Network mode.
      In Normal mode, a divide ratio of 1 (DC=00000) provides continuous periodic
      data word transfer. A bit-length frame sync must be used in this case.
      
      Function fsl_ssi_hw_params() setup Normal mode for MONO output,
      so with DC=0, SSI enters to continuous periodic data word transfer.
      To fix this, setup DC for any I2S mode.
      Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4f14f5c1
  6. 28 6月, 2016 1 次提交
  7. 03 6月, 2016 1 次提交
  8. 13 5月, 2016 6 次提交
  9. 05 5月, 2016 2 次提交
  10. 29 4月, 2016 1 次提交
  11. 13 4月, 2016 1 次提交
  12. 09 3月, 2016 1 次提交
    • L
      dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc() · f6e45661
      Luis R. Rodriguez 提交于
      Rename dma_*_writecombine() to dma_*_wc(), so that the naming
      is coherent across the various write-combining APIs. Keep the
      old names for compatibility for a while, these can be removed
      at a later time. A guard is left to enable backporting of the
      rename, and later remove of the old mapping defines seemlessly.
      
      Build tested successfully with allmodconfig.
      
      The following Coccinelle SmPL patch was used for this simple
      transformation:
      
      @ rename_dma_alloc_writecombine @
      expression dev, size, dma_addr, gfp;
      @@
      
      -dma_alloc_writecombine(dev, size, dma_addr, gfp)
      +dma_alloc_wc(dev, size, dma_addr, gfp)
      
      @ rename_dma_free_writecombine @
      expression dev, size, cpu_addr, dma_addr;
      @@
      
      -dma_free_writecombine(dev, size, cpu_addr, dma_addr)
      +dma_free_wc(dev, size, cpu_addr, dma_addr)
      
      @ rename_dma_mmap_writecombine @
      expression dev, vma, cpu_addr, dma_addr, size;
      @@
      
      -dma_mmap_writecombine(dev, vma, cpu_addr, dma_addr, size)
      +dma_mmap_wc(dev, vma, cpu_addr, dma_addr, size)
      
      We also keep the old names as compatibility helpers, and
      guard against their definition to make backporting easier.
      
      Generated-by: Coccinelle SmPL
      Suggested-by: NIngo Molnar <mingo@kernel.org>
      Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: airlied@linux.ie
      Cc: akpm@linux-foundation.org
      Cc: benh@kernel.crashing.org
      Cc: bhelgaas@google.com
      Cc: bp@suse.de
      Cc: dan.j.williams@intel.com
      Cc: daniel.vetter@ffwll.ch
      Cc: dhowells@redhat.com
      Cc: julia.lawall@lip6.fr
      Cc: konrad.wilk@oracle.com
      Cc: linux-fbdev@vger.kernel.org
      Cc: linux-pci@vger.kernel.org
      Cc: luto@amacapital.net
      Cc: mst@redhat.com
      Cc: tomi.valkeinen@ti.com
      Cc: toshi.kani@hp.com
      Cc: vinod.koul@intel.com
      Cc: xen-devel@lists.xensource.com
      Link: http://lkml.kernel.org/r/1453516462-4844-1-git-send-email-mcgrof@do-not-panic.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      f6e45661
  13. 22 2月, 2016 2 次提交
  14. 05 2月, 2016 1 次提交
  15. 04 2月, 2016 1 次提交
    • N
      ASoC: fsl-asoc-card: Don't add DAPM routes for ASRC if it doesn't exist · 089dfaf7
      Nicolin Chen 提交于
      There are a pair of warnings when ASRC is absent in the DTB:
        fsl-asoc-card sound: ASoC: no source widget found for ASRC-Playback
        fsl-asoc-card sound: ASoC: Failed to add route ASRC-Playback -> direct -> CPU-Playback
        fsl-asoc-card sound: ASoC: no sink widget found for ASRC-Capture
        fsl-asoc-card sound: ASoC: Failed to add route CPU-Capture -> direct -> ASRC-Capture
      
      This is because the driver is still trying to add DAPM routes for ASRC
      even if it doesn't exist on that platform.
      
      The warnings are harmless but it might be annoying. So this patch drops
      the DAPM routes of ASRC when it's absent in the DAI link.
      Signed-off-by: NNicolin Chen <nicolinc@nvidia.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      089dfaf7
  16. 27 1月, 2016 1 次提交
  17. 25 1月, 2016 1 次提交
  18. 23 1月, 2016 2 次提交
  19. 10 1月, 2016 2 次提交
  20. 05 1月, 2016 1 次提交
  21. 25 12月, 2015 1 次提交
  22. 23 12月, 2015 3 次提交
  23. 18 12月, 2015 1 次提交
    • Z
      ASoC: fsl_sai: fix no frame clk in master mode · 3e3f8bd5
      Zidan Wang 提交于
      After several open/close sai test with ctrl+c, there will be
      I/O error. The SAI can't work anymore, can't recover. There
      will be no frame clock. With adding the software reset in
      trigger stop, the issue can be fixed.
      
      This is a hardware bug/errata and reset is the only option.
      
      According to the reference manual, the software reset doesn't
      reset any control register but only internal hardware logics
      such as bit clock generator, status flags, and FIFO pointers.
      (Our purpose is just to reset the clock generator while the
      software reset is the only way to do that.)
      
      Since slave mode doesn't use the clock generator, only apply
      the reset procedure to the master mode.
      
      For asynchronous mode, TX will not be reset when RX is still
      running. In this case, i can't reproduce this issue.
      Signed-off-by: NZidan Wang <zidan.wang@freescale.com>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      3e3f8bd5