1. 18 6月, 2015 3 次提交
    • R
      mmc: queue: prevent soft lockups on PREEMPT=n · a8c27c0b
      Rabin Vincent 提交于
      On systems with CONFIG_PREEMPT=n, under certain circumstances, mmcqd
      can continuously process requests for several seconds without blocking,
      triggering the soft lockup watchdog.  For example, this can happen if
      mmcqd runs on the CPU which services the controller's interrupt, and
      a process on a different CPU continuously writes to the MMC block
      device.
      
       NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [mmcqd/0:664]
       CPU: 0 PID: 664 Comm: mmcqd/0 Not tainted 4.1.0-rc7+ #4
       PC is at _raw_spin_unlock_irqrestore+0x24/0x28
       LR is at mmc_start_request+0x104/0x134
       ...
       [<805112a8>] (_raw_spin_unlock_irqrestore) from [<803db664>] (mmc_start_request+0x104/0x134)
       [<803db664>] (mmc_start_request) from [<803dc008>] (mmc_start_req+0x274/0x394)
       [<803dc008>] (mmc_start_req) from [<803eb2c4>] (mmc_blk_issue_rw_rq+0xd0/0xb98)
       [<803eb2c4>] (mmc_blk_issue_rw_rq) from [<803ebe8c>] (mmc_blk_issue_rq+0x100/0x470)
       [<803ebe8c>] (mmc_blk_issue_rq) from [<803ecab8>] (mmc_queue_thread+0xd0/0x170)
       [<803ecab8>] (mmc_queue_thread) from [<8003fd14>] (kthread+0xe0/0xfc)
       [<8003fd14>] (kthread) from [<8000f768>] (ret_from_fork+0x14/0x2c)
      
      Fix it by adding a cond_resched() in the request handling loop so that
      other processes get a chance to run.
      Signed-off-by: NRabin Vincent <rabin.vincent@axis.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      a8c27c0b
    • C
      mmc: mediatek: Add PM support for MMC driver · 4b8a43e9
      Chaotian Jing 提交于
      Add PM support for Mediatek MMC driver
      Save/restore registers when PM
      Signed-off-by: NChaotian Jing <chaotian.jing@mediatek.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      4b8a43e9
    • C
      mmc: mediatek: Add Mediatek MMC driver · 20848903
      Chaotian Jing 提交于
      Add Mediatek MMC driver code
      Support eMMC/SD/SDIO
      Signed-off-by: NChaotian Jing <chaotian.jing@mediatek.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      20848903
  2. 16 6月, 2015 5 次提交
  3. 15 6月, 2015 2 次提交
  4. 12 6月, 2015 1 次提交
  5. 08 6月, 2015 1 次提交
    • U
      mmc: sdhci: Restore behavior while creating OCR mask · 5fd26c7e
      Ulf Hansson 提交于
      Commit 3a48edc4 ("mmc: sdhci: Use mmc core regulator infrastucture")
      changed the behavior for how to assign the ocr_avail mask for the mmc
      host. More precisely it started to mask the bits instead of assigning
      them.
      
      Restore the behavior, but also make it clear that an OCR mask created
      from an external regulator overrides the other ones. The OCR mask is
      determined by one of the following with this priority:
      
      1. Supported ranges of external regulator if one supplies VDD
      2. Host OCR mask if set by the driver (based on DT properties)
      3. The capabilities reported by the controller itself
      
      Fixes: 3a48edc4 ("mmc: sdhci: Use mmc core regulator infrastucture")
      Cc: Tim Kryger <tim.kryger@gmail.com>
      Reported-by: NYangbo Lu <yangbo.lu@freescale.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: NTim Kryger <tim.kryger@gmail.com>
      5fd26c7e
  6. 04 6月, 2015 4 次提交
  7. 01 6月, 2015 24 次提交