mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/8] platform/x86: intel: switch remaining mutex_init() to devm_mutex_init()
@ 2026-10-30  8:22 chitranshmandhaniya
  2026-10-30  8:22 ` [PATCH 1/8] platform/x86: isst_if_mmio: switch " chitranshmandhaniya
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: chitranshmandhaniya @ 2026-10-30  8:22 UTC (permalink / raw)
  To: hansg, ilpo.jarvinen
  Cc: platform-driver-x86, linux-kernel, Chitransh_Mandhaniya,
	srinivas.pandruvada, david.e.box, irenic.rajneesh, qipeng.zha

From: Chitransh Mandhaniya <Chitransh_Mandhaniya@dell.com>

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-30  8:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30  8:22 [PATCH 0/8] platform/x86: intel: switch remaining mutex_init() to devm_mutex_init() chitranshmandhaniya
2026-10-30  8:22 ` [PATCH 1/8] platform/x86: isst_if_mmio: switch " chitranshmandhaniya
2026-10-30  8:22 ` [PATCH 2/8] platform/x86: isst_if_mbox_pci: " chitranshmandhaniya
2026-10-30  8:22 ` [PATCH 3/8] platform/x86: pmt_crashlog: " chitranshmandhaniya
2026-10-30  8:22 ` [PATCH 4/8] platform/x86: crystal_cove_charger: " chitranshmandhaniya
2026-10-30  8:22 ` [PATCH 5/8] platform/x86: telemetry/pltdrv: " chitranshmandhaniya
2026-10-30  8:23 ` [PATCH 6/8] platform/x86: ishtp_eclite: " chitranshmandhaniya
2026-10-30  8:23 ` [PATCH 7/8] platform/x86: punit_ipc: " chitranshmandhaniya
2026-10-30  8:23 ` [PATCH 8/8] platform/x86: sdsi: " chitranshmandhaniya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®