1. 27 Aug, 2015 30 commits
  2. 24 Aug, 2015 4 commits
  3. 17 Aug, 2015 6 commits
    • Addy Ke's avatar
      mmc: dw_mmc: add quirk for broken data transfer over scheme · 57e10486
      Addy Ke authored
      This patch add a new quirk to add a s/w timer to notify the driver
      to terminate current transfer and report a data timeout to the core,
      if DTO interrupt does NOT come within the given time.
      
      dw_mmc call mmc_request_done func to finish transfer depends on
      DTO interrupt. If DTO interrupt does not come in sending data state,
      the current transfer will be blocked.
      
      We got the reply from synopsys:
      There are two counters but both use the same value of [31:8] bits.
      Data timeout counter doesn't wait for stop clock and you should get
      DRTO even when the clock is not stopped.
      Host Starvation timeout counter is triggered with stop clock condition.
      
      This means that host should get DRTO and DTO interrupt.
      
      But this case really exists, when driver reads tuning data from
      card on RK3288-pink2 board. I measured waveforms by oscilloscope
      and found that card clock was always on and data lines were always
      holded high level in sending data state.
      
      There are two possibility that data over interrupt doesn't come in
      reading data state on RK3X SoCs:
      - get command done interrupt, but doesn't get any data-related interrupt.
      - get data error interrupt, but doesn't get data over interrupt.
      Signed-off-by: default avatarAddy Ke <addy.ke@rock-chips.com>
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      57e10486
    • Jaehoon Chung's avatar
      mmc: dw_mmc: print the message for deprecated property · 40a7a463
      Jaehoon Chung authored
      supports-highspeed was deprecated.
      If someone use it, we need to notice information for it.
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      40a7a463
    • Jaehoon Chung's avatar
      mmc: dw_mmc: remove the unused blk_setting · 2b708df2
      Jaehoon Chung authored
      "blk_setting" doesn't use anywhere.
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      2b708df2
    • Jaehoon Chung's avatar
      mmc: dw_mmc: fix the wrong condition checking · 9e747b7e
      Jaehoon Chung authored
      When num-slots is lower than 1, it's right that should be returned -ENODEV.
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      9e747b7e
    • Heiko Stuebner's avatar
      mmc: dw_mmc: fix pio mode when internal dmac is enabled · 575c319d
      Heiko Stuebner authored
      The dw_mci_init_dma() may decide to not use dma, but pio instead, caused
      by things like wrong dma settings in the system.
      
      Till now the code dw_mci_init_slot() always assumed that dma is available
      when CONFIG_MMC_DW_IDMAC was defined, ignoring the host->use_dma var
      set during dma init.
      
      So when now the dma init failed for whatever reason, the transfer sizes
      would still be set for dma transfers, especially including the maximum
      block-count calculated from host->ring_size and resulting in a
      
      [    4.991109] ------------[ cut here ]------------
      [    4.991111] kernel BUG at drivers/mmc/core/core.c:256!
      [    4.991113] Internal error: Oops - BUG: 0 [#1] SMP ARM
      
      because host->ring_size is 0 in this case and the slot init code uses
      the wrong code to calculate the values.
      
      Fix this by selecting the correct calculations using the host->use_dma
      variable instead of the CONFIG_MMC_DW_IDMAC config option.
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      575c319d
    • Shawn Lin's avatar
      mmc: dw_mmc: Fix coding style issues · 0e3a22c0
      Shawn Lin authored
      This patch fixes the following issues reported by checkpatch.pl:
      - use -EINVAL instead of -ENOSYS, to fix warning message:
         "ENOSYS means 'invalid syscall nr' and nothing else"
      - split lines whose length is greater than 80 characters
      - avoid quoted string split across lines
      - use min_t instead of min, to fix warning message:
         "min() should probably be min_t(int, cnt, host->part_buf_count)"
      - fix missing a blank line after declarations
      Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      0e3a22c0