1. Aug 16, 2021
  2. Aug 06, 2021
  3. Aug 02, 2021
  4. Jul 28, 2021
  5. Jul 27, 2021
    • Marek Vasut's avatar
      spi: imx: mx51-ecspi: Fix low-speed CONFIGREG delay calculation · 53ca18ac
      Marek Vasut authored
      The spi_imx->spi_bus_clk may be uninitialized and thus also zero in
      mx51_ecspi_prepare_message(), which would lead to division by zero
      in kernel. Since bitbang .setup_transfer callback which initializes
      the spi_imx->spi_bus_clk is called after bitbang prepare_message
      callback, iterate over all the transfers in spi_message, find the
      one with lowest bus frequency, and use that bus frequency for the
      delay calculation.
      
      Note that it is not possible to move this CONFIGREG delay back into
      the .setup_transfer callback, because that is invoked too late, after
      the GPIO chipselects were already configured.
      
      Fixes: 135cbd37
      
       ("spi: imx: mx51-ecspi: Reinstate low-speed CONFIGREG delay")
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Mark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20210726100102.5188-1-marex@denx.de
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      53ca18ac
  6. Jul 22, 2021
  7. Jul 20, 2021
  8. Jul 19, 2021
    • Marek Vasut's avatar
      spi: cadence: Correct initialisation of runtime PM again · 56912da7
      Marek Vasut authored
      The original implementation of RPM handling in probe() was mostly
      correct, except it failed to call pm_runtime_get_*() to activate the
      hardware. The subsequent fix, 734882a8 ("spi: cadence: Correct
      initialisation of runtime PM"), breaks the implementation further,
      to the point where the system using this hard IP on ZynqMP hangs on
      boot, because it accesses hardware which is gated off.
      
      Undo 734882a8 ("spi: cadence: Correct initialisation of runtime
      PM") and instead add missing pm_runtime_get_noresume() and move the
      RPM disabling all the way to the end of probe(). That makes ZynqMP
      not hang on boot yet again.
      
      Fixes: 734882a8
      
       ("spi: cadence: Correct initialisation of runtime PM")
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Charles Keepax <ckeepax@opensource.cirrus.com>
      Cc: Mark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20210716182133.218640-1-marex@denx.de
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      56912da7
  9. Jul 17, 2021
    • Apurva Nandan's avatar
      spi: cadence-quadspi: Disable Auto-HW polling · 9cb2ff11
      Apurva Nandan authored
      
      
      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: default avatarApurva Nandan <a-nandan@ti.com>
      Link: https://lore.kernel.org/r/20210713125743.1540-2-a-nandan@ti.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      9cb2ff11
  10. Jul 16, 2021
  11. Jul 14, 2021
  12. Jul 12, 2021
  13. Jul 08, 2021
  14. Jul 07, 2021
  15. Jun 30, 2021
  16. Jun 25, 2021
  17. Jun 23, 2021
  18. Jun 22, 2021
  19. Jun 17, 2021
  20. Jun 15, 2021
  21. Jun 14, 2021