ice: Fix quad registers read on E825
authorKarol Kolacinski <karol.kolacinski@intel.com>
Tue, 5 Nov 2024 12:29:14 +0000 (13:29 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Jan 2025 17:59:14 +0000 (09:59 -0800)
commitdc26548d729e5f732197d2b210fb77c745b01495
treec755b9f31350093dc09b001cc40fc593aa7be899
parentd79c304c76e9b30ff5527afc176b5c4f9f0374b6
ice: Fix quad registers read on E825

Quad registers are read/written incorrectly. E825 devices always use
quad 0 address and differentiate between the PHYs by changing SBQ
destination device (phy_0 or phy_0_peer).

Add helpers for reading/writing PTP registers shared per quad and use
correct quad address and SBQ destination device based on port.

Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Grzegorz Nitka <grzegorz.nitka@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_type.h