summaryrefslogtreecommitdiff
path: root/net/devlink/param.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2025-07-04 20:21:54 +0200
committerJakub Kicinski <kuba@kernel.org>2025-07-09 19:08:52 -0700
commitde9ccf2296ac323a571e442b5730ca9cc259fbf0 (patch)
treeba040de4cff9c63cf319b46f5e5d2ac82e5f068e /net/devlink/param.c
parentc0ef1446959101d23fdf1b1bdefc6613a83dba03 (diff)
devlink: Add new "clock_id" generic device param
Add a new device generic parameter to specify clock ID that should be used by the device for registering DPLL devices and pins. Signed-off-by: Ivan Vecera <ivecera@redhat.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://patch.msgid.link/20250704182202.1641943-5-ivecera@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink/param.c')
-rw-r--r--net/devlink/param.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/devlink/param.c b/net/devlink/param.c
index 9709b41664aa..41dcc86cfd94 100644
--- a/net/devlink/param.c
+++ b/net/devlink/param.c
@@ -97,6 +97,11 @@ static const struct devlink_param devlink_param_generic[] = {
.name = DEVLINK_PARAM_GENERIC_ENABLE_PHC_NAME,
.type = DEVLINK_PARAM_GENERIC_ENABLE_PHC_TYPE,
},
+ {
+ .id = DEVLINK_PARAM_GENERIC_ID_CLOCK_ID,
+ .name = DEVLINK_PARAM_GENERIC_CLOCK_ID_NAME,
+ .type = DEVLINK_PARAM_GENERIC_CLOCK_ID_TYPE,
+ },
};
static int devlink_param_generic_verify(const struct devlink_param *param)