1. 05 3月, 2018 1 次提交
  2. 27 2月, 2018 1 次提交
  3. 30 10月, 2017 1 次提交
  4. 30 8月, 2017 2 次提交
  5. 29 6月, 2017 2 次提交
  6. 13 2月, 2017 4 次提交
  7. 05 12月, 2016 1 次提交
  8. 29 11月, 2016 2 次提交
  9. 22 9月, 2016 1 次提交
  10. 25 7月, 2016 2 次提交
    • J
      mmc: dw_mmc: add the card write threshold for HS400 mode · 7e4bf1bc
      Jaehoon Chung 提交于
      Since v2.80a, dwmmc controller introduced the card write threshold for
      HS400 mode. So CardThrCtl can be supported during write operation, not
      only read operation.
      (Note: Only use the write threshold when mode is HS400.)
      
      To use more compatible, removed "_rd_" from function name.
      Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
      Reviewed-by: NShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      7e4bf1bc
    • S
      mmc: dw_mmc: remove UBSAN warning in dw_mci_setup_bus() · 65257a0d
      Seung-Woo Kim 提交于
      This patch removes following UBSAN warnings in dw_mci_setup_bus().
      
        UBSAN: Undefined behaviour in drivers/mmc/host/dw_mmc.c:1102:14
        shift exponent 250 is too large for 32-bit type 'unsigned int'
        Call trace:
        [<ffffff90080908a8>] dump_backtrace+0x0/0x380
        [<ffffff9008090c3c>] show_stack+0x14/0x20
        [<ffffff90087457b8>] dump_stack+0xe0/0x120
        [<ffffff90087b1360>] ubsan_epilogue+0x18/0x68
        [<ffffff90087b1a94>] __ubsan_handle_shift_out_of_bounds+0x18c/0x1bc
        [<ffffff9008d89cb8>] dw_mci_setup_bus+0x3a0/0x438
        [...]
      
        UBSAN: Undefined behaviour in drivers/mmc/host/dw_mmc.c:1132:27
        shift exponent 250 is too large for 32-bit type 'unsigned int'
        Call trace:
        [<ffffff90080908a8>] dump_backtrace+0x0/0x380
        [<ffffff9008090c3c>] show_stack+0x14/0x20
        [<ffffff90087457b8>] dump_stack+0xe0/0x120
        [<ffffff90087b1360>] ubsan_epilogue+0x18/0x68
        [<ffffff90087b1a94>] __ubsan_handle_shift_out_of_bounds+0x18c/0x1bc
        [<ffffff9008d89c9c>] dw_mci_setup_bus+0x384/0x438
        [...]
      
      The warnings are caused because of bit shift which is used to
      filter spamming message for CONFIG_MMC_CLKGATE, but the config is
      already removed. So this patch just removes the shift.
      Signed-off-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      65257a0d
  11. 02 5月, 2016 1 次提交
  12. 29 2月, 2016 2 次提交
  13. 29 10月, 2015 1 次提交
  14. 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
  15. 26 10月, 2015 2 次提交
  16. 01 6月, 2015 2 次提交
  17. 09 4月, 2015 2 次提交
  18. 23 3月, 2015 1 次提交
  19. 19 1月, 2015 2 次提交
  20. 26 11月, 2014 2 次提交
  21. 10 11月, 2014 1 次提交
    • D
      mmc: dw_mmc: Remove old card detect infrastructure · 6130e7a9
      Doug Anderson 提交于
      The dw_mmc driver had a bunch of code that ran whenever a card was
      ejected and inserted.  However, this code was old and crufty and
      should be removed.  Some evidence that it's really not needed:
      
      1. Is is supposed to be legal to use 'cd-gpio' on dw_mmc instead of
         using the built-in card detect mechanism.  The 'cd-gpio' code
         doesn't run any of the crufty old code but yet still works.
      
      2. While looking at this, I realized that my old change (369ac861 mmc:
         dw_mmc: don't queue up a card detect at slot startup) actually
         castrated the old code a little bit already and nobody noticed.
         Specifically "last_detect_state" was left as 0 at bootup.  That
         means that on the first card removal none of the crufty code ran.
      
      3. I can run "while true; do dd if=/dev/mmcblk1 of=/dev/null; done"
         while ejecting and inserting an SD Card and the world doesn't
         explode.
      
      If some of the crufty old code is actually needed, we should justify
      it and also put it in some place where it will be run even with
      "cd-gpio".
      
      Note that in my case I'm using the "cd-gpio" mechanism but for various
      reasons the hardware triggers a dw_mmc "card detect" at bootup.  That
      was actually causing a real bug.  The card detect workqueue was
      running while the system was trying to enumerate the card.  The
      "present != slot->last_detect_state" triggered and we were doing all
      kinds of crazy stuff and messing up enumeration.  The new mechanism of
      just asking the core to check the card is much safer and then the
      bogus interrupt doesn't hurt.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Tested-by: NJaehoon Chung <jh80.chung@samsung.com>
      Acked-by: NJaehoon Chung <jh80.chung@samsung.com>
      Tested-by: Nalim.akhtar <alim.akhtar@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      6130e7a9
  22. 09 9月, 2014 1 次提交
  23. 11 8月, 2014 1 次提交
  24. 13 5月, 2014 1 次提交
  25. 04 3月, 2014 1 次提交
    • F
      mmc: dw_mmc: fix possible build error · 370aede6
      Felipe Balbi 提交于
      Fix the following build errors:
      
      drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_suspend’:
      drivers/mmc/host/dw_mmc-k3.c:58:2: error: implicit declaration of
      	function ‘dw_mci_suspend’ [-Werror=implicit-function-declaration]
        ret = dw_mci_suspend(host);
        ^
      drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_resume’:
      drivers/mmc/host/dw_mmc-k3.c:76:2: error: implicit declaration of
      	function ‘dw_mci_resume’ [-Werror=implicit-function-declaration]
        return dw_mci_resume(host);
        ^
      drivers/mmc/host/dw_mmc-k3.c: At top level:
      drivers/mmc/host/dw_mmc-k3.c:53:12: warning: ‘dw_mci_k3_suspend’ defined
      	but not used [-Wunused-function]
       static int dw_mci_k3_suspend(struct device *dev)
                  ^
      drivers/mmc/host/dw_mmc-k3.c:65:12: warning: ‘dw_mci_k3_resume’ defined
      	but not used [-Wunused-function]
       static int dw_mci_k3_resume(struct device *dev)
                  ^
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Acked-by: NJaehoon Chung <jh80.chung@samsung.com>
      Signed-off-by: NChris Ball <chris@printf.net>
      370aede6
  26. 26 2月, 2014 1 次提交
  27. 26 9月, 2013 1 次提交