1. 22 Sep, 2020 8 commits
    • Dan Carpenter's avatar
      staging: spmi: hisi-spmi-controller: Use devm_ version of ioremap(). · dbbc8fdf
      Dan Carpenter authored
      The ioremap() was never unmapped in the probe error handling or in the
      remove function.  The fix is to use the devm_ioremap() function so it
      gets cleaned up automatically.
      
      Fixes: 70f59c90 ("staging: spmi: add Hikey 970 SPMI controller driver")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://lore.kernel.org/r/20200918143338.GE909725@mwandaSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      dbbc8fdf
    • Colin Ian King's avatar
      staging/emxx_udc: fix indenting issue on a couple of statements · e2bb57d2
      Colin Ian King authored
      A couple of statements are indented too deeply, remove the
      extraneous tabs.
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Link: https://lore.kernel.org/r/20200918214731.48750-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e2bb57d2
    • Arnd Bergmann's avatar
      staging: vchiq: convert compat await_completion · 5d240a54
      Arnd Bergmann authored
      Split out the ioctl implementation for VCHIQ_IOC_QUEUE_BULK_TRANSMIT
      into a separate function so it can be shared with the compat
      implementation.
      
      This one is the trickiest conversion, as the compat implementation
      is already quite different from the native one. By using a common
      handler, the behavior is changed to be the same again: The
      indirect __user pointer accesses are now handled through helper
      functions that check for compat mode internally.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200918095441.1446041-6-arnd@arndb.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d240a54
    • Arnd Bergmann's avatar
      staging: vchiq: convert compat bulk transfer · a4367cd2
      Arnd Bergmann authored
      Split out the ioctl implementation for VCHIQ_IOC_QUEUE_BULK_TRANSMIT
      into a separate function so it can be shared with the compat
      implementation.
      
      Here, the input data is converted separately in the compat
      handler, while the output data is passed as a __user pointer
      to thec vchiq_queue_bulk_transfer->mode word that is
      compatible.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200918095441.1446041-5-arnd@arndb.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a4367cd2
    • Arnd Bergmann's avatar
      staging: vchiq: convert compat dequeue_message · f618affa
      Arnd Bergmann authored
      Split out the ioctl implementation for VCHIQ_IOC_DEQUEUE_MESSAGE
      into a separate function so it can be shared with the compat
      implementation.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200918095441.1446041-4-arnd@arndb.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f618affa
    • Arnd Bergmann's avatar
      staging: vchiq: convert compat create_service · 9f9caab9
      Arnd Bergmann authored
      Split out the ioctl implementation for VCHIQ_IOC_CREATE_SERVICE
      into a separate function so it can be shared with the compat
      implementation.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200918095441.1446041-3-arnd@arndb.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9f9caab9
    • Arnd Bergmann's avatar
      staging: vchiq: rework compat handling · 06c78d4e
      Arnd Bergmann authored
      The compat handlers for VCHIQ_IOC_QUEUE_MESSAGE32 and
      VCHIQ_IOC_GET_CONFIG32 can simply call the underlying implementations
      that are already separate functions rather than using copy_in_user to
      simulate the native 64-bit interface for the full ioctl handler.
      
      vchiq_ioc_queue_message gets a small update to the calling
      conventions to simplify the compat version by directly
      returning a normal errno value.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20200918095441.1446041-2-arnd@arndb.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      06c78d4e
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.10b-take2' of... · b290f902
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.10b-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of features and cleanups for IIO in 5.10
      
      We have a couple of changes that apply to large sets of drivers, so
      I have grouped those to keep this short.
      
      There are a few late breaking fixes in here that can wait for the
      merge window.
      
      dt yaml conversions
      -------------------
      
      * adi,ad7768-1
      * adi,ad7949
      * aspeed,ast2400
      * cosmic,10001-adc
      * dlg,da9150-gpadc
      * fsl,imx25-gcq
      * fsl,imx7d-adc
      * fsl,vf610
      * holt,hi8435
      * marvell,berlin2-adc
      * motorola,cpcap-adc
      * nuvoton,nau7802
      * nuvoton,npcm750-adc
      * nxp,lpc1850-adc
      * nxp,lpc3220
      * sprd,sc2720-adc
      * st,stmpe-adc
      * ti,adc12138
      * ti,ads1015
      * ti,ads7950
      * ti,twl4030-madc
      
      Features
      --------
      
      * adxrs290
        - Add triggered buffer support and expose data ready signal as a possible
          trigger. Includes updating bindings.
        - Add debugfs hooks for register access.
      * mlx90632
        - Add a clear user interface to override the measured ambient temperature.
      * vl53l0x
        - Add IRQ support including dt bindings.
      
      Cleanups and minor fixes
      ------------------------
      (groups)
      Replace mlock with local lock:
        * adf4350
        * exynos-adc
        * fls-imx25-gcq
        * stm32-dac
      
      devm use to simplify probe error handling and remove functions.
        * adis16201
        * adis16203
        * adis16209
        * adis16240
        * adis16136
        * adis16260
        * adis16400
        * adis16460
        * adis16480
        * adis library - drop unused adis_setup_buffer_and_trigger()
      
      of_match_ptr removal and incorrect ACPI binding removal
        of_match_ptr() rarely makes sense in an IIO driver as space saving
        is trivial and it breaks ACPI PRP0001 based instantiation.
        Mostly this series is about removing examples that get copied into new
        drivers.
        * ad2s1200
        * ad5272
        * ad5446
        * ad5592r
        * ad5593r
        * ad5703
        * ak8974
        * ak8975
        * ams-iaq-core
        * as3935
        * atlas-sensor
        * ds1803
        * hdc100x
        * htu21
        * icp10100
        * lmp91000
        * pulsedlight
        * max30102
        * max5432
        * max5481
        * mcp4018
        * mcp4131
        * mcp4531
        * mcp4725
        * ms5611
        * ms5637
        * si7020
        * sgp30
        * ti-dac082s085
        * ti-dac5571
        * tmp007
        * tsys01
        * vz89x
        * zpa2326
      
      kernel-doc fixes
        * iio-core
        * ad7303
        * ad7947
        * adis16080
        * adis16400
        * iio_dummy_evgen
        * sgp30
      
      Fixes for buffer alignment when passed to iio_push_to_buffers_with_timestamp()
      This is a long running effort.  There are a few more drivers to come.
        * inv_mpu6050
        * itg3200
        * si1145
        * st_lsm6dsx
        * ti-adc0832
        * ti-adc12138
      
      (not driver focused)
      * MAINTAINERS
        - Consolidate Analog Device IIO entries whilst removing Beniamin Bia.
        - Remove Hartmut Knaack as a listed IIO maintainer as he hasn't been
          active for a long time and people are getting intermitted bounces.
      * Add __printf() markings to a few functions that were missing them.
      * drop some rotted documentation from staging.
      * rework buffer sysfs file creation (precursor to multiple buffer support)
      
      (individual drivers)
      * ad5592r
        - Fix use of true for IIO_SHARED_BY_TYPE
        - Tidy up locking and indentation.
      * ad9467
        - Improve error message on chip-id missmatch.
        - Use more appropriate error value if chip-id not recognised.
      * adis-library
        - Simplify burst mode handling.
      * adxrs290
        - Make sure to switch device to standby mode during remove.
      * as73211
        - Increase measurement timeout as seems some devices are slower.
      * bma180
        - Fix use of true fo IIO_SHARED_BY_TYPE
      * exynos_adc
        - Update binding to require second interrut with touch screen.
        - Update binding to not require syscon on S5Pv210
      * hmc5843
        - Fix use of true for IIO_SHARED_BY_TYPE
      * inv_mpu6050
        - Use regmap_noinc_read() for fifo reading.
      * palmas_gpadc
        - Use module_platform_driver() to remove boilerplate.
      * meson-saradc
        - style consistency fixes
      * rockchip_saradc
        - Allow compile testing with !ARM.
      * st_lsm6dsx
        - Changing scaling factor to use IIO_VAL_INT_PLUS_NANO to improve precision.
        - Fix an issue with unchecked return value.
      * stm32-adc
        - Fix a missing return introduced in dev_err_probe() patch earlier in
          cycle.
      * sx9310
        - Prefer async mode for probe as paticularly slow startup.
      * vcnl4000
        - Add missing interrupt property to dt binding.
      
      * tag 'iio-for-5.10b-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (126 commits)
        dt-bindings: iio: vishay,vcnl4000: add interrupts property
        iio:imu:inv_mpu6050: Use regmap_noinc_read for fifo reads.
        iio:imu:inv_mpu6050 Fix dma and ts alignment and data leak issues.
        iio:adc:ti-adc12138 Fix alignment issue with timestamp
        iio:adc:ti-adc0832 Fix alignment issue with timestamp
        iio:imu:st_lsm6dsx Fix alignment and data leak issues
        iio:light:si1145: Fix timestamp alignment and prevent data leak.
        iio:gyro:itg3200: Fix timestamp alignment and prevent data leak.
        iio:imu:st_lsm6dsx: check st_lsm6dsx_shub_read_output return
        iio: adc: exynos_adc: Replace indio_dev->mlock with own device lock
        dt-bindings:iio:adc:holt,hi8435 yaml conversion
        dt-bindings:iio:adc:adi,ad7768-1 yaml conversion
        dt-bindings:iio:adc:adi,ad7949 yaml conversion
        dt-bindings:iio:adc:dlg,da9150-gpadc yaml conversion
        dt-bindings:iio:adc:motorola,cpcap-adc yaml conversion
        dt-bindings:iio:adc:nxp,lpc3220-adc yaml conversion
        dt-bindings:iio:adc:nxp,lpc1850-adc yaml conversion
        dt-bindings:iio:adc:fsl,imx25-gcq yaml conversion
        dt-bindings:iio:adc:fsl,imx7d-adc yaml conversion
        dt-bindings:iio:adc:ti,ads1015 yaml conversion
        ...
      b290f902
  2. 21 Sep, 2020 32 commits