]> git.ipfire.org Git - thirdparty/linux.git/commit
dpll: export __dpll_device_change_ntf() for use under dpll_lock
authorIvan Vecera <ivecera@redhat.com>
Tue, 26 May 2026 07:45:23 +0000 (09:45 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 May 2026 12:05:29 +0000 (14:05 +0200)
commit20040b2a3cb992f84d3db4c086b909eb9b906b31
treebbdd2f13f00d2ea4f637d1bcb70892e703ba6828
parent1af2af707f772f7f7ae7853ebe6d2695354fe85e
dpll: export __dpll_device_change_ntf() for use under dpll_lock

Export __dpll_device_change_ntf() so that drivers can send device
change notifications from within device callbacks, which are already
called under dpll_lock. Using dpll_device_change_ntf() in that
context would deadlock.

Add lockdep_assert_held() to catch misuse without the lock held.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20260526074525.1451008-2-ivecera@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/dpll/dpll_netlink.c
include/linux/dpll.h