1. 16 12月, 2019 2 次提交
  2. 13 11月, 2019 1 次提交
  3. 12 9月, 2019 1 次提交
  4. 15 4月, 2019 2 次提交
  5. 25 2月, 2019 1 次提交
  6. 17 12月, 2018 4 次提交
  7. 15 10月, 2018 2 次提交
  8. 08 10月, 2018 5 次提交
  9. 23 8月, 2018 2 次提交
  10. 16 7月, 2018 1 次提交
  11. 02 7月, 2018 2 次提交
  12. 04 6月, 2018 1 次提交
    • W
      mmc: renesas_sdhi: really fix WP logic regressions · ef5332c1
      Wolfram Sang 提交于
      This reverts commit e060d376 ("mmc: renesas_sdhi: fix WP detection")
      and adds some code to really fix the regressions.
      
      It was missed so far that Renesas R-Car instantiations of SDHI chose to
      disable internal WP and used the existence of "wp-gpios" to en/disable
      WP at all.
      
      With the first refactoring by Yamada-san with commit 2ad1db05 ("mmc:
      renesas_sdhi: use MMC_CAP2_NO_WRITE_PROTECT instead of TMIO own flag"),
      WP was always disabled even when GPIOs were present. With Wolfram's
      first fix which gets now reverted, GPIOs were honored. But when not
      available, the fallback was to internal WP and not to disabled WP. This
      caused wrong WP status on uSD card slots.
      
      Restore the old behaviour now. By default, WP is disabled. When a GPIO
      is found, the GPIO re-enables WP. We will think about possible better
      ways to handle this in the future.
      
      Tested on a previously regressing Renesas Lager board (H2) and a still
      working Renesas Salvator-X board (M3-W).
      Reported-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Cc: stable@vger.kernel.org # v4.17+
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      ef5332c1
  13. 21 5月, 2018 1 次提交
  14. 02 5月, 2018 5 次提交
  15. 19 4月, 2018 1 次提交
  16. 15 3月, 2018 1 次提交
  17. 05 3月, 2018 2 次提交
    • M
      mmc: tmio: move TMIO_MASK_{READOP, WRITEOP} handling to correct place · b12a7a28
      Masahiro Yamada 提交于
      As far as I tested the IP on UniPhier SoCs, TMIO_STAT_{RXRDY,TXRQ}
      are asserted for DMA mode as well as for PIO.  I need to disable the
      those IRQs in dma_ops->start hook, otherwise the DMA transfer fails
      with the following error message:
        PIO IRQ in DMA mode!
      
      Renesas chips are the same cases since I see their dma_ops->start
      hooks explicitly clear TMIO_STAT_{RXRDY,TXRQ} (with nice comment!).
      
      If we do this sanity check in TMIO MMC core, RXRDY/TXRQ handling
      should be entirely moved to the core.  tmio_mmc_cmd_irq() will
      be a suitable place to disable them.
      
      The probe function sets TMIO_MASK_{READOP,WRITEOP} but this is odd.
      
          /* Unmask the IRQs we want to know about */
          if (!_host->chan_rx)
                  irq_mask |= TMIO_MASK_READOP;
          if (!_host->chan_tx)
                  irq_mask |= TMIO_MASK_WRITEOP;
      
      At this point, _host->{chan_rx,chan_tx} are _always_ NULL because
      tmio_mmc_request_dma() is called after this code.  Consequently,
      TMIO_MASK_{READOP,WRITEOP} are set here whether DMA is used or not.
      Remove this pointless code.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      Reviewed-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Tested-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      b12a7a28
    • M
      mmc: renesas_sdhi: use MMC_CAP2_NO_WRITE_PROTECT instead of TMIO own flag · 2ad1db05
      Masahiro Yamada 提交于
      TMIO_MMC_WRPROTECT_DISABLE is equivalent to MMC_CAP2_NO_WRITE_PROTECT.
      
      The flag is propagated as follows:
             renesas_sdhi_of_data::capabilities2
          -> tmio_mmc_data::capabilities2
          -> mmc_host::caps2
      
      Only the difference is the TMIO_... makes tmio_mmc_get_ro() return 0
      (i.e. it does not affect mmc_gpio_get_ro() at all), while MMC_CAP2_...
      returns 0 before calling ->get_ro() hook (i.e. it affects both IP own
      logic and GPIO detection).
      
      The TMIO MMC drivers do not set-up gpio_ro by themselves.  Only the
      possibility, if any, would be DT specifies "wp-gpios" property, and
      gpio_ro is set by mmc_gpiod_request_ro() called from mmc_of_parse().
      However, it does not make sense to specify "wp-gpios" property and
      TMIO_MMC_WRPROTECT_DISABLE at the same time.
      
      I checked under arch/arm/boot/dts/ and arch/arm64/boot/dts/renesas/,
      and I did not see any Renesas boards with "wp-gpios".  So, this
      conversion should be safe.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      Tested-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      2ad1db05
  18. 19 12月, 2017 2 次提交
  19. 11 12月, 2017 1 次提交
  20. 30 10月, 2017 1 次提交
    • S
      mmc: renesas_sdhi: implement R-Car Gen[123] fallback compatibility strings · d6dc425a
      Simon Horman 提交于
      Implement fallback compatibility strings for R-Car Gen 1, 2 and 3.
      
      In the case of Renesas R-Car hardware we know that there are generations of
      SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship
      between IP blocks might be. For example, I believe that r8a7790 is older
      than r8a7791 but that doesn't imply that the latter is a descendant of the
      former or vice versa.
      
      We can, however, by examining the documentation and behaviour of the
      hardware at run-time observe that the current driver implementation appears
      to be compatible with the IP blocks on SoCs within a given generation.
      
      For the above reasons and convenience when enabling new SoCs a
      per-generation fallback compatibility string scheme is being adopted for
      drivers for Renesas SoCs.
      
      Also, improve readability by listing the shmobile fallback compatibility
      string after the more-specific compatibility strings they provide a
      fallback for.
      Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
      Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: NWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      d6dc425a
  21. 20 10月, 2017 1 次提交
  22. 30 8月, 2017 1 次提交