]> git.hungrycats.org Git - linux/commitdiff
Merge tag 'char-misc-7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2026 01:44:26 +0000 (15:44 -1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2026 01:44:26 +0000 (15:44 -1000)
Pull Char/Misc/IIO/others driver updates from Greg KH:
 "Here is the big set of char/misc/android/iio and other small driver
  subsystem patches for 7.4-rc1. Loads of stuff in here, larger than
  normal. Highlights include:

   - removal of the C binder code, the rust version is stable and will
     be used going forward in a few billion devices. Great job by those
     developers

   - loads and loads of IIO driver updates and feature additions

   - speakup driver fixes and updates

   - mhi driver updates

   - mei driver updates

   - xillybus driver fixes

   - comedi driver fixes

   - lots of coresight driver updates

   - Interconnect driver updates

   - nvmem driver updates and fixes

   - slimbus driver updates and fixes

   - spmi driver updates and fixes

   - lots of tiny misc and char driver fixes based on people scanning
     for things

  All of these have been in linux-next for a while with no reported
  issues, other than a merge conflict with one of the rust tree files,
  which should be simple to resolve"

* tag 'char-misc-7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (446 commits)
  rust_binder: wake epoll on self-work queued to poll thread
  rust_binder: avoid overflow in get_node_debug_info()
  MAINTAINERS: Add Abel as SPMI co-maintainer
  spmi: mtk-pmif: Fix clock reference leak in mtk_spmi_bus_probe()
  iio: adc: qcom-spmi-iadc: Remove regmap R/W wrapper functions
  iio: adc: qcom-spmi-iadc: Migrate to devm_spmi_subdevice_alloc_and_add()
  misc: qcom-coincell: Migrate to devm_spmi_subdevice_alloc_and_add()
  phy: qualcomm: eusb2-repeater: Migrate to devm_spmi_subdevice_alloc_and_add()
  power: reset: qcom-pon: Migrate to devm_spmi_subdevice_alloc_and_add()
  nvmem: qcom-spmi-sdam: Migrate to devm_spmi_subdevice_alloc_and_add()
  spmi: Add helper to get a parent SPMI device
  spmi: Implement spmi_subdevice_alloc_and_add() and devm variant
  spmi: Remove unneeded goto in spmi_device_add() error path
  spmi: Print error status with %pe format
  spmi: Remove redundant dev_name() print in spmi_device_add()
  spmi: Fix potential use-after-free by grabbing of_node reference
  spmi: mtk-pmif: Add workaround for FSM lockup/error in read operation
  MAINTAINERS: Add Qualcomm SPMI controller entry
  spmi: pmic-arb: return 0 in spmi_pmic_arb_register_buses() on success
  comedi: addi_apci_3xxx: fix subdevice count underallocation
  ...

15 files changed:
1  2 
Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml
Documentation/devicetree/bindings/trivial-devices.yaml
MAINTAINERS
drivers/android/binder/allocation.rs
drivers/android/binder/context.rs
drivers/android/binder/freeze.rs
drivers/android/binder/node.rs
drivers/android/binder/page_range.rs
drivers/android/binder/process.rs
drivers/android/binder/range_alloc/tree.rs
drivers/android/binder/rust_binderfs.c
drivers/android/binder/thread.rs
drivers/android/binder/transaction.rs
drivers/pci/quirks.c
rust/kernel/miscdevice.rs

diff --cc MAINTAINERS
index bccf83d31ac6e4d8ef311ae0bf199a31f77ae2b9,80a4fac5f346d7a1e96e9e7b7b8a3a7f15155ee1..441385cd4884f8e5c97fc90fd252bd4a5428fff3
@@@ -4459,15 -4472,15 +4492,24 @@@ S:   Orpha
  F:    Documentation/devicetree/bindings/sound/axentia,*
  F:    sound/soc/atmel/tse850-pcm5142.c
  
