]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: Query UTC sec and nsec PCI offsets and values
authorDanielle Ratson <danieller@nvidia.com>
Wed, 27 Jul 2022 06:23:23 +0000 (09:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jul 2022 10:02:23 +0000 (11:02 +0100)
commitbbd300570a9e8628a6e2b644f1dbda1ae7e0effe
treef35b983322e1b751413ee05b751c257335feccce
parentd25ff63a181b6943d94797c350de332cffadfab2
mlxsw: Query UTC sec and nsec PCI offsets and values

Query UTC sec and nsec PCI offsets during the pci_init(), to be able to
read UTC time later.

Implement functions to read UTC seconds and nanoseconds from the offset
which was read as part of initialization.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/pci.c