1. 03 Feb, 2023 3 commits
    • Andy Shevchenko's avatar
      mei: Move uuid_le_cmp() to its only user · f5b3c341
      Andy Shevchenko authored
      There is only a single user of uuid_le_cmp() API, let's make it private
      to that user.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20230202145412.87569-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f5b3c341
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-6.3a' of... · 196db6bb
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-6.3a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      1st set of IIO new device support, features and cleanups for the 6.3 cycle
      
      The usual mixed bag. So far this has been a quiet cycle for IIO.
      
      New device support
      * adi,ad8686
        - Add support for the AD5337 DAC - ID and 8 bit channel support.
      * maxim,max5522
        - New driver for this 2 channel DAC.
      * nxp,imx93-adc
        - New driver for this SoC ADC which is a fresh IP that will probably
          turn up in additional SoCs going forwards.
      * st,magn
        - Add support for magnetometer part of LSM303C which is very similar
          to standalone LIS3MDL already supported.
      * ti,ads7924
        - New driver for this 4 channel, 12-bit I2C ADC.
      * ti,lmp92064
        - New driver for this 12 bit SPI ADC.
      * ti,tmag5273
        - New driver for this 3D Hall-Effect Sensor.
      
      Features
      * core
        - Add a standard structure for the value pairs in IIO_VAL_INT_PLUS_MICRO
          available attributes and similar.
      * cirrus,ep93xx
        - Add DT binding docs and convert driver to DT based probing.
        - Enable testing building with CONFIG_COMPILE_TEST.
      * st,stm32-dfsdm
        - Enable ID register support for discovery of hardware capabilities on
          some devices.
      
      Cleanups and minor fixes
      * core
        - Drop the custom iio_sysfs_match_string_with_gaps().
          The special ability of this function to skip gaps in an array
          was never used by any upstream driver.
        - Sort headers whilst touching this file.
      * tools
        - Fix memory leak in iio_utils.c
      * various
        - leftover i2c probe_new() conversions.
        - scnprintf() -> sysfs_emit() cleanups.
        - hand rolled devm enables -> devm_regulator[_bulk]_get_enable()
        - typo fixes
        - dt-binding cleanup (whitespace, excess quotes and similar)
      * adi,ad7746
        - Set variable without pointless conditional.
      * fsl,mma9551
        - Squash false positives about use of uninitialized variable where
          garbage undergoes an endian conversion before being ignored.
      * measspec,ms5611
        - Switch to fully devm_ managed probe() and so drop explicit remove()
      * qcom,spmi-adc
        - Use dev_err_probe() to suppress deferred print.
      * qcom,spmi-adc5
        - Define a missing channel used for battery identification.
      * qcom,spmi-iadc
        - Document a compatible seen in wild.
      * semtech,sx9360
        - Fix units on semtech,resolution dt-binding.
      * sensiron,scd30
        - dev_err_probe() usage to simplify error paths a little.
      * st,lsm6dsx
        - Add missing mount matrix for the gyro IIO device.
      * taos,tsl2563
        - Respect firmware configured interrupt polarity if present.
        - Use i2c_smbus_write_word_data() in a few cases not previously covered.
        - Factor out duplicated interrupt configuration.
        - Switch to GENMASK() / BIT() from hand coded equivalents.
        - Tidy up unused definitions.
        - Use dev_err_probe() as appropriate.
        - Drop platform_data as no in kernel users and there are better ways to
          do equivalent if any are added.
        - Add local struct device variable to tidy up code.
        - Avoid dance via i2c_client to get the drvdata.
        - Tidy up headers ordering and Makefile ordering.
      * ti,adc128s052
        - Use new spi_get_device_match_data().
        - Drop ACPI_PTR() protection.
        - Sort headers whilst here.
        - Use asm instead of incorrect include of asm-generic/unaligned.h
      * vishay,vcn4000
        - Interrupt support for vcnl4040 (lots of refactoring needed)
      * xilinx,ams
        - Use fwnode_device_is_compatible() instead of open coding it.
      
      * tag 'iio-for-6.3a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (71 commits)
        iio: adc: ad7291: Fix indentation error by adding extra spaces
        iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_config_word()
        iio: accel: mma9551_core: Prevent uninitialized variable in mma9551_read_status_word()
        dt-bindings: iio/proximity: semtech,sx9360: Fix 'semtech,resolution' type
        iio: imu: fix spdx format
        iio: adc: imx93: Fix spelling mistake "geting" -> "getting"
        dt-bindings: iio: cleanup examples - indentation
        dt-bindings: iio: use lowercase hex in examples
        dt-bindings: iio: correct node names in examples
        dt-bindings: iio: minor whitespace cleanups
        dt-bindings: iio: drop unneeded quotes
        dt-bindings: iio: adc: Add NXP IMX93 ADC
        iio: adc: add imx93 adc support
        dt-bindings: iio: adc: add Texas Instruments ADS7924
        iio: adc: ti-ads7924: add Texas Instruments ADS7924 driver
        iio: imu: st_lsm6dsx: add 'mount_matrix' sysfs entry to gyro channel.
        iio: imu: st_lsm6dsx: fix naming of 'struct iio_info' in st_lsm6dsx_shub.c.
        iio: light: vcnl4000: Add interrupt support for vcnl4040
        iio: light: vcnl4000: Make irq handling more generic
        iio: light: vcnl4000: Prepare for more generic setup
        ...
      196db6bb
    • Greg Kroah-Hartman's avatar
      Merge tag 'mhi-for-v6.3' of... · cbce3de2
      Greg Kroah-Hartman authored
      Merge tag 'mhi-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi into char-misc-next
      
      Manivannan writes:
      
      MHI Host
      ========
      
      - Fixed the module description
      
      MHI Endpoint
      ============
      
      - Powered down the MHI EP stack completely during MHI RESET instead of just
        doing transfer abort as the MMIO register access will be prohibited
        afterwards. EP stack will also be powered on again in case the RESET
        happened due to SYS_ERR.
      
      - Added a sanity check before processing the command ring to make sure that
        the channel is supported by the controller.
      
      - Added a check to make sure the xfer_cb is available for the channel
        before trying to send the error status to the client drivers. This
        helps in avoiding a potential null pointer dereference.
      
      - Fixed the debug log of RESET command
      
      - Modified the channel ring handler lock to protect the whole handler
        instead of locking it partially. This helps in avoiding a race that may
        happen if a channel STOP/RESET command is issued by the host parallely.
      
      - Saved the MHI state locally during suspend and resume. Otherwise, the MHI
        EP stack will not be aware of a channel that got disabled and may try to
        access it later.
      
      - Changed the MHI state_lock to mutex instead of spinlock. This helps in
        avoiding the sleeping in atomic bug reported by Dan Carpenter and also
        allows the lock to be held throughout the state change.
      
      - Fixed the off by one error while doing the MHI channel check during
        command ring processing.
      
      MHI Generic
      ===========
      
      - Updated the MHI toplevel Makefile to use Kconfig flags for building the
        host and endpoint sub-directories conditionally.
      
      * tag 'mhi-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi:
        bus: mhi: ep: Fix off by one in mhi_ep_process_cmd_ring()
        bus: mhi: ep: Change state_lock to mutex
        bus: mhi: ep: Save channel state locally during suspend and resume
        bus: mhi: ep: Move chan->lock to the start of processing queued ch ring
        bus: mhi: ep: Fix the debug message for MHI_PKT_TYPE_RESET_CHAN_CMD cmd
        bus: mhi: ep: Only send -ENOTCONN status if client driver is available
        bus: mhi: ep: Check if the channel is supported by the controller
        bus: mhi: ep: Power up/down MHI stack during MHI RESET
        bus: mhi: host: Update mhi driver description
        bus: mhi: Update Makefile to used Kconfig flags
      cbce3de2
  2. 02 Feb, 2023 2 commits
    • Dan Carpenter's avatar
      bus: mhi: ep: Fix off by one in mhi_ep_process_cmd_ring() · 3c54a3ff
      Dan Carpenter authored
      The > comparison should be changed to >= to prevent an out of bounds
      access into the mhi_cntrl->mhi_chan[] array.  The mhi_cntrl->mhi_chan[]
      array is allocated in mhi_ep_chan_init() and has mhi_cntrl->max_chan
      elements.
      
      Fixes: 6de4941c ("bus: mhi: ep: Check if the channel is supported by the controller")
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Reviewed-by: default avatarManivannan Sadhasivam <mani@kernel.org>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Link: https://lore.kernel.org/r/Y9JH5sudiZWvbODv@kiliSigned-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
      3c54a3ff
    • Greg Kroah-Hartman's avatar
      Merge tag 'coresight-next-v6.3' of... · d45fed4f
      Greg Kroah-Hartman authored
      Merge tag 'coresight-next-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux into char-misc-next
      
      Suzuki writes:
      
      coresight: Updates for v6.3
      
       - Dynamic TraceID allocation scheme for CoreSight trace source. Allows systems
         with > 44 CPUs to use the ETMs. TraceID is advertised via AUX_OUTPUT_HWID
         packets in perf.data. Also allows allocating trace-ids for non-CPU bound trace
         components (e.g., Qualcomm TPDA).
      
      - Support for Qualcomm TPDA and TPDM CoreSight devices.
      
      - Support for Ultrasoc SMB CoreSight Sink buffer.
      
      - Fixes for HiSilicon PTT driver
      
      - MAINTAINERS update: Add Reviewer for HiSilicon PTT driver
      
      - Bug fixes for CTI power management and sysfs mode
      
      - Fix CoreSight ETM4x TRCSEQRSTEVRn access
      Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
      
      * tag 'coresight-next-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux: (35 commits)
        coresight: tmc: Don't enable TMC when it's not ready.
        coresight: tpda: fix return value check in tpda_probe()
        Coresight: tpda/tpdm: remove incorrect __exit annotation
        coresight: perf: Output trace id only once
        coresight: Fix uninitialised variable use in coresight_disable
        Documentation: coresight: tpdm: Add dummy comment after sysfs list
        Documentation: coresight: Extend title heading syntax in TPDM and TPDA documentation
        Documentation: trace: Add documentation for TPDM and TPDA
        dt-bindings: arm: Adds CoreSight TPDA hardware definitions
        Coresight: Add TPDA link driver
        coresight-tpdm: Add integration test support
        coresight-tpdm: Add DSB dataset support
        dt-bindings: arm: Add CoreSight TPDM hardware
        Coresight: Add coresight TPDM source driver
        coresight: core: Use IDR for non-cpu bound sources' paths.
        coresight: trace-id: Add debug & test macros to Trace ID allocation
        coresight: events: PERF_RECORD_AUX_OUTPUT_HW_ID used for Trace ID
        kernel: events: Export perf_report_aux_output_id()
        coresight: trace id: Remove legacy get trace ID function.
        coresight: etmX.X: stm: Remove trace_id() callback
        ...
      d45fed4f
  3. 31 Jan, 2023 5 commits
  4. 30 Jan, 2023 2 commits
  5. 29 Jan, 2023 1 commit
    • Greg Kroah-Hartman's avatar
      Merge tag 'fpga-for-v6.3-rc1' of... · 7c306cb1
      Greg Kroah-Hartman authored
      Merge tag 'fpga-for-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga into char-misc-next
      
      Xu writes:
      
      FPGA Manager changes for 6.3-rc1
      
      Microchip:
      
      - Ivan's reliability improvements for Microchip Polarfire FPGA
      
      FPGA DFL doc:
      
      - Randy and Yilun's kernel doc fixes.
        The 2 patches, "fpga: dfl: more kernel-doc corrections" &
        "fpga: dfl: kernel-doc corrections" conflicts with Matthew's FPGA
        patch "fpga: dfl: add basic support for DFHv1" on tty-next. Yilun
        resolved the conflicts on:
        --branch for-next https://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga.git/
        On that branch, Matthew's patch is applied first then kernel doc fixes
        follow.
      
      Intel m10 bmc MFD & sub devices:
      
      - Lee's topic branch merged, to support new BMC board type with new
        PMCI interface to host, as well as its new sub devices.
      Signed-off-by: default avatarXu Yilun <yilun.xu@intel.com>
      
      * tag 'fpga-for-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/fpga/linux-fpga:
        fpga: bridge: return errors in the show() method of the "state" attribute
        fpga: dfl: more kernel-doc corrections
        fpga: dfl: kernel-doc corrections
        fpga: microchip-spi: separate data frame write routine
        fpga: microchip-spi: rewrite status polling in a time measurable way
        fpga: microchip-spi: move SPI I/O buffers out of stack
        mfd: intel-m10-bmc: Add PMCI driver
        fpga: m10bmc-sec: Make rsu status type specific
        fpga: m10bmc-sec: Create helpers for rsu status/progress checks
        mfd: intel-m10-bmc: Prefix register defines with M10BMC_N3000
        fpga: intel-m10-bmc: Rework flash read/write
        mfd: intel-m10-bmc: Support multiple CSR register layouts
        mfd: intel-m10-bmc: Split into core and spi specific parts
        mfd: intel-m10-bmc: Rename the local variables
        mfd: intel-m10-bmc: Create m10bmc_platform_info for type specific info
        mfd: intel-m10-bmc: Add missing includes to header
      7c306cb1
  6. 28 Jan, 2023 18 commits
  7. 27 Jan, 2023 9 commits