]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: fix PHY timestamp extraction for ETH56G
authorPrzemyslaw Korba <przemyslaw.korba@intel.com>
Fri, 15 Nov 2024 12:25:37 +0000 (13:25 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 3 Dec 2024 18:11:52 +0000 (10:11 -0800)
commit3214fae85e8336fe13e20cf78fc9b6a668bdedff
tree1209a94713a425a1187495e27eecc24deed21078
parent01fd68e54794fb1e1fe95be38facf9bbafee9ca3
ice: fix PHY timestamp extraction for ETH56G

Fix incorrect PHY timestamp extraction for ETH56G.
It's better to use FIELD_PREP() than manual shift.

Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Przemyslaw Korba <przemyslaw.korba@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp_hw.c
drivers/net/ethernet/intel/ice/ice_ptp_hw.h