1. 11 May, 2018 3 commits
  2. 10 May, 2018 1 commit
  3. 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
  4. 03 May, 2018 4 commits
  5. 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
  6. 27 Apr, 2018 1 commit
  7. 26 Apr, 2018 2 commits
  8. 25 Apr, 2018 1 commit
  9. 23 Apr, 2018 2 commits
  10. 20 Apr, 2018 1 commit
  11. 19 Apr, 2018 1 commit
  12. 18 Apr, 2018 6 commits
  13. 17 Apr, 2018 10 commits
  14. 16 Apr, 2018 1 commit
  15. 13 Apr, 2018 1 commit
  16. 12 Apr, 2018 2 commits
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · e241e3f2
      Linus Torvalds authored
      Pull virtio update from Michael Tsirkin:
       "This adds reporting hugepage stats to virtio-balloon"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        virtio_balloon: export hugetlb page allocation counts
      e241e3f2
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · e5c37228
      Linus Torvalds authored
      Pull IOMMU updates from Joerg Roedel:
      
       - OF_IOMMU support for the Rockchip iommu driver so that it can use
         generic DT bindings
      
       - rework of locking in the AMD IOMMU interrupt remapping code to make
         it work better in RT kernels
      
       - support for improved iotlb flushing in the AMD IOMMU driver
      
       - support for 52-bit physical and virtual addressing in the ARM-SMMU
      
       - various other small fixes and cleanups
      
      * tag 'iommu-updates-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (53 commits)
        iommu/io-pgtable-arm: Avoid warning with 32-bit phys_addr_t
        iommu/rockchip: Support sharing IOMMU between masters
        iommu/rockchip: Add runtime PM support
        iommu/rockchip: Fix error handling in init
        iommu/rockchip: Use OF_IOMMU to attach devices automatically
        iommu/rockchip: Use IOMMU device for dma mapping operations
        dt-bindings: iommu/rockchip: Add clock property
        iommu/rockchip: Control clocks needed to access the IOMMU
        iommu/rockchip: Fix TLB flush of secondary IOMMUs
        iommu/rockchip: Use iopoll helpers to wait for hardware
        iommu/rockchip: Fix error handling in attach
        iommu/rockchip: Request irqs in rk_iommu_probe()
        iommu/rockchip: Fix error handling in probe
        iommu/rockchip: Prohibit unbind and remove
        iommu/amd: Return proper error code in irq_remapping_alloc()
        iommu/amd: Make amd_iommu_devtable_lock a spin_lock
        iommu/amd: Drop the lock while allocating new irq remap table
        iommu/amd: Factor out setting the remap table for a devid
        iommu/amd: Use `table' instead `irt' as variable name in amd_iommu_update_ga()
        iommu/amd: Remove the special case from alloc_irq_table()
        ...
      e5c37228