1. 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
  2. 16 7月, 2021 3 次提交
  3. 14 7月, 2021 1 次提交
  4. 12 7月, 2021 2 次提交
  5. 08 7月, 2021 1 次提交
  6. 07 7月, 2021 1 次提交
  7. 30 6月, 2021 1 次提交
  8. 25 6月, 2021 3 次提交
  9. 23 6月, 2021 9 次提交
  10. 22 6月, 2021 2 次提交
  11. 17 6月, 2021 2 次提交
  12. 15 6月, 2021 2 次提交
  13. 14 6月, 2021 3 次提交
  14. 09 6月, 2021 1 次提交
  15. 07 6月, 2021 1 次提交
  16. 04 6月, 2021 2 次提交
    • P
      spi: stm32-qspi: Fix W=1 build warning · 6829222b
      Patrice Chotard 提交于
      Fix the following compilation warning using W=1 build:
      arm-linux-gnueabi-ld: drivers/spi/spi-stm32-qspi.o: in function `stm32_qspi_poll_status':
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NPatrice Chotard <patrice.chotard@foss.st.com>
      Link: https://lore.kernel.org/r/20210604075009.25914-1-patrice.chotard@foss.st.comSigned-off-by: NMark Brown <broonie@kernel.org>
      6829222b
    • M
      Merge series "MTD: spinand: Add spi_mem_poll_status() support" from <patrice.chotard@foss.st.com> · 627bad89
      Mark Brown 提交于
      Patrice Chotard <patrice.chotard@foss.st.com>:
      
      From: Patrice Chotard <patrice.chotard@foss.st.com>
      
      This series adds support for the spi_mem_poll_status() spinand
      interface.
      Some QSPI controllers allows to poll automatically memory
      status during operations (erase, read or write). This allows to
      offload the CPU for this task.
      STM32 QSPI is supporting this feature, driver update are also
      part of this series.
      
      Changes in v5:
        - Update spi_mem_read_status() description.
        - Update poll_status() description API by indicating that data buffer is
          filled with last status value.
        - Update timeout parameter by timeout_ms in spi_mem_poll_status() prototype.
        - Remove parenthesys arount -EINVAL in spi_mem_poll_status().
        - Add missing spi_mem_supports_op() call in stm32_qspi_poll_status().
        - Add Boris Reviewed-by for patch 1 and 2.
      
      Changes in v4:
        - Remove init_completion() from spi_mem_probe() added in v2.
        - Add missing static for spi_mem_read_status().
        - Check if operation in spi_mem_poll_status() is a READ.
        - Update patch 2 commit message.
        - Add comment which explains how delays has been calculated.
        - Rename SPINAND_STATUS_TIMEOUT_MS to SPINAND_WAITRDY_TIMEOUT_MS.
      
      Chnages in v3:
        - Add spi_mem_read_status() which allows to read 8 or 16 bits status.
        - Add initial_delay_us and polling_delay_us parameters to spi_mem_poll_status().
          and also to poll_status() callback.
        - Move spi_mem_supports_op() in SW-based polling case.
        - Add delay before invoquing read_poll_timeout().
        - Remove the reinit/wait_for_completion() added in v2.
        - Add initial_delay_us and polling_delay_us parameters to spinand_wait().
        - Add SPINAND_READ/WRITE/ERASE/RESET_INITIAL_DELAY_US and
          SPINAND_READ/WRITE/ERASE/RESET_POLL_DELAY_US defines.
        - Remove spi_mem_finalize_op() API added in v2.
      
      Changes in v2:
        - Indicates the spi_mem_poll_status() timeout unit
        - Use 2-byte wide status register
        - Add spi_mem_supports_op() call in spi_mem_poll_status()
        - Add completion management in spi_mem_poll_status()
        - Add offload/non-offload case management in spi_mem_poll_status()
        - Optimize the non-offload case by using read_poll_timeout()
        - mask and match stm32_qspi_poll_status()'s parameters are 2-byte wide
        - Make usage of new spi_mem_finalize_op() API in
          stm32_qspi_wait_poll_status()
      
      Patrice Chotard (3):
        spi: spi-mem: add automatic poll status functions
        mtd: spinand: use the spi-mem poll status APIs
        spi: stm32-qspi: add automatic poll status feature
      
       drivers/mtd/nand/spi/core.c  | 45 +++++++++++++------
       drivers/spi/spi-mem.c        | 86 ++++++++++++++++++++++++++++++++++++
       drivers/spi/spi-stm32-qspi.c | 86 ++++++++++++++++++++++++++++++++----
       include/linux/mtd/spinand.h  | 22 +++++++++
       include/linux/spi/spi-mem.h  | 16 +++++++
       5 files changed, 234 insertions(+), 21 deletions(-)
      
      base-commit: 6efb943b
      
      --
      2.17.1
      
      _______________________________________________
      linux-arm-kernel mailing list
      linux-arm-kernel@lists.infradead.org
      http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
      627bad89
  17. 03 6月, 2021 5 次提交