1. 20 May, 2024 2 commits
    • Matti Vaittinen's avatar
      regulator: tps6287x: Force writing VSEL bit · 1ace99d7
      Matti Vaittinen authored
      The data-sheet for TPS6287x-Q1
      https://www.ti.com/lit/ds/symlink/tps62873-q1.pdf
      states at chapter 9.3.6.1 Output Voltage Range:
      
      "Note that every change to the VRANGE[1:0] bits must be followed by a
      write to the VSET register, even if the value of the VSET[7:0] bits does
      not change."
      
      The current implementation of the driver uses the
      regulator_set_voltage_sel_pickable_regmap() helper which further uses
      regmap_update_bits() to write the VSET-register. The
      regmap_update_bits() will not access the hardware if the new register
      value is same as old. It is worth noting that this is true also when the
      register is marked volatile, which I can't say is wrong because
      'read-mnodify-write'-cycle with a volatile register is in any case
      something user should carefully consider.
      
      The 'range_applied_by_vsel'-flag in regulator desc was added to force
      the vsel register upodates by using regmap_write_bits(). This variant
      will always unconditionally write the bits to the hardware.
      
      It is worth noting that the vsel is now forced to be written to the
      hardware, whether the range was changed or not. This may cause a
      performance drop if users are wrtiting same voltage value repeteadly.
      
      It would be possible to read the range register to determine if it was
      changed, but this would be a performance issue for users who don't use
      reg cache for vsel.
      
      Always write the VSET register to the hardware regardless the cache.
      Signed-off-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
      Fixes: 7b0518fb ("regulator: Add support for TI TPS6287x regulators")
      Link: https://msgid.link/r/ZktD50C5twF1EuKu@fedoraSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      1ace99d7
    • Matti Vaittinen's avatar
      regulator: pickable ranges: don't always cache vsel · f4f4276f
      Matti Vaittinen authored
      Some PMICs treat the vsel_reg same as apply-bit. Eg, when voltage range
      is changed, the new voltage setting is not taking effect until the vsel
      register is written.
      
      Add a flag 'range_applied_by_vsel' to the regulator desc to indicate this
      behaviour and to force the vsel value to be written to hardware if range
      was changed, even if the old selector was same as the new one.
      Signed-off-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
      Link: https://msgid.link/r/ZktCpcGZdgHWuN_L@fedoraSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      f4f4276f
  2. 16 May, 2024 2 commits
  3. 09 May, 2024 2 commits
  4. 07 May, 2024 6 commits
  5. 06 May, 2024 1 commit
    • Mark Brown's avatar
      regulator: new API for voltage reference supplies · 48b6faae
      Mark Brown authored
      Merge series from David Lechner <dlechner@baylibre.com>:
      
      In the IIO subsystem, we noticed a pattern in many drivers where we need
      to get, enable and get the voltage of a supply that provides a reference
      voltage. In these cases, we only need the voltage and not a handle to
      the regulator. Another common pattern is for chips to have an internal
      reference voltage that is used when an external reference is not
      available. There are also a few drivers outside of IIO that do the same.
      
      So we would like to propose a new regulator consumer API to handle these
      specific cases to avoid repeating the same boilerplate code in multiple
      drivers.
      
      As an example of how these functions are used, I have included a few
      patches to consumer drivers. But to avoid a giant patch bomb, I have
      omitted the iio/adc and iio/dac patches I have prepared from this
      series. I will send those separately but these will add 36 more users
      of devm_regulator_get_enable_read_voltage() in addition to the 6 here.
      In total, this will eliminate nearly 1000 lines of similar code and will
      simplify writing and reviewing new drivers in the future.
      48b6faae
  6. 03 May, 2024 3 commits
  7. 01 May, 2024 1 commit
  8. 29 Apr, 2024 1 commit
  9. 07 Apr, 2024 4 commits
  10. 06 Apr, 2024 13 commits
  11. 05 Apr, 2024 5 commits
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.9-20240405' of git://git.kernel.dk/linux · 4f72ed49
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Backport of some fixes that came up during development of the 6.10
         io_uring patches. This includes some kbuf cleanups and reference
         fixes.
      
       - Disable multishot read if we don't have NOWAIT support on the target
      
       - Fix for a dependency issue with workqueue flushing
      
      * tag 'io_uring-6.9-20240405' of git://git.kernel.dk/linux:
        io_uring/kbuf: hold io_buffer_list reference over mmap
        io_uring/kbuf: protect io_buffer_list teardown with a reference
        io_uring/kbuf: get rid of bl->is_ready
        io_uring/kbuf: get rid of lower BGID lists
        io_uring: use private workqueue for exit work
        io_uring: disable io-wq execution of multishot NOWAIT requests
        io_uring/rw: don't allow multishot reads without NOWAIT support
      4f72ed49
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 4de2ff26
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "The most important is the libsas fix, which is a problem for DMA to a
        kmalloc'd structure too small causing cache line interference. The
        other fixes (all in drivers) are mostly for allocation length fixes,
        error leg unwinding, suspend races and a missing retry"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: core: Fix MCQ mode dev command timeout
        scsi: libsas: Align SMP request allocation to ARCH_DMA_MINALIGN
        scsi: sd: Unregister device if device_add_disk() failed in sd_probe()
        scsi: ufs: core: WLUN suspend dev/link state error recovery
        scsi: mylex: Fix sysfs buffer lengths
      4de2ff26
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 84985eb2
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Fix NIOS2 boot with external DTB
      
       - Add missing synchronization needed between fw_devlink and DT overlay
         removals
      
       - Fix some unit-address regex's to be hex only
      
       - Drop some 10+ year old "unstable binding" statements
      
       - Add new SoCs to QCom UFS binding
      
       - Add TPM bindings to TPM maintainers
      
      * tag 'devicetree-fixes-for-6.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        nios2: Only use built-in devicetree blob if configured to do so
        dt-bindings: timer: narrow regex for unit address to hex numbers
        dt-bindings: soc: fsl: narrow regex for unit address to hex numbers
        dt-bindings: remoteproc: ti,davinci: remove unstable remark
        dt-bindings: clock: ti: remove unstable remark
        dt-bindings: clock: keystone: remove unstable remark
        of: module: prevent NULL pointer dereference in vsnprintf()
        dt-bindings: ufs: qcom: document SM6125 UFS
        dt-bindings: ufs: qcom: document SC7180 UFS
        dt-bindings: ufs: qcom: document SC8180X UFS
        of: dynamic: Synchronize of_changeset_destroy() with the devlink removals
        driver core: Introduce device_link_wait_removal()
        docs: dt-bindings: add missing address/size-cells to example
        MAINTAINERS: Add TPM DT bindings to TPM maintainers
      84985eb2
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-04-05-11-30' of... · af709adf
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-04-05-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "8 hotfixes, 3 are cc:stable
      
        There are a couple of fixups for this cycle's vmalloc changes and one
        for the stackdepot changes. And a fix for a very old x86 PAT issue
        which can cause a warning splat"
      
      * tag 'mm-hotfixes-stable-2024-04-05-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        stackdepot: rename pool_index to pool_index_plus_1
        x86/mm/pat: fix VM_PAT handling in COW mappings
        MAINTAINERS: change vmware.com addresses to broadcom.com
        selftests/mm: include strings.h for ffsl
        mm: vmalloc: fix lockdep warning
        mm: vmalloc: bail out early in find_vmap_area() if vmap is not init
        init: open output files from cpio unpacking with O_LARGEFILE
        mm/secretmem: fix GUP-fast succeeding on secretmem folios
      af709adf
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · c7830236
      Linus Torvalds authored
      Pull arm64 fix from Catalin Marinas:
       "arm64/ptrace fix to use the correct SVE layout based on the saved
        floating point state rather than the TIF_SVE flag. The latter may be
        left on during syscalls even if the SVE state is discarded"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64/ptrace: Use saved floating point state type to determine SVE layout
      c7830236