1. 03 Dec, 2013 1 commit
  2. 06 Nov, 2013 1 commit
  3. 31 Oct, 2013 1 commit
    • DMA-API: sound: fix dma mask handling in a lot of drivers · c9bd5e69
      Russell King authored
      This code sequence is unsafe in modules:
      static u64 mask = DMA_BIT_MASK(something);
      	if (!dev->dma_mask)
      		dev->dma_mask = &mask;
      as if a module is reloaded, the mask will be pointing at the original
      module's mask address, and this can lead to oopses.  Moreover, they
      all follow this with:
      	if (!dev->coherent_dma_mask)
      		dev->coherent_dma_mask = mask;
      where 'mask' is the same value as the statically defined mask, and this
      bypasses the architecture's check on whether the DMA mask is possible.
      Fix these issues by using the new dma_coerce_coherent_and_mask()
      Acked-by: 's avatarMark Brown <broonie@linaro.org>
      Acked-by: 's avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: 's avatarRussell King <rmk+kernel@arm.linux.org.uk>
  4. 29 Oct, 2013 1 commit
  5. 17 Oct, 2013 1 commit
  6. 15 Aug, 2013 1 commit
  7. 15 Jul, 2013 1 commit
  8. 29 May, 2013 1 commit
  9. 23 May, 2013 1 commit
  10. 08 Jan, 2013 3 commits
    • ALSA: pxa27x: rename pxa27x_assert_ac97reset() · 053fe0f1
      Mike Dunn authored
      This patch does nothing functionally, it just gives the function a new name and
      modifies the prototype slightly in order to clarify what the function is doing
      (which is not necessarily asserting the reset).
      Some commentary also added.
      Tested on a palm treo 680 machine.
      Signed-off-by: 's avatarMike Dunn <mikedunn@newsguy.com>
      Acked-by: 's avatarIgor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: 's avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    • ALSA: pxa27x: fix ac97 warm reset · 3b4bc7bc
      Mike Dunn authored
      This patch fixes some code that implements a work-around to a hardware bug in
      the ac97 controller on the pxa27x.  A bug in the controller's warm reset
      functionality requires that the mfp used by the controller as the AC97_nRESET
      line be temporarily reconfigured as a generic output gpio (AF0) and manually
      held high for the duration of the warm reset cycle.  This is what was done in
      the original code, but it was broken long ago by commit fb1bf8cd
          ([ARM] pxa: introduce processor specific pxa27x_assert_ac97reset())
      which changed the mfp to a GPIO input instead of a high output.
      The fix requires the ac97 controller to obtain the gpio via gpio_request_one(),
      with arguments that configure the gpio as an output initially driven high.
      Tested on a palm treo 680 machine.  Reportedly, this broken code only prevents a
      warm reset on hardware that lacks a pull-up on the line, which appears to be the
      case for me.
      Signed-off-by: 's avatarMike Dunn <mikedunn@newsguy.com>
      Signed-off-by: 's avatarIgor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: 's avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
    • ALSA: pxa27x: fix ac97 cold reset · 41b645c8
      Mike Dunn authored
      Cold reset on the pxa27x currently fails and
           pxa2xx_ac97_try_cold_reset: cold reset timeout (GSR=0x44)
      appears in the kernel log.  Through trial-and-error (the pxa270 developer's
      manual is mostly incoherent on the topic of ac97 reset), I got cold reset to
      complete by setting the WARM_RST bit in the GCR register (and later noticed that
      pxa3xx does this for cold reset as well).  Also, a timeout loop is needed to
      wait for the reset to complete.
      Tested on a palm treo 680 machine.
      Signed-off-by: 's avatarMike Dunn <mikedunn@newsguy.com>
      Acked-by: 's avatarIgor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: 's avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
  11. 07 Dec, 2012 2 commits
  12. 09 Aug, 2012 1 commit
  13. 03 Jul, 2012 1 commit
  14. 25 Mar, 2012 1 commit
    • ARM: pxa: use common IOMEM definition · 23019a73
      Rob Herring authored
      pxa was missed in the moving of IOMEM to a common definition, so lots of
      IOMEM redefined warnings were introduced. So remove pxa IOMEM definition
      and fix all the fallout.
      Reported-by: 's avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: 's avatarRob Herring <rob.herring@calxeda.com>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: rtc-linux@googlegroups.com
      Cc: alsa-devel@alsa-project.org
  15. 16 Mar, 2012 1 commit
  16. 26 Jan, 2012 1 commit
  17. 27 Nov, 2011 1 commit
  18. 22 Nov, 2011 1 commit
  19. 31 Oct, 2011 1 commit
  20. 22 Sep, 2011 1 commit
  21. 03 Apr, 2011 1 commit
  22. 23 Feb, 2011 1 commit
  23. 07 Feb, 2011 1 commit
    • ALSA: AACI: allow writes to MAINCR to take effect · 7c289385
      Russell King authored
      The AACI TRM requires the MAINCR enable bit to be held zero for two
      bitclk cycles plus three apb_pclk cycles.  Use a delay of 1us to
      ensure this.
      Ensure that writes to MAINCR to change the addressed codec only happen
      when required, and that they take effect in a similar manner to the
      above, otherwise we seem to occasionally have stuck slot busy bits.
      Signed-off-by: 's avatarRussell King <rmk+kernel@arm.linux.org.uk>
  24. 26 Jan, 2011 5 commits
  25. 25 Jan, 2011 4 commits
  26. 13 Apr, 2010 1 commit
  27. 30 Mar, 2010 1 commit
    • include cleanup: Update gfp.h and slab.h includes to prepare for breaking… · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      The script does the followings.
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
      The conversion was done in the following steps.
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
      6. percpu.h was updated not to include slab.h.
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: 's avatarTejun Heo <tj@kernel.org>
      Guess-its-ok-by: 's avatarChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
  28. 19 Mar, 2010 1 commit
  29. 01 Mar, 2010 2 commits