1. 25 Nov, 2020 10 commits
  2. 24 Nov, 2020 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.11a' of... · 749c1e14
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.11a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      First set of new device support, features and cleanups for IIO in the 5.11 cycle
      
      Usual mixed bag of new drivers / device support + cleanups etc with the
      addition of a fairly big set of yaml conversions.
      
      Txt to yaml format conversions.
      In some cases dropped separate binding and moved to trivial devices (drop).
      
      Listed by manufacturer
        - dht11 temperature(drop)
        - adi,ad2s90 adi,ad5272 adi,ad5592r adi,ad5758 adi,ad5933 adi,ad7303
          adi,adis16480 adi,adf4350
        - ams,as3935
        - asahi-kasei,ak8974
        - atmel,sama5d2-adc
        - avago,apds9300 avago,apds9960
        - bosch,bma180 bosch,bmc150_magn bosch,bme680 bosch,bmg180
        - brcm,iproc-static-adc
        - capella,cm36651
        - domintech,dmard06(drop)
        - fsl,mag3110 fsl,mma8452 fsl,vf610-dac
        - hoperf,hp03
        - honeywell,hmc5843
        - kionix,kxcjk1013
        - maxim,ds1803(drop) maxim,ds4424 maxim,max30100 maxim,max30102
          maxim,max31856 maxim,max31855k maxim,max44009
          maxim,max5481 maxim,max5821
        - meas,htu21(drop) meas,ms5367(drop) meas,ms5611 meas,tsys01(drop)
        - mediatek,mt2701-auxadc
        - melexis,mlx90614 melexis,mlx90632
        - memsic,mmc35240(drop)
        - microchip,mcp41010 microchip,mcp4131 microchip,mcp4725
        - murata,zap2326
        - nxp,fxas21002c nxp,lpc1850-dac
        - pni,rm3100
        - qcom,pm8018-adc qcom,spmi-iadc
        - renesas,isl29501 renesas,rcar-gyroadc
        - samsung,sensorhub-rinato
        - sensiron,sgp30
        - sentech,sx9500
        - sharp,gp2ap020a00f
        - st,hts221 st,lsm6dsx st,st-sensors(many!) st,uvis25 st,vcl53l0x st,vl6180
        - ti,adc084s021 ti,ads124s08
          ti,dac5571 ti,dac7311 ti,dac7512 ti,dac7612
          ti,hdc1000(drop) ti,palmas-gpadc ti,opt3001 ti,tmp07
        - upisemi,us51882
        - vishay,vcnl4035
        - x-powers,axp209
      
      New device support
      * adi,ad5685
        - Add support for AD5338R dual output 10-bit DAC
        - Add DT-binding doc.
      * mediatek,mt6360
        - New driver for this SoC ADC with bindings and using new channel label
          support in the IIO core.
      * st,lsm6dsx
        - Add support for LSM6DST
      
      Core:
      * Add "label" to device channels, provided via a new core callback. Including
        DT docs for when that is the source, and ABI docs.
      * Add devm_iio_triggered_buffer_setup_ext to take extra attributes.
      * dmaengine, unwrap use of iio_buffer_set_attrs()
      * Drop iio_buffer_set_attrs()
      * Centralize ioctl call handling. Later fix to ensure -EINVAL returned if
        no handler has run.
      * Fix an issue with IIO_VAL_FRACTIONAL and negative values - doesn't affect
        any known existing drivers, but will impact a future one.
      * kernel-doc fix in trigger.h
      * file-ops ordering cleanup
      
      Features
      * semtech,sx9310
        - Add control of hardware gain, proximity thresholds, hysteresis and
          debounce.
        - Increase what information on hardware configuration can be provided
          via DT.
      
      Cleanup and minor features
      * adi,ad5685
        - Add of_match_table
      * adi,ad7292
        - Drop pointless spi_set_drvdata() call
      * adi,ad7298
        - Drop platform data and tidy up external reference config.
      * adi,ad7303
        - Drop platform data handling as unused.
      * adi,ad7768
        - Add new label attribute for channels provided from dt.
      * adi,ad7887
        - devm_ usage in probe simplifying remove and error handling.
      * adi,adis16201
        - Drop pointless spi_set_drvdata() call
      * adi,adis16209
        - Drop pointless spi_set_drvdata() call
      * adi,adis16240
        - White space fixup
      * adi,adxl372
        - use new devm_iio_triggered-buffer_setup_ext()
      * amlogic,meson-saradc
        - Drop pointless semicolon.
      * amstaos,tsl2563
        - Put back i2c_device_id table as needed for greybus probing.
      * atmel,at91_adc
        - Use of_device_get_match_data() instead of open coding it.
        - Constify some driver data
        - Add KCONFIG dep on CONFIG_OF and drop of_match_ptr()
        - Drop platform data as mostly dead code.
        - Tidy up reference voltage logic
      * atmel-sama5d2
        - Drop a pointless semicolon
        - Merge buffer and trigger init into a separate function
        - Use new devm_iio_triggered_buff_setup_ext()
      * avago,apds9960
        - Drop a pointless semicolon
      * bosch,bmc150
        - Drop a pointless semicolon
        - Use new iio_triggered_buffer_setup_ext()
      * bosch,bmp280
        - Drop a pointless semicolon
      * fsl,mma8452
        - Constification
      * (google),cros_ec
        - Use new devm_iio_triggered_buffer_setup_ext()
      * hid-sensors
        - Use new iio_triggered_buffer_setup_ext()
      * ingenic,adc
        - Drop a pointless semicolon
      * invensense,icm426xx
        - Fix MAINTAINERS entry missing :
      * mediatek,mt6577_audxac
        - Add binding doc for mt8516 compatible with mt8173
      * motorola,cpcap-adc
        - Fix an implicit fallthrough marking that clang needs to avoid warning.
      * samsung,exynos-adc
        - Stop relying on users counter form input device in ISR.
      * st,lsm6dsx
        - add vdd and vddio regulator control (including binding update)
      * st,stm32-adc
        - Tidy up code for dma transfers.
        - Adapt clock duty cycle for proper functioning. Note no known problems
          with existing boards.
      * st,vl53l0x-i2c
        - Put back i2c_device_id table as needed for greybus probing.
      * vishay,vcnl4035
        - Put back i2c_device_id table as needed for greybus probing.
      
      * tag 'iio-for-5.11a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (126 commits)
        dt-bindings:iio:adc:x-powers,axp209-adc: txt to yaml conversion
        dt-bindings:iio:adc:renesas,rcar-gyroadc: txt to yaml conversion.
        dt-bindings:iio:adc:atmel,sama5d2-adc: txt to yaml conversion
        dt-bindings:iio:magnetometer:pni,rm3100: txt to yaml conversion.
        dt-bindings:iio:magnetometer:honeywell,hmc5843: txt to yaml format conversion
        dt-bindings:iio:magnetometer:bosch,bmc150_magn: txt to yaml conversion.
        dt-bindings:iio:magnetometer:asahi-kasei,ak8974: txt to yaml format conversion
        dt-bindings:iio:magnetometer:fsl,mag3110: txt to yaml conversion
        dt-bindings:iio:light:st,vl6180: txt to yaml format conversion.
        dt-bindings:iio:light:vishay,vcnl4035: txt to yaml conversion
        dt-bindings:iio:light:st,uvis25: txt to yaml conversion for this UV sensor
        dt-bindings:iio:light:upisemi,us51882: txt to yaml conversion.
        dt-bindings:iio:light:ti,opt3001: txt to yaml conversion
        dt-bindings:iio:light:maxim,max44009: txt to yaml conversion.
        dt-bindings:iio:light:sharp,gp2ap020a00f: txt to yaml conversion.
        dt-bindings:iio:light:capella,cm36651: txt to yaml conversion.
        dt-bindings:iio:light:avago,apds9960: txt to yaml conversion
        dt-bindings:iio:light:avago,apds9300: txt to yaml conversion.
        dt-bindings:iio:imu:st,lsm6dsx: txt to yaml conversion
        dt-bindings:iio:imu:adi,adis16480: txt to yaml conversion
        ...
      749c1e14
  3. 23 Nov, 2020 15 commits
  4. 22 Nov, 2020 14 commits
    • Linus Torvalds's avatar
      Linux 5.10-rc5 · 418baf2c
      Linus Torvalds authored
      418baf2c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · d5530d82
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - Various functionality / regression fixes for Logitech devices from
         Hans de Goede
      
       - Fix for (recently added) GPIO support in mcp2221 driver from Lars
         Povlsen
      
       - Power management handling fix/quirk in i2c-hid driver for certain
         BIOSes that have strange aproach to power-cycle from Hans de Goede
      
       - a few device ID additions and device-specific quirks
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: logitech-dj: Fix Dinovo Mini when paired with a MX5x00 receiver
        HID: logitech-dj: Fix an error in mse_bluetooth_descriptor
        HID: Add Logitech Dinovo Edge battery quirk
        HID: logitech-hidpp: Add HIDPP_CONSUMER_VENDOR_KEYS quirk for the Dinovo Edge
        HID: logitech-dj: Handle quad/bluetooth keyboards with a builtin trackpad
        HID: add HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE for Gamevice devices
        HID: mcp2221: Fix GPIO output handling
        HID: hid-sensor-hub: Fix issue with devices with no report ID
        HID: i2c-hid: Put ACPI enumerated devices in D3 on shutdown
        HID: add support for Sega Saturn
        HID: cypress: Support Varmilo Keyboards' media hotkeys
        HID: ite: Replace ABS_MISC 120/121 events with touchpad on/off keypresses
        HID: logitech-hidpp: Add PID for MX Anywhere 2
        HID: uclogic: Add ID for Trust Flex Design Tablet
      d5530d82
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f4b936f5
      Linus Torvalds authored
      Pull scheduler fixes from Thomas Gleixner:
       "A couple of scheduler fixes:
      
         - Make the conditional update of the overutilized state work
           correctly by caching the relevant flags state before overwriting
           them and checking them afterwards.
      
         - Fix a data race in the wakeup path which caused loadavg on ARM64
           platforms to become a random number generator.
      
         - Fix the ordering of the iowaiter accounting operations so it can't
           be decremented before it is incremented.
      
         - Fix a bug in the deadline scheduler vs. priority inheritance when a
           non-deadline task A has inherited the parameters of a deadline task
           B and then blocks on a non-deadline task C.
      
           The second inheritance step used the static deadline parameters of
           task A, which are usually 0, instead of further propagating task
           B's parameters. The zero initialized parameters trigger a bug in
           the deadline scheduler"
      
      * tag 'sched-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/deadline: Fix priority inheritance with multiple scheduling classes
        sched: Fix rq->nr_iowait ordering
        sched: Fix data-race in wakeup
        sched/fair: Fix overutilized update in enqueue_task_fair()
      f4b936f5
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 48da3305
      Linus Torvalds authored
      Pull perf fix from Thomas Gleixner:
       "A single fix for the x86 perf sysfs interfaces which used kobject
        attributes instead of device attributes and therefore making clang's
        control flow integrity checker upset"
      
      * tag 'perf-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86: fix sysfs type mismatches
      48da3305
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 855cf1ee
      Linus Torvalds authored
      Pull locking fix from Thomas Gleixner:
       "A single fix for lockdep which makes the recursion protection cover
        graph lock/unlock"
      
      * tag 'locking-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        lockdep: Put graph lock/unlock under lock_recursion protection
      855cf1ee
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-for-v5.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 68d3fa23
      Linus Torvalds authored
      Pull EFI fixes from Borislav Petkov:
       "Forwarded EFI fixes from Ard Biesheuvel:
      
         - fix memory leak in efivarfs driver
      
         - fix HYP mode issue in 32-bit ARM version of the EFI stub when built
           in Thumb2 mode
      
         - avoid leaking EFI pgd pages on allocation failure"
      
      * tag 'efi-urgent-for-v5.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/x86: Free efi_pgd with free_pages()
        efivarfs: fix memory leak in efivarfs_create()
        efi/arm: set HSCTLR Thumb2 bit correctly for HVC calls from HYP
      68d3fa23
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7d53be55
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - An IOMMU VT-d build fix when CONFIG_PCI_ATS=n along with a revert of
         same because the proper one is going through the IOMMU tree (Thomas
         Gleixner)
      
       - An Intel microcode loader fix to save the correct microcode patch to
         apply during resume (Chen Yu)
      
       - A fix to not access user memory of other processes when dumping
         opcode bytes (Thomas Gleixner)
      
      * tag 'x86_urgent_for_v5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "iommu/vt-d: Take CONFIG_PCI_ATS into account"
        x86/dumpstack: Do not try to access user space code of other tasks
        x86/microcode/intel: Check patch signature before saving microcode for early loading
        iommu/vt-d: Take CONFIG_PCI_ATS into account
      7d53be55
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 4a51c60a
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "8 patches.
      
        Subsystems affected by this patch series: mm (madvise, pagemap,
        readahead, memcg, userfaultfd), kbuild, and vfs"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm: fix madvise WILLNEED performance problem
        libfs: fix error cast of negative value in simple_attr_write()
        mm/userfaultfd: do not access vma->vm_mm after calling handle_userfault()
        mm: memcg/slab: fix root memcg vmstats
        mm: fix readahead_page_batch for retry entries
        mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports
        compiler-clang: remove version check for BPF Tracing
        mm/madvise: fix memory leak from process_madvise
      4a51c60a
    • Linus Torvalds's avatar
      Merge tag 'staging-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · d27637ec
      Linus Torvalds authored
      Pull staging and IIO fixes from Greg KH:
       "Here are some small Staging and IIO driver fixes for 5.10-rc5. They
        include:
      
         - IIO fixes for reported regressions and problems
      
         - new device ids for IIO drivers
      
         - new device id for rtl8723bs driver
      
         - staging ralink driver Kconfig dependency fix
      
         - staging mt7621-pci bus resource fix
      
        All of these have been in linux-next all week with no reported issues"
      
      * tag 'staging-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        iio: accel: kxcjk1013: Add support for KIOX010A ACPI DSM for setting tablet-mode
        iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum
        docs: ABI: testing: iio: stm32: remove re-introduced unsupported ABI
        iio: light: fix kconfig dependency bug for VCNL4035
        iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used
        iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
        staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids
        staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK
        staging: mt7621-pci: avoid to request pci bus resources
        iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout
        counter/ti-eqep: Fix regmap max_register
        iio: adc: stm32-adc: fix a regression when using dma and irq
        iio: adc: mediatek: fix unset field
        iio: cros_ec: Use default frequencies when EC returns invalid information
      d27637ec
    • Linus Torvalds's avatar
      Merge tag 'tty-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · de758035
      Linus Torvalds authored
      Pull tty fixes from Greg KH:
       "Here are some small tty/serial fixes for 5.10-rc5 that resolve some
        reported issues:
      
         - speakup crash when telling the kernel to use a device that isn't
           really there
      
         - imx serial driver fixes for reported problems
      
         - ar933x_uart driver fix for probe error handling path
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'tty-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: ar933x_uart: disable clk on error handling path in probe
        tty: serial: imx: keep console clocks always on
        speakup: Do not let the line discipline be used several times
        tty: serial: imx: fix potential deadlock
      de758035
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · a7f07fc1
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "A final set of miscellaneous bug fixes for ext4"
      
      * tag 'ext4_for_linus_fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix bogus warning in ext4_update_dx_flag()
        jbd2: fix kernel-doc markups
        ext4: drop fast_commit from /proc/mounts
      a7f07fc1
    • David Howells's avatar
      afs: Fix speculative status fetch going out of order wrt to modifications · a9e5c87c
      David Howells authored
      When doing a lookup in a directory, the afs filesystem uses a bulk
      status fetch to speculatively retrieve the statuses of up to 48 other
      vnodes found in the same directory and it will then either update extant
      inodes or create new ones - effectively doing 'lookup ahead'.
      
      To avoid the possibility of deadlocking itself, however, the filesystem
      doesn't lock all of those inodes; rather just the directory inode is
      locked (by the VFS).
      
      When the operation completes, afs_inode_init_from_status() or
      afs_apply_status() is called, depending on whether the inode already
      exists, to commit the new status.
      
      A case exists, however, where the speculative status fetch operation may
      straddle a modification operation on one of those vnodes.  What can then
      happen is that the speculative bulk status RPC retrieves the old status,
      and whilst that is happening, the modification happens - which returns
      an updated status, then the modification status is committed, then we
      attempt to commit the speculative status.
      
      This results in something like the following being seen in dmesg:
      
      	kAFS: vnode modified {100058:861} 8->9 YFS.InlineBulkStatus
      
      showing that for vnode 861 on volume 100058, we saw YFS.InlineBulkStatus
      say that the vnode had data version 8 when we'd already recorded version
      9 due to a local modification.  This was causing the cache to be
      invalidated for that vnode when it shouldn't have been.  If it happens
      on a data file, this might lead to local changes being lost.
      
      Fix this by ignoring speculative status updates if the data version
      doesn't match the expected value.
      
      Note that it is possible to get a DV regression if a volume gets
      restored from a backup - but we should get a callback break in such a
      case that should trigger a recheck anyway.  It might be worth checking
      the volume creation time in the volsync info and, if a change is
      observed in that (as would happen on a restore), invalidate all caches
      associated with the volume.
      
      Fixes: 5cf9dd55 ("afs: Prospectively look up extra files when doing a single lookup")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9e5c87c
    • Matthew Wilcox (Oracle)'s avatar
      mm: fix madvise WILLNEED performance problem · 66383800
      Matthew Wilcox (Oracle) authored
      The calculation of the end page index was incorrect, leading to a
      regression of 70% when running stress-ng.
      
      With this fix, we instead see a performance improvement of 3%.
      
      Fixes: e6e88712 ("mm: optimise madvise WILLNEED")
      Reported-by: default avatarkernel test robot <rong.a.chen@intel.com>
      Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Tested-by: default avatarXing Zhengjun <zhengjun.xing@linux.intel.com>
      Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Cc: William Kucharski <william.kucharski@oracle.com>
      Cc: Feng Tang <feng.tang@intel.com>
      Cc: "Chen, Rong A" <rong.a.chen@intel.com>
      Link: https://lkml.kernel.org/r/20201109134851.29692-1-willy@infradead.orgSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      66383800
    • Yicong Yang's avatar
      libfs: fix error cast of negative value in simple_attr_write() · 488dac0c
      Yicong Yang authored
      The attr->set() receive a value of u64, but simple_strtoll() is used for
      doing the conversion.  It will lead to the error cast if user inputs a
      negative value.
      
      Use kstrtoull() instead of simple_strtoll() to convert a string got from
      the user to an unsigned value.  The former will return '-EINVAL' if it
      gets a negetive value, but the latter can't handle the situation
      correctly.  Make 'val' unsigned long long as what kstrtoull() takes,
      this will eliminate the compile warning on no 64-bit architectures.
      
      Fixes: f7b88631 ("fs/libfs.c: fix simple_attr_write() on 32bit machines")
      Signed-off-by: default avatarYicong Yang <yangyicong@hisilicon.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Link: https://lkml.kernel.org/r/1605341356-11872-1-git-send-email-yangyicong@hisilicon.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      488dac0c