1. 28 1月, 2015 2 次提交
    • P
      mmc: mmci: Get rid of dead code in mmci_dma_setup · e9bb997a
      Pramod Gurav 提交于
      DMA configuration has been removed from function mmci_dma_setup but the
      local mask variable was not removed. This remains unused hence remove
      it from the function and operations on it
      Signed-off-by: NPramod Gurav <pramod.gurav@smartplayin.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      e9bb997a
    • J
      mmc: sdhci-pxav3: fix race between runtime pm and irq · 3bb10f60
      Jisheng Zhang 提交于
      This patch is to fix a race condition that may cause an unhandled irq,
      which results in big sdhci interrupt numbers and endless "mmc1: got irq
      while runtime suspended" msgs before v3.15.
      
      Consider following scenario:
      
            CPU0                            CPU1
                                    sdhci_pxav3_runtime_suspend()
                                     spin_lock_irqsave(&host->lock, flags);
       sdhci_irq()
        spining on the &host->lock
                                     host->runtime_suspended = true;
                                     spin_unlock_irqrestore(&host->lock, flags);
        get the &host->lock
        runtime_suspended is true now
        return IRQ_NONE;
      
      Fix this race by using the core sdhci.c supplied sdhci_runtime_suspend_host()
      in runtime suspend hook which will disable card interrupts. We also use the
      sdhci_runtime_resume_host() in the runtime resume hook accordingly.
      Signed-off-by: NJisheng Zhang <jszhang@marvell.com>
      Cc: <stable@vger.kernel.org> # v3.9+
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      3bb10f60
  2. 21 1月, 2015 5 次提交
  3. 20 1月, 2015 21 次提交
  4. 19 1月, 2015 12 次提交