Skip to content
Permalink
Gilles-Talis/i…
Switch branches/tags

Commits on Nov 14, 2021

  1. dt-bindings: trivial-devices: Add Sensirion SHTC3 humidity sensor

    Sensirion SHTC3 is a humidity and temperature sensor controlled
    through I2C interface
    
    Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
    gtalis authored and intel-lab-lkp committed Nov 14, 2021
  2. iio: humidity: Add support for Sensirion SHTC3 sensor

    The SHTC3 is a digital humidity and temperature sensor.
    It covers humidity measurement range from 0 to 100% relative humidity
    and temperature measurement range from -45 to 125 deg C.
    
    Datasheet: https://www.sensirion.com/file/datasheet_shtc3
    
    Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
    gtalis authored and intel-lab-lkp committed Nov 14, 2021

Commits on Oct 28, 2021

  1. iio: adc: ina2xx: Avoid double reference counting from get_task_struc…

    …t/put_task_struct()
    
    kthread_run() and kthread_stop() already do reference
    counting of the task, so remove get_task_struct/put_task_struct()
    to avoid double reference counting.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Link: https://lore.kernel.org/r/20211021124254.3247-2-caihuoqing@baidu.com
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Cai Huoqing authored and jic23 committed Oct 28, 2021
  2. iio: adc: ina2xx: Make use of the helper macro kthread_run()

    Repalce kthread_create/wake_up_process() with kthread_run()
    to simplify the code.
    
    Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Link: https://lore.kernel.org/r/20211021124254.3247-1-caihuoqing@baidu.com
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Cai Huoqing authored and jic23 committed Oct 28, 2021
  3. iio: ms5611: Simplify IO callback parameters

    The ms5611 passes &indio_dev->dev as a parameter to all its IO callbacks
    only to directly cast the struct device back to struct iio_dev. And the
    struct iio_dev is then only used to get the drivers state struct.
    
    Simplify this a bit by passing the state struct directly. This makes it a
    bit easier to follow what the code is doing.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    Link: https://lore.kernel.org/r/20211020142110.7060-1-lars@metafoo.de
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    larsclausen authored and jic23 committed Oct 28, 2021
  4. iio: imx7d_adc: Don't pass IIO device to imx7d_adc_{enable,disable}()

    The `imx7d_adc_enable()` and `imx7d_adc_disable()` functions are used as
    the suspend and resume callbacks for the device. When called as
    suspend/resume functions they are called with the platform_device's device
    as their parameter.
    
    In addition the functions are called on device probe and remove. In this
    case they are passed the struct device of the IIO device that the driver
    registers.
    
    This works because in the `imx7d_adc_{enable,disable}()` functions the
    passed struct device is only ever used as a parameter to `dev_get_drvdata()`
    and `dev_get_drvdata()` returns the same value for the platform device and
    the IIO device.
    
    But for consistency we should pass the same struct device to the
    `imx7d_adc_{enable,disable}()` in all cases. This will avoid accidental
    breakage if the device is ever used for something more than
    `dev_get_drvdata()`.
    
    Another motivation is that `dev_get_drvdata()` on the IIO device relies on
    the IIO core calling `dev_set_drvdata()`. Something we want to remove.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    Link: https://lore.kernel.org/r/20211020085754.16654-1-lars@metafoo.de
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    larsclausen authored and jic23 committed Oct 28, 2021
  5. iio: st-sensors: Use dev_to_iio_dev() in sysfs callbacks

    Using `dev_get_drvdata()` in IIO sysfs callbacks to get a pointer to the
    IIO device is a relic from the very early days of IIO. The IIO core as well
    as most other drivers have switched over to using `dev_to_iio_dev()`
    instead.
    
    This driver is one of the last few drivers remaining that uses the outdated
    idiom, update it. This will allow to eventually update the IIO core to no
    longer set the drvdata for the IIO device and free it up for driver usage.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    Link: https://lore.kernel.org/r/20211020085349.16178-1-lars@metafoo.de
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    larsclausen authored and jic23 committed Oct 28, 2021
  6. iio: adc: stm32-adc: Fix of_node_put() issue in stm32-adc

    Fix following coccicheck warning:
    ./drivers/iio/adc/stm32-adc.c:2014:1-33: WARNING: Function
    for_each_available_child_of_node should have of_node_put() before return.
    
    Early exits from for_each_available_child_of_node should decrement the
    node reference counter. Replace return by goto here.
    
    Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
    Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
    Link: https://lore.kernel.org/r/20211021121826.6339-1-wanjiabing@vivo.com
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Wan Jiabing authored and jic23 committed Oct 28, 2021
  7. iio: xilinx-xadc: Make IRQ optional

    In some setups the IRQ signal of the XADC might not be wired to the host
    system. The driver currently requires that an interrupt is specified. Make
    the interrupt optional so the driver can be used in such setups where the
    interrupt is not connected.
    
    Since both the internal triggers as well as events depend on the interrupt
    being connected both are not available when the interrupt is not connected.
    
    Buffered access is still supported even without an interrupt since an
    external trigger can be used.
    
    The IRQ is only optional when using the AXI interface, since the PCAP
    interface needs the IRQ for reading and writing registers.
    
    Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
    Link: https://lore.kernel.org/r/20211021125950.28707-1-lars@metafoo.de
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    larsclausen authored and jic23 committed Oct 28, 2021
  8. iio: accel: mma7660: Warn about failure to put device in stand-by in …

    ….remove()
    
    Whan an i2c driver's remove function returns a non-zero error code
    nothing happens apart from emitting a generic error message. Make this
    error message more device specific and return zero instead.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Link: https://lore.kernel.org/r/20211025195007.84541-1-u.kleine-koenig@pengutronix.de
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    ukleinek authored and jic23 committed Oct 28, 2021
  9. iio: adc: lpc18xx_adc: Reorder clk_get_rate() function call

    clk_get_rate() is not guaranteed to work if called before
    clk_prepare_enable().
    
    Reorder clk_get_rate(), so it's called after clk_prepare_enable() and
    after devm_add_action_or_reset() of lpc18xx_clk_disable().
    
    Not that this is not a problem on this particular device, but it is
    good to remove a case that might get copied elsewhere.
    
    Suggested-by: Jonathan Cameron <jic23@kernel.org>
    Acked-by: Vladimir Zapolskiy <vz@mleia.com>
    Signed-off-by: André Gustavo Nakagomi Lopez <andregnl@usp.br>
    Link: https://lore.kernel.org/r/YXag5l4xBkGQH3tq@Andryuu.br
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Andregnl authored and jic23 committed Oct 28, 2021

