1. 12 May, 2022 1 commit
    • Vaishnav Achath's avatar
      spi: cadence-quadspi: Handle spi_unregister_master() in remove() · 606e5d40
      Vaishnav Achath authored
      Currently devres managed removal of the spi_controller happens after
      removing the power domain of the host platform_device.While this
      does not affect the clean removal of the controller, but affects
      graceful removal of the child devices if the child  device removal
      requires issuing commands over SPI.
      
      Eg. flash device being soft reset to 1S-1S-1S mode before removal
      so that on next probe operations in 1S-1S-1S mode is successful.
      
      Failure is seen when `rmmod spi-cadence-quadspi` is performed:
      
      root@j7-evm:~# rmmod spi_cadence_quadspi
      [ 49.230996] cadence-qspi 47050000.spi: QSPI is still busy after 500ms timeout.
      [ 49.238209] spi-nor spi1.0: operation failed with -110
      [ 49.244457] spi-nor spi1.0: Software reset failed: -110
      
      and on subsequent modprobe the OSPI flash probe fails as it
      is in 8D-8D-8D mode since the previous soft reset did not happen.
      
      root@j7-evm:~# modprobe spi_cadence_quadspi
      [ 73.253536] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
      [ 73.260476] spi-nor: probe of spi0.0 failed with error -2
      
      This commit adds necessary changes to perform spi_unregister_master()
      in the host device remove() so that the child devices are gracefully
      removed before the power domain is removed.
      
      changes tested on J721E with mt35xu512aba flash.
      Signed-off-by: default avatarVaishnav Achath <vaishnav.a@ti.com>
      Link: https://lore.kernel.org/r/20220511115516.14894-1-vaishnav.a@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      606e5d40
  2. 11 May, 2022 4 commits
  3. 10 May, 2022 2 commits
  4. 09 May, 2022 10 commits
  5. 04 May, 2022 1 commit
    • Andrea Zanotti's avatar
      spi: omap2-mcspi: add support for interword delay · 2cd757e6
      Andrea Zanotti authored
      The module omap2-mcspi does not support the interword delay
      parameter present in the spi transfer. On one side, if the module
      is instructed to use the dma, this parameter is correctly ignored.
      However, without the usage of the dma, that parameter should be
      used.
      
      The patch introduce the handling of such delay in the omap2-mcspi
      module, using standard spi_delay struct. The patch has been tested
      using as benchmark a DM3730.
      
      The delay function used (spi_delay_exec) is already present in the
      kernel and it checks on its own the validity of the input, as such,
      no additional checks are present.
      
      The range of usage of the udelay function is incremented to 200 us,
      as the change from udelay to usleep_range introduces not
      neglectible delays.
      Signed-off-by: default avatarAndrea Zanotti <andreazanottifo@gmail.com>
      Link: https://lore.kernel.org/r/20220502111300.24754-1-andreazanottifo@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      2cd757e6
  6. 03 May, 2022 3 commits
  7. 27 Apr, 2022 5 commits
  8. 25 Apr, 2022 14 commits