Skip to content

Commit bca515d

Browse files
gnitkaanguy11
authored andcommitted
ice: Skip PTP HW writes during PTP reset procedure
Block HW write access for the driver while the device is in reset to avoid potential race condition and access to the PTP HW in non-nominal state which could lead to undesired effects Fixes: 4aad533 ("ice: add individual interrupt allocation") Signed-off-by: Grzegorz Nitka <[email protected]> Co-developed-by: Karol Kolacinski <[email protected]> Signed-off-by: Karol Kolacinski <[email protected]> Signed-off-by: Sergey Temerkhanov <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
1 parent 25a7123 commit bca515d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/intel/ice/ice_ptp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,10 @@ void ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup)
14771477
/* Update cached link status for this port immediately */
14781478
ptp_port->link_up = linkup;
14791479

1480+
/* Skip HW writes if reset is in progress */
1481+
if (pf->hw.reset_ongoing)
1482+
return;
1483+
14801484
switch (hw->ptp.phy_model) {
14811485
case ICE_PHY_E810:
14821486
/* Do not reconfigure E810 PHY */

0 commit comments

Comments
 (0)