net: macb: Optimize reading HW timestamp
authorHarini Katakam <harini.katakam@xilinx.com>
Tue, 11 Apr 2023 12:37:12 +0000 (18:07 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Apr 2023 05:16:09 +0000 (22:16 -0700)
commit8c0d0fe04449b9ea2654bf435e51171fbf2a71ac
tree6e0d2f378a1ef68c6881c3e6693be8a9651b49d6
parentee4e92c26c60b7344b7261035683a37da5a6119b
net: macb: Optimize reading HW timestamp

The seconds input from BD (6 bits) just needs to be ORed with the
upper bits from timer in this function. Avoid addition operation
every single time. Seconds rollover handling is left untouched.

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_ptp.c