summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2024-10-30 09:11:56 +0100
committerJakub Kicinski <kuba@kernel.org>2024-11-03 08:39:07 -0800
commita1afb959add1fad43cb337448c244ed70bac3109 (patch)
treec38924a7877174d0a29eaa311a3e9fec2145baf9 /include/linux
parentdbb9a7ef347828870df3e5e6ddf19469a3277fc9 (diff)
downloadlinux-stable-a1afb959add1fad43cb337448c244ed70bac3109.tar.gz
linux-stable-a1afb959add1fad43cb337448c244ed70bac3109.tar.bz2
linux-stable-a1afb959add1fad43cb337448c244ed70bac3109.zip
dpll: add clock quality level attribute and op
In order to allow driver expose quality level of the clock it is running, introduce a new netlink attr with enum to carry it to the userspace. Also, introduce an op the dpll netlink code calls into the driver to obtain the value. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://patch.msgid.link/20241030081157.966604-2-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dpll.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dpll.h b/include/linux/dpll.h
index 81f7b623d0ba..5e4f9ab1cf75 100644
--- a/include/linux/dpll.h
+++ b/include/linux/dpll.h
@@ -26,6 +26,10 @@ struct dpll_device_ops {
struct netlink_ext_ack *extack);
int (*temp_get)(const struct dpll_device *dpll, void *dpll_priv,
s32 *temp, struct netlink_ext_ack *extack);
+ int (*clock_quality_level_get)(const struct dpll_device *dpll,
+ void *dpll_priv,
+ unsigned long *qls,
+ struct netlink_ext_ack *extack);
};
struct dpll_pin_ops {