1. 13 Apr, 2023 8 commits
  2. 12 Apr, 2023 2 commits
    • Jonathan Cameron's avatar
      iio: imu: lsm6dsx: Support SMO8B30 ACPI ID for LSM6DS3TR-C · bd66b6ac
      Jonathan Cameron authored
      ID seen in the wild and it is a valid ST micro ID.
      An offset of 1 for the device ID enum is needed when adding support for
      retrieving the ID from device_get_match_data() to allow detection of
      NULL pointer and fallback to i2c_device_id table.
      
      DSDT chunk cropped for relevant parts.
      
         Scope (_SB.PCI0.I2C5)
          {
              Device (DEV)
              {
                  Name (_HID, EisaId ("SMO8B30"))  // _HID: Hardware ID
                  Name (_CID, EisaId ("SMO8B30"))  // _CID: Compatible ID
                  Name (_UID, Zero)  // _UID: Unique ID
                  Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
                  {
                      Name (RBUF, ResourceTemplate ()
                      {
                          I2cSerialBusV2 (0x006A, ControllerInitiated, 0x00061A80,
                              AddressingMode7Bit, "\\_SB.PCI0.I2C5",
                              0x00, ResourceConsumer, , Exclusive,
                              )
                      })
                      Return (RBUF) /* \_SB_.PCI0.I2C5.DEV_._CRS.RBUF */
                  }
      
                  Method (ROTM, 0, NotSerialized)
                  {
                      Name (RBUF, Package (0x03)
                      {
                          "0 -1 0",
                          "1 0 0",
                          "0 0 1"
                      })
                      Return (RBUF) /* \_SB_.PCI0.I2C5.DEV_.ROTM.RBUF */
                  }
      ...
      
      Link: https://lore.kernel.org/all/20230129182441.082f29d0@jic23-huawei/Reported-by: default avatarDarrell Kavanagh <darrell.kavanagh@gmail.com>
      Tested-by: default avatarDarrell Kavanagh <darrell.kavanagh@gmail.org>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      Link: https://lore.kernel.org/r/20230130201018.981024-2-jic23@kernel.org
      bd66b6ac
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-6.4a' of... · fba51482
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-6.4a' 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.4 cycle.
      
      New device support
      * bosch,bmp280
        - Add support for BMP580 - includes significant refactoring and general
          driver cleanup + support for non-volatile memory for trimming and config
          parameters.
      * rohm BU27034
        - New driver for this 3 channel ambient light sensor.
        - New support library for devices where both integration time and
          amplifier gain are configurable.  In these cases a scale change
          may require changing bother underlying values. This library module
          provides code to help with this.
      * st,accel
        - Add support for IIS328DQ (ID only as compatible wtih LIS331DL)
      * st,lsm6dsx
        - Add support for ASM330LHB automotive MEMS sensor.
      * ti,ads1100, ads1000
        - New driver for these 16 bit ADCs.
      * ti,tmp117
        - Add support for older tmp116 device. Includes some general driver cleanup.
      
      Staging driver drops
      * adi,ade7854
        - Driver was a very long way from compliant with IIO infrastructure and ABI.
          If anyone wants a non staging version of this driver they are better off
          starting from scratch. Hence drop it and the associated meter.h header.
      
      Features
      * adi,ad7441r
        - Add DT binding to set sink current for digital input.
      * semtech,sx9324,9360
        - Support older register mapping from firmware designed for windows.
      
      Core improvements.
      * Move iio_trigger_poll() docs to next to the implementation and add a note
        on expected caller context.
      * Rename iio_trigger_poll_chained() to iio_trigger_poll_nested() so
        as to use more standard / common terminology.
      * Improve main ABI docs references to offset and scale for raw values by
        making them consistent and clear.
      
      Cleanups and minor fixes:
      * adi,ad5592r
        - Add GPIO names - useful for debug.
      * adi,ad7441r
        - Fix current input, loop powered mode configuration setup.
      * adi,adis16475
        - Fix wrong commented value for minimum advised lower rate.
      * adi,admv1013
        - Use devm_clk_get_enabled() to reduce boilerplate.
      * adi,ads1210
        - Fix wrong bits for writing config register (late fix and has
          been broken a long time so not rushed upstream)
      * amlogic,meson-saradc
        - Improve cleanup in error handling if BL30 handshake fails.
      * apex-embedded,stx104
        - Migrate to regmap and use regmap_read_poll_timeout() to neatly handle
          retries.
        - Add local mutex to close various races.
        - Use define U16_MAX rather than value for limit.
        - Improve code readability with minor reorganization.
      * atmel,ad91-sama5d2
        - Drop trivial dead code.
      * kionix,kx022a
        - Drop unused structure element.
      * linear,ltc2983
        - Reorganize bindings doc to enable unevaluatedProperties to be set
          in one place for all child nodes.
        - Make binding for adi,custom-thermocouple accept signed values.
      * maxim,max44000
        - Add OF Device matching (of_match_table was not correctly set).
      * maxim,max5522
        - Missing static
      * measurement-computing,cio-dac
        - Fix wrong part name in comments.
        - Migrate to regmap.
        - Improve includes by replacing bitops.h with more direct bits.h
      * qcom,pm8xxx-xoadc
        - Remove a check that can never fail.
      * renesas,rcar-gyroadc
        - DT binding documentation improvements.
        - Tidy up an unused warning with __maybe_unused.
      * semtech,sx_common
        - Drop docs for a structure element that doesn't exist.
      * semtech,sx9500
        - Drop ACPI_PTR() and of_match_ptr() protections that just complicate
          the code / block some firmware registration types that would otherwise
          work.
      * sensiron,sps30
        - Comment formatting tidy up.
      * st,sensors
        - Drop duplicate text in DT binding.
      * st,stm32-adc
        - Add some missing static markings.
      * ti,ads1100
        - Use correct return code in dev_err_probe() call.
      * x-powers,axp20x_adc - precursor series to simplify addition of AXP192.
        - General code cleanup / minor refactoring for better readabilty of code.
        - Switch from boolean value to mask for adc_en2 field to avoid hard coding
          a mask that will be different in AXP192
      
      * tag 'iio-for-6.4a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (63 commits)
        MAINTAINERS: Add ROHM BU27034
        iio: light: ROHM BU27034 Ambient Light Sensor
        dt-bindings: iio: light: Support ROHM BU27034
        MAINTAINERS: Add IIO gain-time-scale helpers
        iio: light: Add gain-time-scale helpers
        doc: Make sysfs-bus-iio doc more exact
        iio: dac: set variable max5522_channels storage-class-specifier to static
        dt-bindings: iio: temperature: ltc2983: Make 'adi,custom-thermocouple' signed
        dt-bindings: iio: temperature: ltc2983: Fix child node unevaluated properties
        iio: addac: stx104: Use regmap_read_poll_timeout() for conversion poll
        iio: addac: stx104: Migrate to the regmap API
        iio: addac: stx104: Improve indentation in stx104_write_raw()
        iio: addac: stx104: Use define rather than hardcoded limit for write val
        iio: addac: stx104: Fix race condition when converting analog-to-digital
        iio: addac: stx104: Fix race condition for stx104_write_raw()
        dt-bindings: iio: st-sensors: Fix repeated text
        staging: iio: resolver: ads1210: fix config mode
        iio: adc: ti-ads1100: fix error code in probe()
        iio: accel: add support for IIS328DQ variant
        dt-bindings: iio: st-sensors: Add IIS328DQ accelerometer
        ...
      fba51482
  3. 10 Apr, 2023 19 commits
  4. 09 Apr, 2023 5 commits
    • Linus Torvalds's avatar
      Linux 6.3-rc6 · 09a9639e
      Linus Torvalds authored
      09a9639e
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v6.3_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · faf8f418
      Linus Torvalds authored
      Pull perf fixes from Borislav Petkov:
      
       - Fix "same task" check when redirecting event output
      
       - Do not wait unconditionally for RCU on the event migration path if
         there are no events to migrate
      
      * tag 'perf_urgent_for_v6.3_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Fix the same task check in perf_event_set_output
        perf: Optimize perf_pmu_migrate_context()
      faf8f418
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.3_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4ba115e2
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Add a new Intel Arrow Lake CPU model number
      
       - Fix a confusion about how to check the version of the ACPI spec which
         supports a "online capable" bit in the MADT table which lead to a
         bunch of boot breakages with Zen1 systems and VMs
      
      * tag 'x86_urgent_for_v6.3_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/cpu: Add model number for Intel Arrow Lake processor
        x86/acpi/boot: Correct acpi_is_processor_usable() check
        x86/ACPI/boot: Use FADT version to check support for online capable
      4ba115e2
    • Linus Torvalds's avatar
      Merge tag 'cxl-fixes-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · c08cfd67
      Linus Torvalds authored
      Pull compute express link (cxl) fixes from Dan Williams:
       "Several fixes for driver startup regressions that landed during the
        merge window as well as some older bugs.
      
        The regressions were due to a lack of testing with what the CXL
        specification calls Restricted CXL Host (RCH) topologies compared to
        the testing with Virtual Host (VH) CXL topologies. A VH topology is
        typical PCIe while RCH topologies map CXL endpoints as Root Complex
        Integrated endpoints. The impact is some driver crashes on startup.
      
        This merge window also added compatibility for range registers (the
        mechanism that CXL 1.1 defined for mapping memory) to treat them like
        HDM decoders (the mechanism that CXL 2.0 defined for mapping
        Host-managed Device Memory). That work collided with the new region
        enumeration code that was tested with CXL 2.0 setups, and fails with
        crashes at startup.
      
        Lastly, the DOE (Data Object Exchange) implementation for retrieving
        an ACPI-like data table from CXL devices is being reworked for v6.4.
        Several fixes fell out of that work that are suitable for v6.3.
      
        All of this has been in linux-next for a while, and all reported
        issues [1] have been addressed.
      
        Summary:
      
         - Fix several issues with region enumeration in RCH topologies that
           can trigger crashes on driver startup or shutdown.
      
         - Fix CXL DVSEC range register compatibility versus region
           enumeration that leads to startup crashes
      
         - Fix CDAT endiannes handling
      
         - Fix multiple buffer handling boundary conditions
      
         - Fix Data Object Exchange (DOE) workqueue usage vs
           CONFIG_DEBUG_OBJECTS warn splats"
      
      Link: http://lore.kernel.org/r/20230405075704.33de8121@canb.auug.org.au [1]
      
      * tag 'cxl-fixes-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
        cxl/hdm: Extend DVSEC range register emulation for region enumeration
        cxl/hdm: Limit emulation to the number of range registers
        cxl/region: Move coherence tracking into cxl_region_attach()
        cxl/region: Fix region setup/teardown for RCDs
        cxl/port: Fix find_cxl_root() for RCDs and simplify it
        cxl/hdm: Skip emulation when driver manages mem_enable
        cxl/hdm: Fix double allocation of @cxlhdm
        PCI/DOE: Fix memory leak with CONFIG_DEBUG_OBJECTS=y
        PCI/DOE: Silence WARN splat with CONFIG_DEBUG_OBJECTS=y
        cxl/pci: Handle excessive CDAT length
        cxl/pci: Handle truncated CDAT entries
        cxl/pci: Handle truncated CDAT header
        cxl/pci: Fix CDAT retrieval on big endian
      c08cfd67
    • Linus Torvalds's avatar
      Merge tag '6.3-rc5-smb3-cifs-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · cdc9718d
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Two cifs/smb3 client fixes, one for stable:
      
         - double lock fix for a cifs/smb1 reconnect path
      
         - DFS prefixpath fix for reconnect when server moved"
      
      * tag '6.3-rc5-smb3-cifs-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: double lock in cifs_reconnect_tcon()
        cifs: sanitize paths in cifs_update_super_prepath.
      cdc9718d
  5. 08 Apr, 2023 6 commits
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 68047c48
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are a small set of various small driver changes for 6.3-rc6.
        Included in here are:
      
         - iio driver fixes for reported problems
      
         - coresight hwtracing bugfix for reported problem
      
         - small counter driver bugfixes
      
        All have been in linux-next for a while with no reported problems"
      
      * tag 'char-misc-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        coresight: etm4x: Do not access TRCIDR1 for identification
        coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug
        iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip
        iio: adc: palmas_gpadc: fix NULL dereference on rmmod
        counter: 104-quad-8: Fix Synapse action reported for Index signals
        counter: 104-quad-8: Fix race condition between FLAG and CNTR reads
        iio: adc: max11410: fix read_poll_timeout() usage
        iio: dac: cio-dac: Fix max DAC write value check for 12-bit
        iio: light: cm32181: Unregister second I2C client if present
        iio: accel: kionix-kx022a: Get the timestamp from the driver's private data in the trigger_handler
        iio: adc: ad7791: fix IRQ flags
        iio: buffer: make sure O_NONBLOCK is respected
        iio: buffer: correctly return bytes written in output buffers
        iio: light: vcnl4000: Fix WARN_ON on uninitialized lock
        iio: adis16480: select CONFIG_CRC32
        drivers: iio: adc: ltc2497: fix LSB shift
        iio: adc: qcom-spmi-adc5: Fix the channel name
      68047c48
    • Linus Torvalds's avatar
      Merge tag 'tty-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · aa46fe36
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty and serial driver fixes for some reported
        problems:
      
         - fsl_uart driver bugfixes
      
         - sh-sci serial driver bugfixes
      
         - renesas serial driver DT binding bugfixes
      
         - 8250 DMA bugfix
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'tty-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        tty: serial: sh-sci: Fix Rx on RZ/G2L SCI
        tty: serial: fsl_lpuart: fix crash in lpuart_uport_is_active
        tty: serial: fsl_lpuart: avoid checking for transfer complete when UARTCTRL_SBK is asserted in lpuart32_tx_empty
        serial: 8250: Prevent starting up DMA Rx on THRI interrupt
        dt-bindings: serial: renesas,scif: Fix 4th IRQ for 4-IRQ SCIFs
        tty: serial: sh-sci: Fix transmit end interrupt handler
      aa46fe36
    • Linus Torvalds's avatar
      Merge tag 'usb-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · a211b1c0
      Linus Torvalds authored
      Pull USB bugfixes from Greg KH:
       "Here are some small USB bugfixes for 6.3-rc6 that have been in my
        tree, and in linux-next, for a while. Included in here are:
      
         - new usb-serial driver device ids
      
         - xhci bugfixes for reported problems
      
         - gadget driver bugfixes for reported problems
      
         - dwc3 new device id
      
        All have been in linux-next with no reported problems"
      
      * tag 'usb-6.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: cdnsp: Fixes error: uninitialized symbol 'len'
        usb: gadgetfs: Fix ep_read_iter to handle ITER_UBUF
        usb: gadget: f_fs: Fix ffs_epfile_read_iter to handle ITER_UBUF
        usb: typec: altmodes/displayport: Fix configure initial pin assignment
        usb: dwc3: pci: add support for the Intel Meteor Lake-S
        xhci: Free the command allocated for setting LPM if we return early
        Revert "usb: xhci-pci: Set PROBE_PREFER_ASYNCHRONOUS"
        xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a passthrough iommu
        USB: serial: option: add Quectel RM500U-CN modem
        usb: xhci: tegra: fix sleep in atomic call
        USB: serial: option: add Telit FE990 compositions
        USB: serial: cp210x: add Silicon Labs IFS-USB-DATACABLE IDs
      a211b1c0
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · a79d5c76
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Four small fixes, all in drivers. They're all one or two lines except
        for the ufs one, but that's a simple revert of a previous feature"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param()
        scsi: qla2xxx: Fix memory leak in qla2x00_probe_one()
        scsi: mpi3mr: Handle soft reset in progress fault code (0xF002)
        scsi: Revert "scsi: ufs: core: Initialize devfreq synchronously"
      a79d5c76
    • Linus Torvalds's avatar
      Merge tag 'block-6.3-2023-04-06' of git://git.kernel.dk/linux · da0af3c5
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Ensure that ublk always reads the whole sqe upfront (me)
      
       - Fix for a block size probing issue with ublk (Ming)
      
       - Fix for the bio based polling (Keith)
      
       - NVMe pull request via Christoph:
            - fix discard support without oncs (Keith Busch)
      
       - Partition scan error handling regression fix (Yu)
      
      * tag 'block-6.3-2023-04-06' of git://git.kernel.dk/linux:
        block: don't set GD_NEED_PART_SCAN if scan partition failed
        block: ublk: make sure that block size is set correctly
        ublk: read any SQE values upfront
        nvme: fix discard support without oncs
        blk-mq: directly poll requests
      da0af3c5
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.3-2023-04-06' of git://git.kernel.dk/linux · d3f05a4c
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Just two minor fixes for provided buffers - one where we could
        potentially leak a buffer, and one where the returned values was
        off-by-one in some cases"
      
      * tag 'io_uring-6.3-2023-04-06' of git://git.kernel.dk/linux:
        io_uring: fix memory leak when removing provided buffers
        io_uring: fix return value when removing provided buffers
      d3f05a4c