+ AXIADO SARADC DRIVER
+ M:    Petar Stepanovic <pstepanovic@axiado.com>
+ M:    Akhila Kavi <akavi@axiado.com>
+ M:    Prasad Bolisetty <pbolisetty@axiado.com>
+ L:    linux-iio@vger.kernel.org
+ S:    Maintained
+ F:    Documentation/devicetree/bindings/iio/adc/axiado,ax3000-saradc.yaml
+ F:    drivers/iio/adc/axiado_saradc.c
+ 
 +AXIADO SGPIO DRIVER
 +M:    Petar Stepanovic <pstepanovic@axiado.com>
 +M:    SriNavmani A <srinavmani@axiado.com>
 +M:    Prasad Bolisetty <pbolisetty@axiado.com>
 +L:    linux-gpio@vger.kernel.org
 +S:    Supported
 +F:    Documentation/devicetree/bindings/gpio/axiado,ax3005-sgpio.yaml
 +F:    drivers/gpio/gpio-axiado-sgpio.c
 +
  AXIS ARTPEC ARM64 SoC SUPPORT
  M:    Jesper Nilsson <jesper.nilsson@axis.com>
  M:    Lars Persson <lars.persson@axis.com>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index e0ed20f510fd139c4595fa246e15e1a0b70644f2,177e90a1e5a3fea6385e4fcffdd12bbcf953c930..f5965e838a962ad09c215b20d10d9ec8bb338552
@@@ -344,13 -345,13 +345,13 @@@ impl InnerThread 
          }
      }
  
-     fn push_return_work(&mut self, reply: u32) {
+     fn push_return_work(&mut self, reply: u32) -> PushWorkRes {
          if let Ok(work) = ListArc::try_from_arc(self.return_work.clone()) {
              work.set_error_code(reply);
-             // Not notifying: Reply to current thread.
-             let _ = self.push_work(work);
+             self.push_work(work)
          } else {
 -            pr_warn!("Thread return work is already in use.");
 +            pr_warn_ratelimited!("Thread return work is already in use.\n");
+             PushWorkRes::Ok
          }
      }
  
index 66045547c23ada4d1846f78c0f2d6f1abd8a4fea,22558bdeef16e851f9d0b2d003d8b9ec76924132..48ac942bb75aebb28b298b30adcdda6ad33591f1
@@@ -81,9 -272,17 +272,17 @@@ impl TransactionInfo 
          self.flags.is_oneway()
      }
  
