1. 25 4月, 2022 3 次提交
  2. 13 4月, 2022 1 次提交
  3. 06 4月, 2022 1 次提交
  4. 10 2月, 2022 2 次提交
  5. 13 11月, 2021 1 次提交
  6. 13 10月, 2021 1 次提交
    • A
      spi: cadence-quadspi: fix dma_unmap_single() call · d9c55c95
      Arnd Bergmann 提交于
      There are separate constants for the dma-mapping API and the dmaengine
      API, mixing them up causes a warning in some builds:
      
      In file included from drivers/spi/spi-cadence-quadspi.c:12:
      drivers/spi/spi-cadence-quadspi.c: In function 'cqspi_versal_indirect_read_dma':
      drivers/spi/spi-cadence-quadspi.c:950:55: error: implicit conversion from 'enum dma_transfer_direction' to 'enum dma_data_direction' [-Werror=enum-conversion]
        950 |         dma_unmap_single(dev, dma_addr, bytes_to_dma, DMA_DEV_TO_MEM);
            |                                                       ^~~~~~~~~~~~~~
      include/linux/dma-mapping.h:407:70: note: in definition of macro 'dma_unmap_single'
        407 | #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, 0)
            |                                                                      ^
      
      Fixes: 1a6f854f ("spi: cadence-quadspi: Add Xilinx Versal external DMA support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20211013144600.2378037-1-arnd@kernel.orgSigned-off-by: NMark Brown <broonie@kernel.org>
      d9c55c95
  7. 02 10月, 2021 2 次提交
  8. 06 8月, 2021 1 次提交
  9. 17 7月, 2021 1 次提交
    • A
      spi: cadence-quadspi: Disable Auto-HW polling · 9cb2ff11
      Apurva Nandan 提交于
      cadence-quadspi has a builtin Auto-HW polling funtionality using which
      it keep tracks of completion of write operations. When Auto-HW polling
      is enabled, it automatically initiates status register read operation,
      until the flash clears its busy bit.
      
      cadence-quadspi controller doesn't allow an address phase when
      auto-polling the busy bit on the status register. Unlike SPI NOR
      flashes, SPI NAND flashes do require the address of status register
      when polling the busy bit using the read register operation. As
      Auto-HW polling is enabled by default, cadence-quadspi returns a
      timeout for every write operation after an indefinite amount of
      polling on SPI NAND flashes.
      
      Disable Auto-HW polling completely as the spi-nor core, spinand core,
      etc. take care of polling the busy bit on their own.
      Signed-off-by: NApurva Nandan <a-nandan@ti.com>
      Link: https://lore.kernel.org/r/20210713125743.1540-2-a-nandan@ti.comSigned-off-by: NMark Brown <broonie@kernel.org>
      9cb2ff11
  10. 16 7月, 2021 3 次提交
  11. 11 3月, 2021 1 次提交
  12. 10 3月, 2021 2 次提交
  13. 11 2月, 2021 1 次提交
  14. 13 1月, 2021 3 次提交
  15. 12 1月, 2021 1 次提交
    • P
      spi: cadence-quadspi: Fix build warning on 32-bit platforms · 2ef0170e
      Pratyush Yadav 提交于
      The kernel test robot reports the following warning.
      
      drivers/spi/spi-cadence-quadspi.c:966:24: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (500UL) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
                                                  msecs_to_jiffies(max(len, 500UL)))) {
                                                                   ^~~~~~~~~~~~~~~
         include/linux/minmax.h:58:19: note: expanded from macro 'max'
         #define max(x, y)       __careful_cmp(x, y, >)
                                 ^~~~~~~~~~~~~~~~~~~~~~
         include/linux/minmax.h:42:24: note: expanded from macro '__careful_cmp'
                 __builtin_choose_expr(__safe_cmp(x, y), \
                                       ^~~~~~~~~~~~~~~~
         include/linux/minmax.h:32:4: note: expanded from macro '__safe_cmp'
                         (__typecheck(x, y) && __no_side_effects(x, y))
                          ^~~~~~~~~~~~~~~~~
         include/linux/minmax.h:18:28: note: expanded from macro '__typecheck'
                 (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                            ~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~
         1 warning generated.
      
      This happens because size_t is unsigned long on 64-bit platforms like
      arm64 but it is unsigned int on 32-bit platforms like arm. Omitting the
      "UL" would result in a warning on 64-bit platforms. Squash it by type
      casting the arguments to size_t using max_t(). This way builds on both
      type of platforms can be satisfied. There is no chance of any truncation
      since 500 is small enough to fit into both int and long.
      
      Fixes: f453f293 ("spi: cadence-quadspi: Wait at least 500 ms for direct reads")
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NPratyush Yadav <p.yadav@ti.com>
      Link: https://lore.kernel.org/r/20210108181457.30291-1-p.yadav@ti.comSigned-off-by: NMark Brown <broonie@kernel.org>
      2ef0170e
  16. 08 1月, 2021 1 次提交
    • Y
      spi: Fix distinct pointer types warning for ARCH=mips · 8728a81b
      Yanteng Si 提交于
      Fix a new warning report by build for make ARCH=MIPS allmodconfig:
      
      drivers/spi/spi-cadence-quadspi.c: In function 'cqspi_direct_read_execute':
       ./include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
          18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
             |                            ^~
       ./include/linux/minmax.h:32:4: note: in expansion of macro '__typecheck'
          32 |   (__typecheck(x, y) && __no_side_effects(x, y))
             |    ^~~~~~~~~~~
       ./include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
          42 |  __builtin_choose_expr(__safe_cmp(x, y), \
             |                        ^~~~~~~~~~
       ./include/linux/minmax.h:58:19: note: in expansion of macro '__careful_cmp'
          58 | #define max(x, y) __careful_cmp(x, y, >)
             |                   ^~~~~~~~~~~~~
       drivers/spi/spi-cadence-quadspi.c:1153:24: note: in expansion of macro 'max'
        1153 |       msecs_to_jiffies(max(len, 500UL)))) {
             |                        ^~~
      
      "len" is unsigned,however,"500" is unsigned long.
      Signed-off-by: NYanteng Si <siyanteng@loongson.cn>
      Link: https://lore.kernel.org/r/20210107115704.3835282-1-siyanteng@loongson.cnSigned-off-by: NMark Brown <broonie@kernel.org>
      8728a81b
  17. 06 1月, 2021 7 次提交
  18. 17 11月, 2020 1 次提交
  19. 09 9月, 2020 1 次提交
  20. 08 9月, 2020 1 次提交
  21. 26 8月, 2020 1 次提交
  22. 19 6月, 2020 4 次提交