1. 21 May, 2018 2 commits
  2. 17 May, 2018 2 commits
  3. 13 May, 2018 1 commit
  4. 11 May, 2018 6 commits
  5. 10 May, 2018 1 commit
  6. 09 May, 2018 1 commit
    • Rafał Miłecki's avatar
      spi: remove the older/duplicated bcm53xx driver · 331bbcfc
      Rafał Miłecki authored
      This driver was added by commit 0fc6a323 ("spi: bcm53xx: driver for
      SPI controller on Broadcom bcma SoC") back in 2014. It was needed to
      provide a minimal support for SPI controller on BCM5301X (AKA Northstar)
      devices.
      
      An alternative driver was added by Kamal in commit fa236a7e ("spi:
      bcm-qspi: Add Broadcom MSPI driver") 2 years later. It supports the same
      hardware but for some reason a new driver has been developed for it.
      
      At this point the new driver supports: more modes, setting a speed,
      setting bits per word and uses IRQs instead of polling. DTS file for
      BCM5301X has also been updated in the commit 1c8f4065 ("ARM: dts:
      BCM5301X: convert to iProc QSPI") - over a year ago.
      
      That explained I see no reason to keep the old driver alive.
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      331bbcfc
  7. 03 May, 2018 4 commits
  8. 01 May, 2018 3 commits
    • Tony Lindgren's avatar
      spi: omap2-mcspi: Idle hardware during suspend and resume · 5a686b2c
      Tony Lindgren authored
      We currently are calling mcspi suspend and resume without considering
      that mcspi might provide resources for other device driver such as
      regulators. This means resume can fail and will produce -EACCES if
      errors if anything calls mcspi functions between device_prepare()
      and device_complete().
      
      To fix the issue, let's do the following changes:
      
      1. Let's add checking for return values for pm_runtime_get calls,
         and call pm_runtime_put_noidle() on errors. Things still fail
         after this change, but at least we see something is wrong as
         we now see -EACCES errors on resume.
      
      2. Let's use noirq level for suspend and resume as other drivers
         can still call SPI related functions on suspend and resume. This
         still won't fix the -EACCES issue, but gets us to something a bit
         saner.
      
      3. Finally, let's modify suspend and resume to call to make sure
         the device is idled properly on suspend. We have device_prepare()
         call pm_runtime_get_noresume() that won't get released until in
         device_complete() when it calls pm_runtime_put(). So if SPI is
         still active on entering suspend, it will never get idled unless
         we add calls to pm_runtime_force_suspend() and resume. This also
         fixes the -EACCES errors on resume together with changes 1 and 2
         above.
      
      And since we're already rewriting suspend resume functions, let's
      arrange the order of suspend and resume functions to be like they
      usually are with suspend first.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      5a686b2c
    • Tony Lindgren's avatar
      spi: omap2-mcspi: Restore context always in runtime_resume · 52e9a5bb
      Tony Lindgren authored
      We can have the SoC enter off mode also during idle, not just
      during suspend. Currently we are handling the CS restore properly
      for unused CS only for resume and not for runtime resume.
      
      Let's just move all the context related restore to runtime_resume().
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      52e9a5bb
    • Alexey Khoroshilov's avatar
      spi: meson-spicc: Fix error handling in meson_spicc_probe() · ded5fa4e
      Alexey Khoroshilov authored
      If devm_spi_register_master() fails in meson_spicc_probe(),
      spicc->core is left undisabled. The patch fixes that.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
      Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ded5fa4e
  9. 27 Apr, 2018 1 commit
  10. 26 Apr, 2018 2 commits
  11. 25 Apr, 2018 1 commit
  12. 23 Apr, 2018 2 commits
  13. 20 Apr, 2018 1 commit
  14. 19 Apr, 2018 1 commit
  15. 18 Apr, 2018 6 commits
  16. 17 Apr, 2018 6 commits