1. 20 Apr, 2020 1 commit
  2. 14 Apr, 2020 5 commits
    • Mark Brown's avatar
      Merge series "Add support for Kontron sl28cpld" from Michael Walle <michael@walle.cc>: · 3ada1b17
      Mark Brown authored
      The Kontron sl28cpld is a board management chip providing gpio, pwm, fan
      monitoring and an interrupt controller. For now this controller is used on
      the Kontron SMARC-sAL28 board. But because of its flexible nature, it
      might also be used on other boards in the future. The individual blocks
      (like gpio, pwm, etc) are kept intentionally small. The MFD core driver
      then instantiates different (or multiple of the same) blocks. It also
      provides the register layout so it might be updated in the future without a
      device tree change; and support other boards with a different layout or
      functionalities.
      
      See also [1] for more information.
      
      This is my first take of a MFD driver. I don't know whether the subsystem
      maintainers should only be CCed on the patches which affect the subsystem
      or on all patches for this series. I've chosen the latter so you can get a
      more complete picture.
      
      [1] https://lore.kernel.org/linux-devicetree/0e3e8204ab992d75aa07fc36af7e4ab2@walle.cc/
      
      Changes since v1:
       - use of_match_table in all drivers, needed for automatic module loading,
         when using OF_MFD_CELL()
       - add new gpio-regmap.c which adds a generic regmap gpio_chip implemention
       - new patch for reqmap_irq, so we can reuse its implementation
       - remove almost any code from gpio-sl28cpld.c, instead use gpio-regmap and
         regmap-irq
       - change the handling of the mfd core vs device tree nodes; add a new
         property "of_reg" to the mfd_cell struct which, when set, is matched to
         the unit-address of the device tree nodes.
       - fix sl28cpld watchdog when it is not initialized by the bootloader.
         Explicitly set the operation mode.
       - also add support for kontron,assert-wdt-timeout-pin in sl28cpld-wdt.
      
      As suggested by Bartosz Golaszewski:
       - define registers as hex
       - make gpio enum uppercase
       - move parent regmap check before memory allocation
       - use device_property_read_bool() instead of the of_ version
       - mention the gpio flavors in the bindings documentation
      
      As suggested by Guenter Roeck:
       - cleanup #includes and sort them
       - use devm_watchdog_register_device()
       - use watchdog_stop_on_reboot()
       - provide a Documentation/hwmon/sl28cpld.rst
       - cleaned up the weird tristate->bool and I2C=y issue. Instead mention
         that the MFD driver is bool because of the following intc patch
       - removed the SL28CPLD_IRQ typo
      
      As suggested by Rob Herring:
       - combine all dt bindings docs into one patch
       - change the node name for all gpio flavors to "gpio"
       - removed the interrupts-extended rule
       - cleaned up the unit-address space, see above
      
      Michael Walle (16):
        include/linux/ioport.h: add helper to define REG resource constructs
        mfd: mfd-core: Don't overwrite the dma_mask of the child device
        mfd: mfd-core: match device tree node against reg property
        regmap-irq: make it possible to add irq_chip do a specific device node
        dt-bindings: mfd: Add bindings for sl28cpld
        mfd: Add support for Kontron sl28cpld management controller
        irqchip: add sl28cpld interrupt controller support
        watchdog: add support for sl28cpld watchdog
        pwm: add support for sl28cpld PWM controller
        gpio: add a reusable generic gpio_chip using regmap
        gpio: add support for the sl28cpld GPIO controller
        hwmon: add support for the sl28cpld hardware monitoring controller
        arm64: dts: freescale: sl28: enable sl28cpld
        arm64: dts: freescale: sl28: map GPIOs to input events
        arm64: dts: freescale: sl28: enable LED support
        arm64: dts: freescale: sl28: enable fan support
      
       .../bindings/gpio/kontron,sl28cpld-gpio.yaml  |  51 +++
       .../hwmon/kontron,sl28cpld-hwmon.yaml         |  27 ++
       .../bindings/mfd/kontron,sl28cpld.yaml        | 162 +++++++++
       .../bindings/pwm/kontron,sl28cpld-pwm.yaml    |  35 ++
       .../watchdog/kontron,sl28cpld-wdt.yaml        |  35 ++
       Documentation/hwmon/sl28cpld.rst              |  36 ++
       .../fsl-ls1028a-kontron-kbox-a-230-ls.dts     |  14 +
       .../fsl-ls1028a-kontron-sl28-var3-ads2.dts    |   9 +
       .../freescale/fsl-ls1028a-kontron-sl28.dts    | 124 +++++++
       drivers/base/regmap/regmap-irq.c              |  84 ++++-
       drivers/gpio/Kconfig                          |  15 +
       drivers/gpio/Makefile                         |   2 +
       drivers/gpio/gpio-regmap.c                    | 321 ++++++++++++++++++
       drivers/gpio/gpio-sl28cpld.c                  | 187 ++++++++++
       drivers/hwmon/Kconfig                         |  10 +
       drivers/hwmon/Makefile                        |   1 +
       drivers/hwmon/sl28cpld-hwmon.c                | 152 +++++++++
       drivers/irqchip/Kconfig                       |   3 +
       drivers/irqchip/Makefile                      |   1 +
       drivers/irqchip/irq-sl28cpld.c                |  99 ++++++
       drivers/mfd/Kconfig                           |  21 ++
       drivers/mfd/Makefile                          |   2 +
       drivers/mfd/mfd-core.c                        |  31 +-
       drivers/mfd/sl28cpld.c                        | 154 +++++++++
       drivers/pwm/Kconfig                           |  10 +
       drivers/pwm/Makefile                          |   1 +
       drivers/pwm/pwm-sl28cpld.c                    | 204 +++++++++++
       drivers/watchdog/Kconfig                      |  11 +
       drivers/watchdog/Makefile                     |   1 +
       drivers/watchdog/sl28cpld_wdt.c               | 242 +++++++++++++
       include/linux/gpio-regmap.h                   |  88 +++++
       include/linux/ioport.h                        |   5 +
       include/linux/mfd/core.h                      |  26 +-
       include/linux/regmap.h                        |  10 +
       34 files changed, 2142 insertions(+), 32 deletions(-)
       create mode 100644 Documentation/devicetree/bindings/gpio/kontron,sl28cpld-gpio.yaml
       create mode 100644 Documentation/devicetree/bindings/hwmon/kontron,sl28cpld-hwmon.yaml
       create mode 100644 Documentation/devicetree/bindings/mfd/kontron,sl28cpld.yaml
       create mode 100644 Documentation/devicetree/bindings/pwm/kontron,sl28cpld-pwm.yaml
       create mode 100644 Documentation/devicetree/bindings/watchdog/kontron,sl28cpld-wdt.yaml
       create mode 100644 Documentation/hwmon/sl28cpld.rst
       create mode 100644 drivers/gpio/gpio-regmap.c
       create mode 100644 drivers/gpio/gpio-sl28cpld.c
       create mode 100644 drivers/hwmon/sl28cpld-hwmon.c
       create mode 100644 drivers/irqchip/irq-sl28cpld.c
       create mode 100644 drivers/mfd/sl28cpld.c
       create mode 100644 drivers/pwm/pwm-sl28cpld.c
       create mode 100644 drivers/watchdog/sl28cpld_wdt.c
       create mode 100644 include/linux/gpio-regmap.h
      
      --
      2.20.1
      
      _______________________________________________
      linux-arm-kernel mailing list
      linux-arm-kernel@lists.infradead.org
      http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
      3ada1b17
    • Mark Brown's avatar
      Merge series "Add new reg_update_bits() support" from Baolin Wang <baolin.wang7@gmail.com>: · 44753373
      Mark Brown authored
      The Spreadtrum platform uses a special set/clear method to update
      registers' bits, thus this patch set registers a physical regmap
      bus into syscon core to support this feature instead of using the
      MMIO bus, which is not a physical regmap bus.
      
      Any comments are welcome. Thanks.
      
      Changes from RFC v1:
       - Add new helper to registers a physical regmap bus instead of
       using the MMIO bus.
      
      Baolin Wang (3):
        mfd: syscon: Support physical regmap bus
        regmap: Add bus reg_update_bits() support
        soc: sprd: Add Spreadtrum special bits updating support
      
       drivers/base/regmap/regmap.c   |  1 +
       drivers/mfd/syscon.c           | 16 ++++++-
       drivers/soc/Kconfig            |  1 +
       drivers/soc/Makefile           |  1 +
       drivers/soc/sprd/Kconfig       | 16 +++++++
       drivers/soc/sprd/Makefile      |  2 +
       drivers/soc/sprd/sprd_syscon.c | 76 ++++++++++++++++++++++++++++++++++
       include/linux/mfd/syscon.h     |  7 ++++
       8 files changed, 118 insertions(+), 2 deletions(-)
       create mode 100644 drivers/soc/sprd/Kconfig
       create mode 100644 drivers/soc/sprd/Makefile
       create mode 100644 drivers/soc/sprd/sprd_syscon.c
      
      --
      2.17.1
      44753373
    • Marco Felsch's avatar
      regmap: add reg_sequence helpers · bd3ddb49
      Marco Felsch authored
      Add helper to make it easier to define a reg_sequence array.
      Signed-off-by: default avatarMarco Felsch <m.felsch@pengutronix.de>
      Link: https://lore.kernel.org/r/20200402084111.30123-1-m.felsch@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      bd3ddb49
    • Michael Walle's avatar
      regmap-irq: make it possible to add irq_chip do a specific device node · 12479382
      Michael Walle authored
      Add a new function regmap_add_irq_chip_np() with its corresponding
      devm_regmap_add_irq_chip_np() variant. Sometimes one want to register
      the IRQ domain on a different device node that the one of the regmap
      node. For example when using a MFD where there are different interrupt
      controllers and particularly for the generic regmap gpio_chip/irq_chip
      driver. In this case it is not desireable to have the IRQ domain on
      the parent node.
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Link: https://lore.kernel.org/r/20200402203656.27047-5-michael@walle.ccSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      12479382
    • Baolin Wang's avatar
      regmap: Add bus reg_update_bits() support · 80215f13
      Baolin Wang authored
      Add reg_update_bits() support in case some platforms use a special method
      to update bits of registers.
      Signed-off-by: default avatarBaolin Wang <baolin.wang7@gmail.com>
      Link: https://lore.kernel.org/r/df32fd0529957d1e7e26ba1465723f16cfbe92c8.1586757922.git.baolin.wang7@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      80215f13
  3. 12 Apr, 2020 10 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc1 · 8f3d9f35
      Linus Torvalds authored
      8f3d9f35
    • Linus Torvalds's avatar
      MAINTAINERS: sort field names for all entries · 3b50142d
      Linus Torvalds authored
      This sorts the actual field names too, potentially causing even more
      chaos and confusion at merge time if you have edited the MAINTAINERS
      file.  But the end result is a more consistent layout, and hopefully
      it's a one-time pain minimized by doing this just before the -rc1
      release.
      
      This was entirely scripted:
      
        ./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3b50142d
    • Linus Torvalds's avatar
      MAINTAINERS: sort entries by entry name · 4400b7d6
      Linus Torvalds authored
      They are all supposed to be sorted, but people who add new entries don't
      always know the alphabet.  Plus sometimes the entry names get edited,
      and people don't then re-order the entry.
      
      Let's see how painful this will be for merging purposes (the MAINTAINERS
      file is often edited in various different trees), but Joe claims there's
      relatively few patches in -next that touch this, and doing it just
      before -rc1 is likely the best time.  Fingers crossed.
      
      This was scripted with
      
        /scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS
      
      but then I also ended up manually upper-casing a few entry names that
      stood out when looking at the end result.
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4400b7d6
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4f8a3cc1
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of three patches to fix the fallout of the newly added split
        lock detection feature.
      
        It addressed the case where a KVM guest triggers a split lock #AC and
        KVM reinjects it into the guest which is not prepared to handle it.
      
        Add proper sanity checks which prevent the unconditional injection
        into the guest and handles the #AC on the host side in the same way as
        user space detections are handled. Depending on the detection mode it
        either warns and disables detection for the task or kills the task if
        the mode is set to fatal"
      
      * tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        KVM: VMX: Extend VMXs #AC interceptor to handle split lock #AC in guest
        KVM: x86: Emulate split-lock access as a write in emulator
        x86/split_lock: Provide handle_guest_split_lock()
      4f8a3cc1
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0785249f
      Linus Torvalds authored
      Pull time(keeping) updates from Thomas Gleixner:
      
       - Fix the time_for_children symlink in /proc/$PID/ so it properly
         reflects that it part of the 'time' namespace
      
       - Add the missing userns limit for the allowed number of time
         namespaces, which was half defined but the actual array member was
         not added. This went unnoticed as the array has an exessive empty
         member at the end but introduced a user visible regression as the
         output was corrupted.
      
       - Prevent further silent ucount corruption by adding a BUILD_BUG_ON()
         to catch half updated data.
      
      * tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ucount: Make sure ucounts in /proc/sys/user don't regress again
        time/namespace: Add max_time_namespaces ucount
        time/namespace: Fix time_for_children symlink
      0785249f
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 590680d1
      Linus Torvalds authored
      Pull scheduler fixes/updates from Thomas Gleixner:
      
       - Deduplicate the average computations in the scheduler core and the
         fair class code.
      
       - Fix a raise between runtime distribution and assignement which can
         cause exceeding the quota by up to 70%.
      
       - Prevent negative results in the imbalanace calculation
      
       - Remove a stale warning in the workqueue code which can be triggered
         since the call site was moved out of preempt disabled code. It's a
         false positive.
      
       - Deduplicate the print macros for procfs
      
       - Add the ucmap values to the SCHED_DEBUG procfs output for completness
      
      * tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/debug: Add task uclamp values to SCHED_DEBUG procfs
        sched/debug: Factor out printing formats into common macros
        sched/debug: Remove redundant macro define
        sched/core: Remove unused rq::last_load_update_tick
        workqueue: Remove the warning in wq_worker_sleeping()
        sched/fair: Fix negative imbalance in imbalance calculation
        sched/fair: Fix race between runtime distribution and assignment
        sched/fair: Align rq->avg_idle and rq->avg_scan_cost
      590680d1
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 20e2aa81
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Three fixes/updates for perf:
      
         - Fix the perf event cgroup tracking which tries to track the cgroup
           even for disabled events.
      
         - Add Ice Lake server support for uncore events
      
         - Disable pagefaults when retrieving the physical address in the
           sampling code"
      
      * tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Disable page faults when getting phys address
        perf/x86/intel/uncore: Add Ice Lake server uncore support
        perf/cgroup: Correct indirection in perf_less_group_idx()
        perf/core: Fix event cgroup tracking
      20e2aa81
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 652fa53c
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Three small fixes/updates for the locking core code:
      
         - Plug a task struct reference leak in the percpu rswem
           implementation.
      
         - Document the refcount interaction with PID_MAX_LIMIT
      
         - Improve the 'invalid wait context' data dump in lockdep so it
           contains all information which is required to decode the problem"
      
      * tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Improve 'invalid wait context' splat
        locking/refcount: Document interaction with PID_MAX_LIMIT
        locking/percpu-rwsem: Fix a task_struct refcount
      652fa53c
    • Linus Torvalds's avatar
      Merge tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · 4119bf9f
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Ten cifs/smb fixes:
      
         - five RDMA (smbdirect) related fixes
      
         - add experimental support for swap over SMB3 mounts
      
         - also a fix which improves performance of signed connections"
      
      * tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: enable swap on SMB3 mounts
        smb3: change noisy error message to FYI
        smb3: smbdirect support can be configured by default
        cifs: smbd: Do not schedule work to send immediate packet on every receive
        cifs: smbd: Properly process errors on ib_post_send
        cifs: Allocate crypto structures on the fly for calculating signatures of incoming packets
        cifs: smbd: Update receive credits before sending and deal with credits roll back on failure before sending
        cifs: smbd: Check send queue size before posting a send
        cifs: smbd: Merge code to track pending packets
        cifs: ignore cached share root handle closing errors
      4119bf9f
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 50bda5fa
      Linus Torvalds authored
      Pull NFS client bugfix from Trond Myklebust:
       "Fix an RCU read lock leakage in pnfs_alloc_ds_commits_list()"
      
      * tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        pNFS: Fix RCU lock leakage
      50bda5fa
  4. 11 Apr, 2020 14 commits
  5. 10 Apr, 2020 10 commits