1. 30 10月, 2017 3 次提交
    • S
      mmc: sdhci-msm: fix issue with power irq · c7ccee22
      Subhash Jadavani 提交于
      SDCC controller reset (SW_RST) during probe may trigger power irq if
      previous status of PWRCTL was either BUS_ON or IO_HIGH_V. So before we
      enable the power irq interrupt in GIC (by registering the interrupt
      handler), we need to ensure that any pending power irq interrupt status
      is acknowledged otherwise power irq interrupt handler would be fired
      prematurely.
      Signed-off-by: NSubhash Jadavani <subhashj@codeaurora.org>
      Signed-off-by: NVijay Viswanath <vviswana@codeaurora.org>
      Acked-by: NAdrian Hunter <adrian.hunter@intel.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      c7ccee22
    • B
      mmc: sdhci-msm: Enable delay circuit calibration clocks · 4946b3af
      Bjorn Andersson 提交于
      The delay circuit used to support HS400 is calibrated based on two
      additional clocks. When these clocks are not available and
      FF_CLK_SW_RST_DIS is not set in CORE_HC_MODE, reset might fail. But on
      some platforms this doesn't work properly and below dump can be seen in
      the kernel log.
      
        mmc0: Reset 0x1 never completed.
        mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
        mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00001102
        mmc0: sdhci: Blk size:  0x00004000 | Blk cnt:  0x00000000
        mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000000
        mmc0: sdhci: Present:   0x01f80000 | Host ctl: 0x00000000
        mmc0: sdhci: Power:     0x00000000 | Blk gap:  0x00000000
        mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000002
        mmc0: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
        mmc0: sdhci: Int enab:  0x00000000 | Sig enab: 0x00000000
        mmc0: sdhci: AC12 err:  0x00000000 | Slot int: 0x00000000
        mmc0: sdhci: Caps:      0x742dc8b2 | Caps_1:   0x00008007
        mmc0: sdhci: Cmd:       0x00000000 | Max curr: 0x00000000
        mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
        mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
        mmc0: sdhci: Host ctl2: 0x00000000
        mmc0: sdhci: ============================================
      
      Add support for the additional calibration clocks to allow these
      platforms to be configured appropriately.
      
      Cc: Venkat Gopalakrishnan <venkatg@codeaurora.org>
      Cc: Ritesh Harjani <riteshh@codeaurora.org>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Acked-by: NRob Herring <robh@kernel.org>
      Tested-by: NJeremy McNicoll <jeremymc@redhat.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      4946b3af
    • B
      mmc: sdhci-msm: Utilize bulk clock API · e4bf91f6
      Bjorn Andersson 提交于
      By stuffing the runtime controlled clocks into a clk_bulk_data array we
      can utilize the newly introduced bulk clock operations and clean up the
      error paths. This allow us to handle additional clocks in subsequent
      patch, without the added complexity.
      
      Cc: Ritesh Harjani <riteshh@codeaurora.org>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Tested-by: NJeremy McNicoll <jeremymc@redhat.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      e4bf91f6
  2. 30 8月, 2017 2 次提交
  3. 25 4月, 2017 1 次提交
  4. 13 2月, 2017 9 次提交
  5. 29 11月, 2016 11 次提交
  6. 27 10月, 2016 1 次提交
  7. 25 7月, 2016 4 次提交
  8. 29 2月, 2016 2 次提交
  9. 27 10月, 2015 1 次提交
    • C
      mmc: mmc: extend the mmc_send_tuning() · 9979dbe5
      Chaotian Jing 提交于
      The mmc_execute_tuning() has already prepared the opcode,
      there is no need to prepare it again at mmc_send_tuning(),
      and, there is a BUG of mmc_send_tuning() to determine the opcode
      by bus width, assume eMMC was running at HS200, 4bit mode,
      then the mmc_send_tuning() will overwrite the opcode from CMD21
      to CMD19, then got error.
      
      in addition, extend an argument of "cmd_error" to allow getting
      if there was cmd error when tune response.
      Signed-off-by: NChaotian Jing <chaotian.jing@mediatek.com>
      [Ulf: Rebased patch]
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      9979dbe5
  10. 17 8月, 2015 1 次提交
  11. 25 3月, 2015 1 次提交
  12. 08 12月, 2014 1 次提交
  13. 23 9月, 2014 2 次提交
  14. 09 9月, 2014 1 次提交