+     pub(crate) fn write_log(&self, ctx: &crate::Context) {
+         let entry = TransactionLogEntry::new(self, ctx);
+         TRANSACTION_LOG.add(&entry);
+         if self.reply != 0 && self.reply != BR_TRANSACTION_PENDING_FROZEN {
+             FAILED_TRANSACTION_LOG.add(&entry);
+         }
+     }
+ 
      pub(crate) fn report_netlink(&self, reply: u32, ctx: &crate::Context) {
          if let Err(err) = self.report_netlink_inner(reply, ctx) {
 -            pr_warn!(
 +            pr_warn_ratelimited!(
                  "{}:{} netlink report failed: {err:?}\n",
                  self.from_pid,
                  self.from_tid
@@@ -172,18 -371,10 +371,10 @@@ impl Transaction 
              info.debug_id,
              allow_fds,
              txn_security_ctx_off.as_mut(),
-         ) {
-             Ok(alloc) => alloc,
-             Err(err) => {
-                 if !err.is_dead() {
-                     pr_warn!("Failure in copy_transaction_data: {:?}", err);
-                 }
-                 return Err(err);
-             }
-         };
+         )?;
          if info.is_oneway() {
              if from_parent.is_some() {
 -                pr_warn!("Oneway transaction should not be in a transaction stack.");
 +                pr_warn_ratelimited!("Oneway transaction should not be in a transaction stack.\n");
                  return Err(EINVAL.into());
              }
              alloc.set_info_oneway_node(node_ref.node.clone());
Simple merge
index eacea29e3fb079b239f1cfba5f00f0f9c7b12af9,ecc142a1b7ea22cb56484cb33ec58e175c52b5ea..900676ea6bbcf1589cae66a1ab8cfdd0738e92fb
  
  use crate::{
      bindings,
+     container_of,
      device::Device,
 -    error::{
 -        to_result,
 -        VTABLE_DEFAULT_ERROR, //
 -    },
 +    error::to_result,
      fs::{
          File,
          Kiocb, //
@@@ -142,29 -180,31 +177,29 @@@ pub trait MiscDevice: Sized + Sync 
      /// the VMA initialization by calling methods of `vma`. If the function does not return an
      /// error, the kernel will complete initialization of the VMA according to the properties of
      /// `vma`.
 +    #[optional]
      fn mmap(
-         _device: <Self::Ptr as ForeignOwnable>::Borrowed<'_>,
+         _device: <Self::File as ForeignOwnable>::Borrowed<'_>,
          _file: &File,
          _vma: &VmaNew,
 -    ) -> Result {
 -        build_error!(VTABLE_DEFAULT_ERROR)
 -    }
 +    ) -> Result;
  
      /// Read from this miscdevice.
 -    fn read_iter(_kiocb: Kiocb<'_, Self::File>, _iov: &mut IovIterDest<'_>) -> Result<usize> {
 -        build_error!(VTABLE_DEFAULT_ERROR)
 -    }
 +    #[optional]
-     fn read_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIterDest<'_>) -> Result<usize>;
++    fn read_iter(_kiocb: Kiocb<'_, Self::File>, _iov: &mut IovIterDest<'_>) -> Result<usize>;
  
      /// Write to this miscdevice.
 -    fn write_iter(_kiocb: Kiocb<'_, Self::File>, _iov: &mut IovIterSource<'_>) -> Result<usize> {
 -        build_error!(VTABLE_DEFAULT_ERROR)
 -    }
 +    #[optional]
-     fn write_iter(_kiocb: Kiocb<'_, Self::Ptr>, _iov: &mut IovIterSource<'_>) -> Result<usize>;
++    fn write_iter(_kiocb: Kiocb<'_, Self::File>, _iov: &mut IovIterSource<'_>) -> Result<usize>;
  
      /// Handler for ioctls.
      ///
      /// The `cmd` argument is usually manipulated using the utilities in [`kernel::ioctl`].
      ///
      /// [`kernel::ioctl`]: mod@crate::ioctl
 +    #[optional]
      fn ioctl(
-         _device: <Self::Ptr as ForeignOwnable>::Borrowed<'_>,
+         _device: <Self::File as ForeignOwnable>::Borrowed<'_>,
          _file: &File,
          _cmd: u32,
          _arg: usize,
      /// that have different layout on 32-bit and 64-bit userspace. If no implementation is
      /// provided, then `compat_ptr_ioctl` will be used instead.
      #[cfg(CONFIG_COMPAT)]
 +    #[optional]
      fn compat_ioctl(
-         _device: <Self::Ptr as ForeignOwnable>::Borrowed<'_>,
+         _device: <Self::File as ForeignOwnable>::Borrowed<'_>,
          _file: &File,
          _cmd: u32,
          _arg: usize,
 -    ) -> Result<isize> {
 -        build_error!(VTABLE_DEFAULT_ERROR)
 -    }
 +    ) -> Result<isize>;
  
      /// Show info for this fd.
 +    #[optional]
      fn show_fdinfo(
-         _device: <Self::Ptr as ForeignOwnable>::Borrowed<'_>,
+         _device: <Self::File as ForeignOwnable>::Borrowed<'_>,
          _m: &SeqFile,
          _file: &File,
 -    ) {
 -        build_error!(VTABLE_DEFAULT_ERROR)
 -    }
 +    );
  }
  
  /// A vtable for the file operations of a Rust miscdevice.