]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: Add devcom component for the clock shared by functions
authorJianbo Liu <jianbol@nvidia.com>
Mon, 3 Feb 2025 21:35:07 +0000 (23:35 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Feb 2025 09:14:01 +0000 (10:14 +0100)
commit574998cf3b3f59afa9e3a6bbb609d9d4eb2023b4
tree5f5efc36bb77db46aef29c0365ce118bcf108e94
parentf9beaf4fac64c84631ba9a2eb864cea6b52032a2
net/mlx5: Add devcom component for the clock shared by functions

Add new devcom component for hardware clock. When it is running in
real time mode, the functions are grouped by the identify they query.

According to firmware document, the clock identify size is 64 bits, so
it's safe to memcpy to component key, as the key size is also 64 bits.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h
include/linux/mlx5/driver.h