]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dpaa2-eth: add ndo_hwtstamp_get() implementation
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 8 May 2025 13:41:02 +0000 (16:41 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 May 2025 23:41:51 +0000 (16:41 -0700)
commitd27c6e8975c64846e54a29e86925372d489c6d2c
tree6d844ee87c1d2982f6b4b8a4322fc4c4e11a9964
parentb6e79c5da8c2fa44b24c1bb1b6effe8f6d5cd92f
net: dpaa2-eth: add ndo_hwtstamp_get() implementation

Allow SIOCGHWTSTAMP to retrieve the current timestamping settings on
DPNIs. This reflects what has been done in dpaa2_eth_hwtstamp_set().

Tested with hwstamp_ctl -i endpmac17. Before the change, it prints
"Device driver does not have support for non-destructive SIOCGHWTSTAMP."
After the change, it retrieves the previously set configuration.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # LX2160A
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250508134102.1747075-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c