1. 10 5月, 2016 1 次提交
  2. 04 5月, 2016 1 次提交
  3. 02 5月, 2016 2 次提交
  4. 29 2月, 2016 2 次提交
  5. 28 12月, 2015 1 次提交
  6. 22 12月, 2015 2 次提交
  7. 09 11月, 2015 4 次提交
    • A
      mmc: mmc: Improve reliability of mmc_select_hs400() · d2302933
      Adrian Hunter 提交于
      mmc_select_hs400() calls __mmc_switch() which checks the switch is
      successful using CMD13 (SEND_STATUS).  The problem is that it does that
      using the timing settings of the previous mode.  That is prone to error,
      especially when switching from HS to HS400 because the timing parameters
      for HS mode are tighter than the timing parameters for HS400 mode.
      
      In the case when CMD13 polling is used (i.e. not MMC_CAP_WAIT_WHILE_BUSY)
      with the switch command, it must be assumed that using different modes on
      the card and host must work.
      
      However in the case when CMD13 polling is not used
      (i.e. MMC_CAP_WAIT_WHILE_BUSY) mmc_select_hs400() can be made more
      reliable by setting the host to the correct timing before sending CMD13.
      
      This patch does that.
      Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: <stable@vger.kernel.org> # 4.2+
      Tested-by: NAlim Akhtar <alim.akhtar@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      d2302933
    • A
      mmc: mmc: Move mmc_switch_status() · 974007aa
      Adrian Hunter 提交于
      Move the mmc_switch_status() function in preparation for calling it
      in mmc_select_hs400().
      Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: <stable@vger.kernel.org> # 4.2+
      Tested-by: NAlim Akhtar <alim.akhtar@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      974007aa
    • A
      mmc: mmc: Fix HS setting in mmc_select_hs400() · 51b12f77
      Adrian Hunter 提交于
      mmc_select_hs400() begins with the card and host in HS200 mode.
      Therefore, any commands sent to the card should use HS200 timing.
      It is incorrect to set the host to High Speed (HS) timing before
      sending the switch command.  Doing so is unreliable because
      the timing parameters for HS mode are tighter than the timing
      parameters for HS200 mode.  Thus the HS timings should be set
      only after the card has switched mode.
      
      However, it is not unreasonable first to reduce the frequency to
      the HS mode frequency, which should make the switch command and
      subsequent CMD13 commands more reliable.
      
      This patch does that.
      Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: <stable@vger.kernel.org> # 4.2+
      Tested-by: NAlim Akhtar <alim.akhtar@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      51b12f77
    • A
      mmc: mmc: Improve reliability of mmc_select_hs200() · 1815e61b
      Adrian Hunter 提交于
      Currently mmc_select_hs200() uses __mmc_switch() which checks the
      success of the switch to HS200 mode using CMD13 (SEND_STATUS).
      The problem is that it does that using the timing settings of legacy
      mode.  That is prone to error, not least because the timing parameters
      for legacy mode are tighter than the timing parameters for HS200 mode.
      
      In the case when CMD13 polling is used (i.e. not MMC_CAP_WAIT_WHILE_BUSY)
      with the switch command, it must be assumed that using different modes on
      the card and host must work.
      
      However in the case when CMD13 polling is not used
      (i.e. MMC_CAP_WAIT_WHILE_BUSY) mmc_select_hs200() can be made more
      reliable by setting the host to the correct timing before sending CMD13.
      
      This patch does that.
      
      A complication is that the caller, mmc_select_timing(), will ignore a
      switch error (indicated by -EBADMSG), assume the old mode is valid
      and continue, so the old timing must be restored in that case.
      Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
      Cc: <stable@vger.kernel.org> # 4.2+
      Tested-by: NAlim Akhtar <alim.akhtar@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      1815e61b
  8. 26 10月, 2015 2 次提交
  9. 21 10月, 2015 1 次提交
  10. 04 6月, 2015 1 次提交
  11. 01 6月, 2015 5 次提交
  12. 02 4月, 2015 1 次提交
  13. 07 3月, 2015 1 次提交
  14. 29 1月, 2015 1 次提交
  15. 19 1月, 2015 4 次提交
  16. 29 12月, 2014 1 次提交
  17. 10 11月, 2014 10 次提交