Commits on Oct 27, 2021

  1. fix for "dma-buf: move dma-buf symbols into the DMA_BUF module namesp…

    …ace"
    
    Adds the proper MODULE_IMPORT_NS(DMA_BUF) line to the file to get it to
    build properly.
    
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Link: https://lore.kernel.org/r/20211027154843.622961fd@canb.auug.org.au
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    sfrothwell authored and gregkh committed Oct 27, 2021

Commits on Oct 26, 2021

  1. most: fix control-message timeouts

    USB control-message timeouts are specified in milliseconds and should
    specifically not vary with CONFIG_HZ.
    
    Use the common control-message timeout defines for the five-second
    timeouts.
    
    Fixes: 97a6f77 ("drivers: most: add USB adapter driver")
    Cc: stable@vger.kernel.org      # 5.9
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Link: https://lore.kernel.org/r/20211025115811.5410-1-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    jhovold authored and gregkh committed Oct 26, 2021
  2. comedi: vmk80xx: fix bulk and interrupt message timeouts

    USB bulk and interrupt message timeouts are specified in milliseconds
    and should specifically not vary with CONFIG_HZ.
    
    Note that the bulk-out transfer timeout was set to the endpoint
    bInterval value, which should be ignored for bulk endpoints and is
    typically set to zero. This meant that a failing bulk-out transfer
    would never time out.
    
    Assume that the 10 second timeout used for all other transfers is more
    than enough also for the bulk-out endpoint.
    
    Fixes: 985cafc ("Staging: Comedi: vmk80xx: Add k8061 support")
    Fixes: 951348b ("staging: comedi: vmk80xx: wait for URBs to complete")
    Cc: stable@vger.kernel.org      # 2.6.31
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
    Link: https://lore.kernel.org/r/20211025114532.4599-6-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    jhovold authored and gregkh committed Oct 26, 2021
  3. comedi: vmk80xx: fix bulk-buffer overflow

    The driver is using endpoint-sized buffers but must not assume that the
    tx and rx buffers are of equal size or a malicious device could overflow
    the slab-allocated receive buffer when doing bulk transfers.
    
    Fixes: 985cafc ("Staging: Comedi: vmk80xx: Add k8061 support")
    Cc: stable@vger.kernel.org      # 2.6.31
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
    Link: https://lore.kernel.org/r/20211025114532.4599-5-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    jhovold authored and gregkh committed Oct 26, 2021
  4. comedi: vmk80xx: fix transfer-buffer overflows

    The driver uses endpoint-sized USB transfer buffers but up until
    recently had no sanity checks on the sizes.
    
    Commit e1f13c8 ("staging: comedi: check validity of wMaxPacketSize
    of usb endpoints found") inadvertently fixed NULL-pointer dereferences
    when accessing the transfer buffers in case a malicious device has a
    zero wMaxPacketSize.
    
    Make sure to allocate buffers large enough to handle also the other
    accesses that are done without a size check (e.g. byte 18 in
    vmk80xx_cnt_insn_read() for the VMK8061_MODEL) to avoid writing beyond
    the buffers, for example, when doing descriptor fuzzing.
    
    The original driver was for a low-speed device with 8-byte buffers.
    Support was later added for a device that uses bulk transfers and is
    presumably a full-speed device with a maximum 64-byte wMaxPacketSize.
    
    Fixes: 985cafc ("Staging: Comedi: vmk80xx: Add k8061 support")
    Cc: stable@vger.kernel.org      # 2.6.31
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
    Link: https://lore.kernel.org/r/20211025114532.4599-4-johan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    jhovold authored and gregkh committed Oct 26, 2021

Commits on Oct 25, 2021

  1. dma-buf: move dma-buf symbols into the DMA_BUF module namespace

    In order to better track where in the kernel the dma-buf code is used,
    put the symbols in the namespace DMA_BUF and modify all users of the
    symbols to properly import the namespace to not break the build at the
    same time.
    
    Now the output of modinfo shows the use of these symbols, making it
    easier to watch for users over time:
    
    $ modinfo drivers/misc/fastrpc.ko | grep import
    import_ns:      DMA_BUF
    
    Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Cc: Maxime Ripard <mripard@kernel.org>
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
    Cc: dri-devel@lists.freedesktop.org
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Acked-by: Christian König <christian.koenig@amd.com>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Link: https://lore.kernel.org/r/20211010124628.17691-1-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Oct 25, 2021
  2. lkdtm/bugs: Check that a per-task stack canary exists

    Introduce REPORT_STACK_CANARY to check for differing stack canaries
    between two processes (i.e. that an architecture is correctly implementing
    per-task stack canaries), using the task_struct canary as the hint to
    locate in the stack. Requires that one of the processes being tested
    not be pid 1.
    
    Cc: Ard Biesheuvel <ardb@kernel.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/20211022223826.330653-3-keescook@chromium.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    kees authored and gregkh committed Oct 25, 2021
  3. selftests/lkdtm: Add way to repeat a test

    Some LKDTM tests need to be run more than once (usually to setup and
    then later trigger). Until now, the only case was the SOFT_LOCKUP test,
    which wasn't useful to run in the bulk selftests. The coming stack canary
    checking needs to run twice, so support this with a new test output prefix
    "repeat".
    
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/20211022223826.330653-2-keescook@chromium.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    kees authored and gregkh committed Oct 25, 2021
  4. Merge tag 'soundwire-5.16-rc1' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/vkoul/soundwire into char-misc-next
    
    Vinod writes:
    
    soundwire updates for 5.16-rc1
    
     - Update on sysfs wildcard documentation
     - debugfs update for core and qcom driver
     - invalid slave pointer fix for bus
    
    * tag 'soundwire-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
      soundwire: qcom: add debugfs entry for soundwire register dump
      soundwire: bus: stop dereferencing invalid slave pointer
      ABI: sysfs-bus-soundwire-slave: use wildcards on What definitions
      ABI: sysfs-bus-soundwire-master: use wildcards on What definitions
      soundwire: debugfs: use controller id and link_id for debugfs
    gregkh committed Oct 25, 2021

Commits on Oct 24, 2021

  1. iio: frequency: adrf6780: Fix adrf6780_spi_{read,write}()

    Clang warns:
    
    drivers/iio/frequency/adrf6780.c:117:1: error: all paths through this
    function will call itself [-Werror,-Winfinite-recursion]
    {
    ^
    drivers/iio/frequency/adrf6780.c:138:1: error: all paths through this
    function will call itself [-Werror,-Winfinite-recursion]
    {
    ^
    2 errors generated.
    
    The underscore variants should be used here.
    
    Link: ClangBuiltLinux#1490
    Fixes: 63aaf6d ("iio: frequency: adrf6780: add support for ADRF6780")
    Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Signed-off-by: Nathan Chancellor <nathan@kernel.org>
    Link: https://lore.kernel.org/r/20211022195656.1513147-1-nathan@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nathanchance authored and gregkh committed Oct 24, 2021
  2. Merge tag 'iio-for-5.16b' of https://git.kernel.org/pub/scm/linux/ker…

    …nel/git/jic23/iio into char-misc-next
    
    Jonathan writes:
    
    2nd set of IIO new driver, cleanups and features for the 5.16 cycle
    
    New device support
    * adrf6780 microwave upconverter.
      - New driver for this interesting device including bindings.
    
    Features
    * lite-on ltr501
      - Add dt-bindings including vendor ID and of_device_id table.
      - Add regulator support.
    * sensiron,scd4x
      - Add reporting of channel scale.
    
    Cleanups including fixes for things in this cycle
    * Tree wide: Another set of dev_err_probe() introductions to reduce
      noise in logs when deferred probing is needed and provide more debug
      info. Devices included this time:
      - amlogic,meson_saradc
      - capella,cm3605
      - fsl,imx7d
      - maxim,max1118
      - maxim,max1241
      - nxp,lpc18xx
      - qcom,pm8xxxx-xoadc
      - rockchip,saradc
      - sharp,gp2ap002
      - sterricson,ab8500
      - ti,ads7950
    * core - iio:buffer
      - Fix a path where a ret value is not intialized.
    * channel-mux
      - Add support to mux core subsystem for a settling delay and use
        it in the iio-channel-mux driver.
      - Fix a few dt binding warnings.
    * nxp,lpc18xx
      - Convert to devm_ functions for all of probe and drop remove()
    * st,lsm6dsx
      - Suppress a warning due to lack of handling of an enum *_MAX entry
        that is just there to get the size.
    * st,stm32-adc
      - Add generic channel binding, deprecating the old approach.
      - Add nvmem support to get calibration data for the vrefint channel and
        use it to perform such calibration.
      - Add a binding for sample-time to the generic channel description as it
        can be per channel.
    * ti,adc128s052
      - Use devm_ managed functions and drop remove()
    * vti,sca3000
      - Use sign_extend32() rather than opencoding.
    * xilinx,xadc
      - Drop irq field from state structure as now just used in probe.
    
    * tag 'iio-for-5.16b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (36 commits)
      dt-bindings: iio: frequency: add adrf6780 doc
      iio: frequency: adrf6780: add support for ADRF6780
      iio: chemical: scd4x: Add a scale for the co2 concentration reading
      dt-bindings: iio: io-channel-mux: allow duplicate channel, labels
      dt-bindings: iio: io-channel-mux: add optional #io-channel-cells
      iio: adc: adc128s052: Simplify adc128_probe()
      iio: multiplexer: iio-mux: Support settle-time-us property
      dt-bindings: iio: io-channel-mux: Add property for settle time
      mux: add support for delay after muxing
      iio: adc: stm32-adc: use generic binding for sample-time
      iio: adc: stm32-adc: add vrefint calibration support
      iio: adc: stm32-adc: add support of internal channels
      iio: adc: stm32-adc: add support of generic channels binding
      iio: adc: stm32-adc: split channel init into several routines
      dt-bindings: iio: stm32-adc: add nvmem support for vrefint internal channel
      dt-bindings: iio: stm32-adc: add generic channel binding
      iio: accel: sca3000: Use sign_extend32() instead of opencoding sign extension.
      iio: xilinx-xadc: Remove `irq` field from state struct
      iio: imu: st_lsm6dsx: Avoid potential array overflow in st_lsm6dsx_set_odr()
      iio: light: gp2ap002: Make use of the helper function dev_err_probe()
      ...
    gregkh committed Oct 24, 2021
  3. Merge tag 'iio-fixes-for-5.16a' of https://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/jic23/iio into char-misc-next
    
    Jonathan writes:
    
    First set of IIO fixes for the 5.16 cycle
    
    As these are very late in the 5.15 cycle and non are particularly urgent,
    they can wait for the merge window.
    
    Key element in this set is Yang Yingliang has identified a number of
    issues in error paths introduced recently when we added multiple
    buffer support.
    
    Other fixes:
    * adi,ad5662
      - Fix handling of i2c_master_send() return value.
    * adi,ad5766
      - Fix a wrong dt-property name that indicated wrong units and
        did not mach the bindings.
      - Associated 'fix' of the bindings example to have a possible scale.
    * st,pressure-spi
      - Add some missing entries to the spi_device_id table to ensure
        auto-loading works.
    * ti,tsc2046
      - Fix a backwards comparison leading to a false dev_warn
    
    * tag 'iio-fixes-for-5.16a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio:
      iio: buffer: Fix memory leak in iio_buffers_alloc_sysfs_and_mask()
      iio: adc: tsc2046: fix scan interval warning
      iio: core: fix double free in iio_device_unregister_sysfs()
      iio: core: check return value when calling dev_set_name()
      iio: buffer: Fix memory leak in iio_buffer_register_legacy_sysfs_groups()
      iio: buffer: Fix double-free in iio_buffers_alloc_sysfs_and_mask()
      iio: buffer: Fix memory leak in __iio_buffer_alloc_sysfs_and_mask()
      iio: buffer: check return value of kstrdup_const()
      iio: dac: ad5446: Fix ad5622_write() return value
      Documentation:devicetree:bindings:iio:dac: Fix val
      drivers: iio: dac: ad5766: Fix dt property name
      iio: st_pressure_spi: Add missing entries SPI to device ID table
    gregkh committed Oct 24, 2021

Commits on Oct 22, 2021

  1. misc: enclosure: replace snprintf in show functions with sysfs_emit

    coccicheck complains about the use of snprintf() in sysfs show
    functions:
    WARNING  use scnprintf or sprintf
    
    Use sysfs_emit instead of scnprintf or sprintf makes more sense.
    
    Reported-by: Zeal Robot <zealci@zte.com.cn>
    Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
    Link: https://lore.kernel.org/r/20211022090604.1065367-1-ye.guojin@zte.com.cn
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Ye Guojin authored and gregkh committed Oct 22, 2021
  2. Merge tag 'icc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/djakov/icc into char-misc-next
    
    Georgi writes:
    
    interconnect changes for 5.16
    
    Here are the changes for the 5.16-rc1 merge window consisting of just
    driver updates. The highlight is the refactoring of some existing drivers
    into common code and expanding some macros that will make adding QoS
    support much easier.
    
    Driver changes:
    - icc-rpm: move bus clocks handling into qnoc_probe
    - sdm660: expand DEFINE_QNODE macros
    - sdm660: drop default/unused values
    - sdm660: merge common code into icc-rpm
    - icc-rpm: add support for QoS reg offset
    - msm8916: expand DEFINE_QNODE macros
    - msm8916: add support for AP-owned nodes
    - msm8939: expand DEFINE_QNODE macros
    - msm8939: add support for AP-owned nodes
    - qcs404: expand DEFINE_QNODE macros
    - qcom: drop DEFINE_QNODE macro
    - samsung: describe drivers in KConfig
    
    Signed-off-by: Georgi Djakov <djakov@kernel.org>
    
    * tag 'icc-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc:
      interconnect: samsung: describe drivers in KConfig
      interconnect: qcom: drop DEFINE_QNODE macro
      interconnect: qcs404: expand DEFINE_QNODE macros
      interconnect: msm8939: add support for AP-owned nodes
      interconnect: msm8939: expand DEFINE_QNODE macros
      interconnect: msm8916: add support for AP-owned nodes
      interconnect: msm8916: expand DEFINE_QNODE macros
      interconnect: icc-rpm: add support for QoS reg offset
      interconnect: sdm660: merge common code into icc-rpm
      interconnect: sdm660: drop default/unused values
      interconnect: sdm660: expand DEFINE_QNODE macros
      interconnect: icc-rpm: move bus clocks handling into qnoc_probe
    gregkh committed Oct 22, 2021
  3. Merge tag 'fsi-for-v5.16' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/joel/fsi into char-misc-next
    
    Joel writes:
    
    FSI changes for v5.16
    
     - SBEFIFO usersapce interfaces to perform FFDC (First Failure
       Data Capture) and detect timeouts
    
     - A fix to handle multiple messages in flight
    
    * tag 'fsi-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/joel/fsi:
      fsi: sbefifo: Use interruptible mutex locking
      fsi: sbefifo: Add sysfs file indicating a timeout error
      docs: ABI: testing: Document the SBEFIFO timeout interface
      hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs
      docs: ABI: testing: Document the OCC hwmon FFDC binary interface
      fsi: occ: Store the SBEFIFO FFDC in the user response buffer
      fsi: occ: Use a large buffer for responses
      hwmon: (occ) Remove sequence numbering and checksum calculation
      fsi: occ: Force sequence numbering per OCC
    gregkh committed Oct 22, 2021

Commits on Oct 21, 2021

  1. fsi: sbefifo: Use interruptible mutex locking

    Some SBE operations have extremely large responses and can require
    several minutes to process the response. During this time, the device
    lock must be held. If another process attempts an operation, it will
    wait for the mutex for longer than the kernel hung task watchdog
    allows. Therefore, use the interruptible function to lock the mutex.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Reviewed-by: Joel Stanley <joel@jms.id.au>
    Link: https://lore.kernel.org/r/20210803213016.44739-1-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  2. fsi: sbefifo: Add sysfs file indicating a timeout error

    The SBEFIFO timeout error requires special handling in userspace
    to do recovery operations. Add a sysfs file to indicate a timeout
    error, and notify pollers when a timeout occurs.
    
    This will be used by the openpower-occ-control application.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Reviewed-by: Joel Stanley <joel@jms.id.au>
    Link: https://lore.kernel.org/r/20211019211749.38059-3-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  3. docs: ABI: testing: Document the SBEFIFO timeout interface

    Add documentation for the new sysfs entry that indicates whether or not
    the SBE has timed out.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Link: https://lore.kernel.org/r/20211019211749.38059-2-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  4. hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs

    Save any FFDC provided by the OCC driver, and provide it to userspace
    through a binary sysfs entry. Notify userspace pollers when there is an
    error too.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Link: https://lore.kernel.org/r/20211019205307.36946-5-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  5. docs: ABI: testing: Document the OCC hwmon FFDC binary interface

    Add documentation for the new binary sysfs that will dump the SBEFIFO
    FFDC.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Link: https://lore.kernel.org/r/20211019205307.36946-4-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  6. fsi: occ: Store the SBEFIFO FFDC in the user response buffer

    If the SBEFIFO response indicates an error, store the response in the
    user buffer and return an error. Previously, the user had no way of
    obtaining the SBEFIFO FFDC.
    
    The user's buffer now contains data in the event of a failure. No change
    in the event of a successful transfer.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Link: https://lore.kernel.org/r/20211019205307.36946-3-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  7. fsi: occ: Use a large buffer for responses

    Allocate a large buffer for each OCC to handle response data. This
    removes memory allocation during an operation, and also allows for
    the maximum amount of SBE FFDC.
    
    Previously for the putsram and attn commands, only 32 words would have
    been available, and for getsram, only up to the size of the transfer.
    SBE FFDC might be up to 8Kb.
    
    The SBE interface expects data to be specified in units of words (4
    bytes), defined as OCC_MAX_RESP_WORDS.
    
    This change allows the full FFDC capture to be implemented, where before
    it was not available.
    
    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    Link: https://lore.kernel.org/r/20211019205307.36946-2-eajames@linux.ibm.com
    Signed-off-by: Joel Stanley <joel@jms.id.au>
    Eddie James authored and shenki committed Oct 21, 2021
  8. dt-bindings: iio: frequency: add adrf6780 doc

    Add device tree bindings for the ADRF6780 Upconverter.
    
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
    Link: https://lore.kernel.org/r/20211021113244.56936-2-antoniu.miclaus@analog.com
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    amiclaus authored and jic23 committed Oct 21, 2021
  9. iio: frequency: adrf6780: add support for ADRF6780

    The ADRF6780 is a silicon germanium (SiGe) design, wideband,
    microwave upconverter optimized for point to point microwave
    radio designs operating in the 5.9 GHz to 23.6 GHz frequency
    range.
    
    Datasheet:
    https://www.analog.com/media/en/technical-documentation/data-sheets/ADRF6780.pdf
    
    Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
    Link: https://lore.kernel.org/r/20211021113244.56936-1-antoniu.miclaus@analog.com
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    amiclaus authored and jic23 committed Oct 21, 2021
Older