1. 30 Aug, 2021 11 commits
    • Linus Torvalds's avatar
      Merge tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · 4520dcbe
      Linus Torvalds authored
      Pull power supply and reset updates from Sebastian Reichel:
       "Battery/charger related:
         - cros-peripheral-charger: new driver
         - mt6360-charger: new driver
         - simple-battery: support reading chemistry info
         - max17042-battery: add max77849 support
         - sbs-battery: add time_to_empty_now support
         - smb347-charger: prepare USB OTG support
         - rn5t618: add voltage_now support
         - axp288: cleanup & optimizations
         - max17042_battery: cleanups
         - ab8500: cleanups
         - misc minor cleanups and DT binding fixes
      
        reset related:
         - tps65086-restart: new driver
         - linkstation-poweroff: support NETGEAR ReadyNAS Duo v2"
      
      * tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (51 commits)
        power: supply: core: Fix parsing of battery chemistry/technology
        power: supply: max17042_battery: log SOC threshold using debug log level
        power: supply: max17042_battery: more robust chip type checks
        power: supply: max17042_battery: fix typo in MAx17042_TOFF
        power: supply: max17042_battery: clean up MAX17055_V_empty
        power: supply: smb347-charger: Implement USB VBUS regulator
        power: supply: smb347-charger: Add missing pin control activation
        power: supply: smb347-charger: Utilize generic regmap caching
        power: supply: smb347-charger: Make smb347_set_writable() IRQ-safe
        dt-bindings: power: supply: smb347-charger: Document USB VBUS regulator
        power: reset: Add TPS65086 restart driver
        dt-bindings: power: supply: max17042: describe interrupt
        power: supply: max17042: remove duplicated STATUS bit defines
        power: supply: max17042: handle fails of reading status register
        power: supply: core: Parse battery chemistry/technology
        dt-bindings: power: Extend battery bindings with chemistry
        power: reset: linkstation-poweroff: add new device
        power: reset: linkstation-poweroff: prepare for new devices
        power: supply: bq24735: reorganize ChargeOption command macros
        power: supply: rn5t618: Add voltage_now property
        ...
      4520dcbe
    • Linus Torvalds's avatar
      Merge tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 0da9bc6d
      Linus Torvalds authored
      Pull spi updates from Mark Brown:
       "A quiet release for SPI, some fixes and a couple of new drivers plus
        one small refactoring:
      
         - Move the chip select timing configuration from the controller to
           the device to allow a bit more flexibility
      
         - New drivers for Rockchip SFC and Spreadtrum ADI"
      
      * tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (47 commits)
        spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible
        spi: add sprd ADI for sc9863 and ums512
        spi: Convert sprd ADI bindings to yaml
        spi: sprd: Add ADI r3 support
        spi: sprd: Fix the wrong WDG_LOAD_VAL
        spi: davinci: invoke chipselect callback
        spi: sprd: fill offset only to RD_CMD register for reading from slave device
        spi: sprd: Make sure offset not equal to slave address size
        spi: sprd: Pass offset instead of physical address to adi_read/_write()
        spi: rockchip-sfc: Fix assigned but never used return error codes
        spi: rockchip-sfc: Remove redundant IO operations
        spi: stm32: fix excluded_middle.cocci warnings
        spi: coldfire-qspi: Use clk_disable_unprepare in the remove function
        spi: tegra20-slink: remove spi_master_put() in tegra_slink_remove()
        spi: rockchip-sfc: add rockchip serial flash controller
        spi: rockchip-sfc: Bindings for Rockchip serial flash controller
        spi: orion: Prevent incorrect chip select behaviour
        spi: mxic: add missing braces
        spi: spi-pic32: Fix issue with uninitialized dma_slave_config
        spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config
        ...
      0da9bc6d
    • Linus Torvalds's avatar
      Merge tag 'regulator-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · d46e0d33
      Linus Torvalds authored
      Pull regulator updates from Mark Brown:
       "A very quiet releases, some fixes and cleanups but not really that
        many of them. There were a couple of new driver specific pieces:
      
         - Support for controlling the over/under voltage protection on
           BD718xx devices
      
         - New drivers for Richtek RTQ2134, and RTQ6752"
      
      * tag 'regulator-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (37 commits)
        regulator: vctrl: Avoid lockdep warning in enable/disable ops
        regulator: vctrl: Use locked regulator_get_voltage in probe path
        regulator: Documentation fix for regulator error notification helper
        regulator: Minor regulator documentation fixes.
        regulator: sy7636a: Use the regmap directly
        regulator: sy7636a: Store the epd-pwr-good GPIO locally
        regulator: sy7636a: Use the parent driver data
        regulator: sy7636a: Remove the poll_enable_time
        regulator: sy8827n: Enable REGCACHE_FLAT
        regulator: sy8824x: Enable REGCACHE_FLAT
        regulator: rtq2134: Fix coding style
        regulator: hi6421v600: rename voltage range arrays
        regulator: hi6421v600: use lowercase for ldo
        regulator: fixed: use dev_err_probe for register
        regulator: rtq2134: Add support for Richtek RTQ2134 SubPMIC
        regulator: rtq2134: Add binding document for Richtek RTQ2134 SubPMIC
        regulator: Fix a couple of spelling mistakes in Kconfig
        regulator: rtq6752: fix reg reset behavior
        regulator: da9063: Add support for full-current mode.
        regulator: rt6245: make a const array func_base static, makes object smaller
        ...
      d46e0d33
    • Linus Torvalds's avatar
      Merge tag 'regmap-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 4aed6ee5
      Linus Torvalds authored
      Pull regmap updates from Mark Brown:
       "A few small fixes for regmaps this time, plus support for allowing
        drivers to select raw spinlocks for the locks in order to allow usage
        in interrutpt controllers"
      
      * tag 'regmap-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: teach regmap to use raw spinlocks if requested in the config
        regmap: allow const array for {devm_,}regmap_field_bulk_alloc reg_fields
        regmap: Prefer unsigned int to bare use of unsigned
        regmap: fix the offset of register error log
      4aed6ee5
    • Linus Torvalds's avatar
      Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · aa99f3c2
      Linus Torvalds authored
      Pull fs hole punching vs cache filling race fixes from Jan Kara:
       "Fix races leading to possible data corruption or stale data exposure
        in multiple filesystems when hole punching races with operations such
        as readahead.
      
        This is the series I was sending for the last merge window but with
        your objection fixed - now filemap_fault() has been modified to take
        invalidate_lock only when we need to create new page in the page cache
        and / or bring it uptodate"
      
      * tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        filesystems/locking: fix Malformed table warning
        cifs: Fix race between hole punch and page fault
        ceph: Fix race between hole punch and page fault
        fuse: Convert to using invalidate_lock
        f2fs: Convert to using invalidate_lock
        zonefs: Convert to using invalidate_lock
        xfs: Convert double locking of MMAPLOCK to use VFS helpers
        xfs: Convert to use invalidate_lock
        xfs: Refactor xfs_isilocked()
        ext2: Convert to using invalidate_lock
        ext4: Convert to use mapping->invalidate_lock
        mm: Add functions to lock invalidate_lock for two mappings
        mm: Protect operations adding pages to page cache with invalidate_lock
        documentation: Sync file_operations members with reality
        mm: Fix comments mentioning i_mutex
      aa99f3c2
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · a1ca8e71
      Linus Torvalds authored
      Pull UDF and isofs updates from Jan Kara:
       "Several smaller fixes and cleanups in UDF and isofs"
      
      * tag 'fs_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        udf_get_extendedattr() had no boundary checks.
        isofs: joliet: Fix iocharset=utf8 mount option
        udf: Fix iocharset=utf8 mount option
        udf: Get rid of 0-length arrays in struct fileIdentDesc
        udf: Get rid of 0-length arrays
        udf: Remove unused declaration
        udf: Check LVID earlier
      a1ca8e71
    • Linus Torvalds's avatar
      Merge tag 'fiemap_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 63b0c403
      Linus Torvalds authored
      Pull FIEMAP cleanups from Jan Kara:
       "FIEMAP cleanups from Christoph transitioning all remaining filesystems
        supporting FIEMAP (ext2, hpfs) to iomap API and removing the old
        helper"
      
      * tag 'fiemap_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fs: remove generic_block_fiemap
        hpfs: use iomap_fiemap to implement ->fiemap
        ext2: use iomap_fiemap to implement ->fiemap
        ext2: make ext2_iomap_ops available unconditionally
      63b0c403
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 35134319
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
       "fsnotify speedups when notification actually isn't used and support
        for identifying processes which caused fanotify events through pidfd
        instead of normal pid"
      
      * tag 'fsnotify_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: optimize the case of no marks of any type
        fsnotify: count all objects with attached connectors
        fsnotify: count s_fsnotify_inode_refs for attached connectors
        fsnotify: replace igrab() with ihold() on attach connector
        fanotify: add pidfd support to the fanotify API
        fanotify: introduce a generic info record copying helper
        fanotify: minor cosmetic adjustments to fid labels
        kernel/pid.c: implement additional checks upon pidfd_create() parameters
        kernel/pid.c: remove static qualifier from pidfd_create()
      35134319
    • Linus Torvalds's avatar
      vt_kdsetmode: extend console locking · 2287a51b
      Linus Torvalds authored
      As per the long-suffering comment.
      Reported-by: default avatarMinh Yuan <yuanmingbuaa@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2287a51b
    • nick black's avatar
      console: consume APC, DM, DCS · 3a2b2eb5
      nick black authored
      The Linux console's VT102 implementation already consumes OSC
      ("Operating System Command") sequences, probably because that's how
      palette changes are transmitted.
      
      In addition to OSC, there are three other major clases of ANSI control
      strings: APC ("Application Program Command"), PM ("Privacy Message"),
      and DCS ("Device Control String").  They are handled similarly to OSC in
      terms of termination.
      
      Source: vt100.net
      
      Add three new enumerated states, one for each of these types.  All three
      are handled the same way right now--they simply consume input until
      terminated.  I hope to expand upon this firmament in the future.  Add
      new predicate ansi_control_string(), returning true for any of these
      states.  Replace explicit checks against ESosc with calls to this
      function.  Transition to these states appropriately from the escape
      initiation (ESesc) state.
      
      This was motivated by the following Notcurses bugs:
      
       https://github.com/dankamongmen/notcurses/issues/2050
       https://github.com/dankamongmen/notcurses/issues/1828
       https://github.com/dankamongmen/notcurses/issues/2069
      
      where standard VT sequences are not consumed by the Linux console.  It's
      not necessary that the Linux console *support* these sequences, but it
      ought *consume* these well-specified classes of sequences.
      
      Tested by sending a variety of escape sequences to the console, and
      verifying that they still worked, or were now properly consumed.
      Verified that the escapes were properly terminated at a generic level.
      Verified that the Notcurses tools continued to show expected output on
      the Linux console, except now without escape bleedthrough.
      
      Link: https://lore.kernel.org/lkml/YSydL0q8iaUfkphg@schwarzgerat.orthanc/Signed-off-by: default avatarnick black <dankamongmen@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3a2b2eb5
    • Linus Torvalds's avatar
      string: improve default out-of-line memcmp() implementation · 291d47cc
      Linus Torvalds authored
      This just does the "if the architecture does efficient unaligned
      handling, start the memcmp using 'unsigned long' accesses", since
      Nikolay Borisov found a load that cares.
      
      This is basically the minimal patch, and limited to architectures that
      are known to not have slow unaligned handling.  We've had the stupid
      byte-at-a-time version forever, and nobody has ever even noticed before,
      so let's keep the fix minimal.
      
      A potential further improvement would be to align one of the sources in
      order to at least minimize unaligned cases, but the only real case of
      bigger memcmp() users seems to be the FIDEDUPERANGE ioctl().  As David
      Sterba says, the dedupe ioctl is typically called on ranges spanning
      many pages so the common case will all be page-aligned anyway.
      
      All the relevant architectures select HAVE_EFFICIENT_UNALIGNED_ACCESS,
      so I'm not going to worry about the combination of a very rare use-case
      and a rare architecture until somebody actually hits it.  Particularly
      since Nikolay also tested the more complex patch with extra alignment
      handling code, and it only added overhead.
      
      Link: https://lore.kernel.org/lkml/20210721135926.602840-1-nborisov@suse.com/Reported-by: default avatarNikolay Borisov <nborisov@suse.com>
      Cc: David Sterba <dsterba@suse.cz>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      291d47cc
  2. 29 Aug, 2021 8 commits
  3. 28 Aug, 2021 3 commits
  4. 27 Aug, 2021 18 commits