]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: intel: Add notifiers support
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 30 Apr 2026 15:11:02 +0000 (08:11 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 7 May 2026 13:06:28 +0000 (16:06 +0300)
commit57c347a2e2473bfb5c1f1132a3209c55efbe640b
treec6cd9122dd053bfb1d709d5529977770c9ea28fb
parentad3bff944c0f4f2e913298a9664391af32f87491
platform/x86: intel: Add notifiers support

In some cases a driver using services of vsec_tpmi driver requires some
processing before vsec_tpmi exits. For example a children using debugfs
can't use debugfs as this will be deleted by the vsec_tpmi driver.

This is the case when unbind using PCI driver interface. In this case
the remove callback of vsec_tpmi driver is called first, then remove
callback of its children.

Add support of blocking chain notifiers support. Notify on successful probe
and before clean up in the remove callback.

Fixes: 811f67c51636 ("platform/x86/intel/tpmi: Add new auxiliary driver for performance limits")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Stable@vger.kernel.org
Link: https://patch.msgid.link/20260430151103.1549733-3-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/vsec_tpmi.c
include/linux/intel_tpmi.h