1. 11 6月, 2019 1 次提交
  2. 16 8月, 2017 1 次提交
  3. 15 8月, 2017 1 次提交
  4. 07 8月, 2017 3 次提交
  5. 29 6月, 2017 2 次提交
  6. 14 6月, 2017 1 次提交
  7. 19 12月, 2016 1 次提交
  8. 21 7月, 2016 1 次提交
    • B
      spi: rockchip: limit transfers to (64K - 1) bytes · 5185a81c
      Brian Norris 提交于
      The Rockchip SPI controller's length register only supports 16-bits,
      yielding a maximum length of 64KiB (the CTRLR1 register holds "length -
      1"). Trying to transfer more than that (e.g., with a large SPI flash
      read) will cause the driver to hang.
      
      Now, it seems that while theoretically we should be able to program
      CTRLR1 with 0xffff, and get a 64KiB transfer, but that also seems to
      cause the core to choke, so stick with a maximum of 64K - 1 bytes --
      i.e., 0xffff.
      Signed-off-by: NBrian Norris <briannorris@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      5185a81c
  9. 08 6月, 2016 1 次提交
  10. 01 6月, 2016 1 次提交
  11. 04 5月, 2016 1 次提交
  12. 01 4月, 2016 1 次提交
  13. 15 3月, 2016 1 次提交
  14. 10 3月, 2016 2 次提交
  15. 09 3月, 2016 3 次提交
  16. 06 3月, 2016 1 次提交
  17. 05 3月, 2016 1 次提交
  18. 18 2月, 2016 1 次提交
  19. 16 2月, 2016 1 次提交
  20. 15 2月, 2016 2 次提交
  21. 09 2月, 2016 1 次提交
  22. 07 7月, 2015 1 次提交
  23. 27 3月, 2015 2 次提交
    • J
      spi/rockchip: Add device tree property to configure Rx Sample Delay · 76b17e6e
      Julius Werner 提交于
      We have found that we can sometimes see read failures on boards with
      high-capacitance SPI lines. It seems that the controller samples the Rx
      data line too early, and its register interface has an "Rx Sample Delay"
      setting to fine-tune against this issue.
      
      This patch adds a new optional device tree entry that can configure this
      delay in terms of nanoseconds. The kernel will calculate the
      best-fitting amount of parent clock ticks to program the controller with
      based on that.
      Signed-off-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      76b17e6e
    • J
      spi/rockchip: Round up clock rate divisor to err on the safe side · 754ec43c
      Julius Werner 提交于
      The Rockchip SPI driver currently calculates its clock rate divisor by
      integer dividing the parent rate by the target rate, and then rounding
      the result up to the next even number (since the divisor must be
      even).
      
      Clock rate divisors should always be rounded up, so that the resulting
      frequency is lower or equal to the target. This is correctly done in the
      second step here but not in the first, so we still have a risk of
      exceeding the desired target frequency (e.g. setting spi-max-frequency
      to 40000000 with a parent clock of 99000000 could lead to a divisor of
      99000000 / 40000000 == 2 (which is even) that then results in an
      effective frequency of 99000000 / 2 == 49500000 (potentially exceeding
      the flash chip's specifications).
      
      This patch changes the division to round up to fix this problem.
      Signed-off-by: NJulius Werner <jwerner@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      754ec43c
  24. 07 3月, 2015 1 次提交
  25. 29 1月, 2015 1 次提交
    • A
      spi/rockchip: avoid uninitialized-use warning · 97cf5669
      Arnd Bergmann 提交于
      We currently get a warning about potentially uninitialized variables
      in the rockchip spi driver, at least in certain toolchain versions:
      
      spi/spi-rockchip.c: In function 'rockchip_spi_prepare_dma':
      include/linux/dmaengine.h:796:2: warning: 'txdesc' may be used uninitialized in this function
      include/linux/dmaengine.h:796:2: warning: 'rxdesc' may be used uninitialized in this function
      
      The reason seems to be that gcc cannot know whether the value
      of the rs->rx and rs->tx variables change between the two points
      these are accessed.
      
      The code is actually correct, but to make this clearer to the
      compiler, this changes the conditionals to test for the local
      rxdesc/txdesc variables instead, which it knows won't change.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      97cf5669
  26. 13 12月, 2014 1 次提交
  27. 12 11月, 2014 1 次提交
  28. 20 10月, 2014 1 次提交
  29. 17 10月, 2014 1 次提交
  30. 15 10月, 2014 2 次提交
  31. 25 9月, 2014 1 次提交