mbox series

[GIT,PULL] firmware: arm_scmi: Fixes for v6.15

Message ID 20250411093239.1060395-1-sudeep.holla@arm.com (mailing list archive)
State New
Headers show
Series [GIT,PULL] firmware: arm_scmi: Fixes for v6.15 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-fixes-6.15

Message

Sudeep Holla April 11, 2025, 9:32 a.m. UTC
Hi ARM SoC Team,

Please pull !

Regards,
Sudeep

-->8

The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:

  Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-fixes-6.15

for you to fetch changes up to c23c03bf1faa1e76be1eba35bad6da6a2a7c95ee:

  firmware: arm_scmi: Fix timeout checks on polling path (2025-04-08 10:31:59 +0100)

----------------------------------------------------------------
Arm SCMI fixes for v6.15

Couple of fixes addressing issues with timeout in the polling path
and device reference count imbalance detected by kmemleak.

1. The change fixes a timeout issue in the polling path of SCMI transactions
   where false positives could occur if the polling thread was pre-empted,
   causing it to appear as though a timeout occurred when it hadn't. The fix
   ensures that the polling result is verified before reporting a timeout,
   accounting for potential pre-emption or out-of-order replies.

2. It also corrects a device reference count imbalance caused by
   device_find_child() during device destruction, which prevented proper
   cleanup and triggered memory leaks detected by KMemleak.

----------------------------------------------------------------
Cristian Marussi (2):
      firmware: arm_scmi: Balance device refcount when destroying devices
      firmware: arm_scmi: Fix timeout checks on polling path

 drivers/firmware/arm_scmi/bus.c    |  3 +++
 drivers/firmware/arm_scmi/driver.c | 13 ++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)