1. 21 Oct, 2023 5 commits
  2. 20 Oct, 2023 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'counter-updates-for-6.7a' of... · 2399cde8
      Greg Kroah-Hartman authored
      Merge tag 'counter-updates-for-6.7a' of git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter into char-misc-next
      
      William writes:
      
      First set of Counter updates for the 6.7 cycle
      
      A minor typographical error is fixed in the description comment block
      for struct counter_component.
      
      * tag 'counter-updates-for-6.7a' of git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter:
        counter: chrdev: remove a typo in header file comment
      2399cde8
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-6.7a' of... · b4b6cc10
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-6.7a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
      
      Jonathan writes:
      
      IIO: 1st set of new device support, features and cleanup for 6.7
      
      Particularly great to see a resolver driver move out of staging via a
      massive set of changes.  Only took 13 years :)
      
      One small patch added then reverted due to a report of test breakage
      (ashai-kasei,ak8975: Drop deprecated enums.)
      
      An immutable branch was used for some hid-senors changes in case
      there was a need to take them into the HID tree as well.
      
      New device support
      -----------------
      
      adi,hmc425a
        - Add support for HMC540SLP3E broadband 4-bit digital attenuator.
      kionix,kx022a
        - Add support for the kx132-1211 accelerometer. Require significant
          driver rework to enable this including add a chip type specific
          structure to deal with the chip differences.
        - Add support for the kx132acr-lbz accelerometer (subset of the kx022a
          feature set).
      lltc,ltc2309
        - New driver for this 8 channel ADC.
      microchip,mcp3911
        - Add support for rest of mcp391x family of ADCs (there are various
          differences beyond simple channel count variation.
          Series includes some general driver cleanup.
      microchip,mcp3564
        - New driver for MCP3461, MCP3462, MCP3464, MCP3541, MCP3562, MCP3564
          and their R variants of 16/24bit ADCs. A few minor fixed followed.
      rohm,bu1390
        - New driver for this pressure sensor.
      
      Staging graduation
      ------------------
      
      adi,ad1210 (after 13 or so years :)
        - More or less a complete (step-wise) rewrite of this resolver driver
          to bring it up to date with modern IIO standards.  The fault signal
          handling mapping to event channels was particularly complex and
          significant part of the changes.
      
      Features
      --------
      
      iio-core
       - Add chromacity and color temperature channel types.
      adi,ad7192
        - Oversampling ratio control (called fast settling in datasheet).
      adi,adis16475
        - Add core support and then driver support for delta angle and delta
          velocity channels. These are intended for summation to establish
          angle and velocity changes over larger timescales.  Fix was
          needed for alignment after the temperature channel.  Further fix
          reduced set of devices for which the buffer support was applicable
          as seems burst reads don't cover these on all devices.
      hid-sensors-als
        - Chromacity and color temperatures support including in amd sfh.
      stx104
        - Add support for counter subsystem to this multipurpose device.
      ti,twl6030
        - Add missing device tree binding description.
      
      Clean up and minor fixes.
      ------------------------
      
      treewide
        - Drop some unused declarations across IIO.
        - Make more use of device_get_match_data() instead of OF specific
          approaches.
      Similar cleanup to sets of drivers.
        - Stop platform remove callbacks returning anything by using the
          temporary remove_new() callback.
        - Use i2c_get_match_data() to cope nicely with all types of ID table
          entry.
        - Use device_get_match_data() for various platform device to cope
          with more types of firmware.
        - Convert from enum to pointer in ID tables allowing use of
          i2c_get_match_data().
        - Fix sorting on some ID tables.
        - Include specific string helper headers rather than simply string_helpers.h
      docs
        - Better description of the ordering requirements etc for
          available_scan_masks.
      tools
        - Handle alignment of mixed sizes where the last element isn't the biggest
          correctly. Seems that doesn't happen often!
      adi,ad2s1210
        - Lots of work from David Lechner on this driver including a few fixes
          that are going with the rework to avoid slowing that down.
      adi,ad4310
        - Replace deprecated devm_clk_register()
      adi,ad74413r
        - Bring the channel function setting inline with the datasheet.
      adi,ad7192
        - Change to FIELD_PREP(), FIELD_GET().
        - Calculate f_order from the sinc filter and chop filter states.
        - Move more per chip config into data in struct ad7192_chip_info
        - Cleanup unused parameter in channel macros.
      adi,adf4350
        - Make use of devm_* to simplify error handling for many of the setup
          calls in probe() / tear down in remove() and error paths.  Some more
          work to be done on this one.
        - Use dev_err_probe() for errors in probe() callback.
      adi,adf4413
        - Typo in function name prefix.
      adi,adxl345
        - Add channel scale to the chip type specific structure and drop
          using a type field previously used for indirection.
      asahi,ak8985
        - Fix a mismatch introduced when switching from enum->pointers
          in the match tables.
      amlogic,meson
        - Expand error logging during probe.
      invensense,mpu6050
        - Support level-shifter control. Whilst no one is sure exactly what this
          is doing it is needed for some old boards.
        - Document mount-matrix dt-binding.
      mediatek,mt6577
        - Use devm_clk_get_enabled() to replace open coded version and move
          everything over to being device managed. Drop now empty remove()
          callback. Fix follows to put the drvdata back.
        - Use dev_err_probe() for error reporting in probe() callback.
      memsic,mxc4005
        - Add of_match_table.
      microchip,mcp4725
        - Move various chip specific data from being looked up by chip ID to
          data in the chip type specific structure.
      silicon-labs,si7005
        - Add of_match_table and entry in trivial-devices.yaml
      st,lsm6dsx
        - Add missing mount-matrix dt binding documentation.
      st,spear
        - Use devm_clk_get_enabled() and some other devm calls to move everything
          over to being device managed.  Drop now empty remove() callback.
        - Use dev_err_probe() to better handled deferred probing and tidy up
          error reporting in probe() callback.
      st,stm32-adc
        - Add a bit of additional checking in probe() to protect against a NULL
          pointer (no known path to trigger it today).
        - Replace deprecated strncpy()
      ti,ads1015
        - Allow for edge triggers.
        - Document interrupt in dt-bindings.
      
      * tag 'iio-for-6.7a' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (201 commits)
        iio: Use device_get_match_data()
        iio: adc: MCP3564: fix warn: unsigned '__x' is never less than zero.
        dt-bindings: trivial-devices: add silabs,si7005
        iio: si7005: Add device tree support
        drivers: imu: adis16475.c: Remove scan index from delta channels
        dt-bindings: iio: imu: st,lsm6dsx: add mount-matrix property
        iio: resolver: ad2s1210: remove of_match_ptr()
        iio: resolver: ad2s1210: remove DRV_NAME macro
        iio: resolver: ad2s1210: move out of staging
        staging: iio: resolver: ad2s1210: simplify code with guard(mutex)
        staging: iio: resolver: ad2s1210: clear faults after soft reset
        staging: iio: resolver: ad2s1210: refactor sample toggle
        staging: iio: resolver: ad2s1210: remove fault attribute
        staging: iio: resolver: ad2s1210: add label attribute support
        staging: iio: resolver: ad2s1210: add register/fault support summary
        staging: iio: resolver: ad2s1210: implement fault events
        iio: event: add optional event label support
        staging: iio: resolver: ad2s1210: rename DOS reset min/max attrs
        staging: iio: resolver: ad2s1210: convert DOS mismatch threshold to event attr
        staging: iio: resolver: ad2s1210: convert DOS overrange threshold to event attr
        ...
      b4b6cc10
  3. 18 Oct, 2023 22 commits
  4. 17 Oct, 2023 1 commit
  5. 16 Oct, 2023 4 commits
  6. 15 Oct, 2023 6 commits
    • Linus Torvalds's avatar
      Linux 6.6-rc6 · 58720809
      Linus Torvalds authored
      58720809
    • Linus Torvalds's avatar
      Revert "x86/smp: Put CPUs into INIT on shutdown if possible" · fbe1bf1e
      Linus Torvalds authored
      This reverts commit 45e34c8a, and the
      two subsequent fixes to it:
      
        3f874c9b ("x86/smp: Don't send INIT to non-present and non-booted CPUs")
        b1472a60 ("x86/smp: Don't send INIT to boot CPU")
      
      because it seems to result in hung machines at shutdown.  Particularly
      some Dell machines, but Thomas says
      
       "The rest seems to be Lenovo and Sony with Alderlake/Raptorlake CPUs -
        at least that's what I could figure out from the various bug reports.
      
        I don't know which CPUs the DELL machines have, so I can't say it's a
        pattern.
      
        I agree with the revert for now"
      
      Ashok Raj chimes in:
      
       "There was a report (probably this same one), and it turns out it was a
        bug in the BIOS SMI handler.
      
        The client BIOS's were waiting for the lowest APICID to be the SMI
        rendevous master. If this is MeteorLake, the BSP wasn't the one with
        the lowest APIC and it triped here.
      
        The BIOS change is also being pushed to others for assimilation :)
      
        Server BIOS's had this correctly for a while now"
      
      and it does look likely to be some bad interaction between SMI and the
      non-BSP cores having put into INIT (and thus unresponsive until reset).
      
      Link: https://bbs.archlinux.org/viewtopic.php?pid=2124429
      Link: https://www.reddit.com/r/openSUSE/comments/16qq99b/tumbleweed_shutdown_did_not_finish_completely/
      Link: https://forum.artixlinux.org/index.php/topic,5997.0.html
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=2241279Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Ashok Raj <ashok.raj@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fbe1bf1e
    • Xuan Zhuo's avatar
      virtio_net: fix the missing of the dma cpu sync · 5720c43d
      Xuan Zhuo authored
      Commit 295525e2 ("virtio_net: merge dma operations when filling
      mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when
      the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we
      do not want to do the sync for the entire page_frag. But that misses the
      sync for the current area.
      
      This patch does cpu sync regardless of whether the ref is zero or not.
      
      Fixes: 295525e2 ("virtio_net: merge dma operations when filling mergeable buffers")
      Reported-by: default avatarMichael Roth <michael.roth@amd.com>
      Closes: http://lore.kernel.org/all/20230926130451.axgodaa6tvwqs3ut@amd.comSigned-off-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
      Acked-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5720c43d
    • Linus Torvalds's avatar
      Merge tag 'usb-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 11d3f726
      Linus Torvalds authored
      Pull USB / Thunderbolt fixes from Greg KH:
       "Here are some USB and Thunderbolt driver fixes for 6.6-rc6 to resolve
        a number of small reported issues. Included in here are:
      
         - thunderbolt driver fixes
      
         - xhci driver fixes
      
         - cdns3 driver fixes
      
         - musb driver fixes
      
         - a number of typec driver fixes
      
         - a few other small driver fixes
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (22 commits)
        usb: typec: ucsi: Use GET_CAPABILITY attributes data to set power supply scope
        usb: typec: ucsi: Fix missing link removal
        usb: typec: altmodes/displayport: Signal hpd low when exiting mode
        xhci: Preserve RsvdP bits in ERSTBA register correctly
        xhci: Clear EHB bit only at end of interrupt handler
        xhci: track port suspend state correctly in unsuccessful resume cases
        usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
        usb: typec: ucsi: Clear EVENT_PENDING bit if ucsi_send_command fails
        usb: misc: onboard_hub: add support for Microchip USB2412 USB 2.0 hub
        usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
        usb: cdns3: Modify the return value of cdns_set_active () to void when CONFIG_PM_SLEEP is disabled
        usb: dwc3: Soft reset phy on probe for host
        usb: hub: Guard against accesses to uninitialized BOS descriptors
        usb: typec: qcom: Update the logic of regulator enable and disable
        usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
        usb: musb: Get the musb_qh poniter after musb_giveback
        usb: musb: Modify the "HWVers" register address
        usb: cdnsp: Fixes issue with dequeuing not queued requests
        thunderbolt: Restart XDomain discovery handshake after failure
        thunderbolt: Correct TMU mode initialization from hardware
        ...
      11d3f726
    • Linus Torvalds's avatar
      Merge tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 41226a36
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty/serial driver fixes for 6.6-rc6 that resolve
        some reported issues. Included in here are:
      
         - serial core pm runtime fix for issue reported by many
      
         - 8250_omap driver fix
      
         - rs485 spinlock fix for reported problem
      
         - ams-delta bugfix for previous tty api changes in -rc1 that missed
           this driver that never seems to get built in any test systems
      
        All of these have been in linux-next for over a week with no reported
        problems"
      
      * tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        ASoC: ti: ams-delta: Fix cx81801_receive() argument types
        serial: core: Fix checks for tx runtime PM state
        serial: 8250_omap: Fix errors with no_console_suspend
        serial: Reduce spinlocked portion of uart_rs485_config()
      41226a36
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · a477e3a7
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here is a small set of char/misc and other smaller driver subsystem
        fixes for 6.6-rc6. Included in here are:
      
         - lots of iio driver fixes
      
         - binder memory leak fix
      
         - mcb driver fixes
      
         - counter driver fixes
      
         - firmware loader documentation fix
      
         - documentation update for embargoed hardware issues
      
        All of these have been in linux-next for over a week with no reported
        issues"
      
      * tag 'char-misc-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (22 commits)
        iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
        dt-bindings: iio: adc: adi,ad7292: Fix additionalProperties on channel nodes
        iio: adc: ad7192: Correct reference voltage
        iio: light: vcnl4000: Don't power on/off chip in config
        iio: addac: Kconfig: update ad74413r selections
        iio: pressure: dps310: Adjust Timeout Settings
        iio: imu: bno055: Fix missing Kconfig dependencies
        iio: adc: imx8qxp: Fix address for command buffer registers
        iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data()
        iio: irsd200: fix -Warray-bounds bug in irsd200_trigger_handler
        dt-bindings: iio: rohm,bu27010: add missing vdd-supply to example
        binder: fix memory leaks of spam and pending work
        firmware_loader: Update contact emails for ABI docs
        Documentation: embargoed-hardware-issues.rst: Clarify prenotifaction
        mcb: remove is_added flag from mcb_device struct
        coresight: tmc-etr: Disable warnings for allocation failures
        coresight: Fix run time warnings while reusing ETR buffer
        iio: admv1013: add mixer_vgate corner cases
        iio: pressure: bmp280: Fix NULL pointer exception
        iio: dac: ad3552r: Correct device IDs
        ...
      a477e3a7