Skip to content

platform/x86: intel: switch remaining mutex_init() to devm_mutex_init()

[email protected] lkml oe-kbuild-all platform-driver-x86 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8platform/x86: isst_if_mmio: switch to devm_mutex_init()drivers/platform/x86/intel/speed_select_if/isst_if_mmio.c+4 -70 replies
2/8platform/x86: isst_if_mbox_pci: switch to devm_mutex_init()drivers/platform/x86/intel/speed_select_if/isst_if_mbox_pci.c+4 -80 replies
3/8platform/x86: pmt_crashlog: switch to devm_mutex_init()drivers/platform/x86/intel/pmt/crashlog.c+4 -20 replies
4/8platform/x86: crystal_cove_charger: switch to devm_mutex_init()drivers/platform/x86/intel/crystal_cove_charger.c+3 -10 replies
5/8platform/x86: telemetry/pltdrv: switch to devm_mutex_init()drivers/platform/x86/intel/telemetry/pltdrv.c+6 -20 replies
6/8platform/x86: ishtp_eclite: switch to devm_mutex_init()drivers/platform/x86/intel/ishtp_eclite.c+3 -10 replies
7/8platform/x86: punit_ipc: switch to devm_mutex_init()drivers/platform/x86/intel/punit_ipc.c+3 -10 replies
8/8platform/x86: sdsi: switch to devm_mutex_init()drivers/platform/x86/intel/sdsi.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] platform/x86: intel: switch remaining mutex_init() to devm_mutex_init()

From: Chitransh Mandhaniya <[email protected]>

Convert the remaining mutex_init() calls under drivers/platform/x86/intel/ to devm_mutex_init() so the mutex lifecycle is managed by devres. This removes the need for manual mutex_destroy() calls and fixes several drivers that were missing mutex_destroy() on the teardown path entirely.

Each patch converts one driver and is independent of the others.

Build-tested on x86_64 with all eight drivers compiled in.

Chitransh Mandhaniya (8):
platform/x86: isst_if_mmio: switch to devm_mutex_init() platform/x86: isst_if_mbox_pci: switch to devm_mutex_init() platform/x86: pmt_crashlog: switch to devm_mutex_init() platform/x86: crystal_cove_charger: switch to devm_mutex_init() platform/x86: telemetry/pltdrv: switch to devm_mutex_init() platform/x86: ishtp_eclite: switch to devm_mutex_init() platform/x86: punit_ipc: switch to devm_mutex_init() platform/x86: sdsi: switch to devm_mutex_init()

 drivers/platform/x86/intel/crystal_cove_charger.c    |  4 +++-
 drivers/platform/x86/intel/ishtp_eclite.c            |  4 +++-
 drivers/platform/x86/intel/pmt/crashlog.c            |  6 ++++--
 drivers/platform/x86/intel/punit_ipc.c               |  4 +++-
 drivers/platform/x86/intel/sdsi.c                    |  4 +++-
 .../x86/intel/speed_select_if/isst_if_mbox_pci.c     | 12 ++++--------
 .../x86/intel/speed_select_if/isst_if_mmio.c         | 11 ++++-------
 drivers/platform/x86/intel/telemetry/pltdrv.c        |  8 ++++++--
 8 files changed, 30 insertions(+), 23 deletions(-)
Signature · 1 line
2.43.0