Skip to content

Commit 915d25a

Browse files
kmaincentdavem330
authored andcommitted
net: phy: micrel: fix ts_info value in case of no phc
In case of no phc we should not return SOFTWARE TIMESTAMPING flags as we do not know whether the netdev supports of timestamping. Remove it from the lan8841_ts_info and simply return 0. Signed-off-by: Kory Maincent <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 011dd3b commit 915d25a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/net/phy/micrel.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,12 +3629,8 @@ static int lan8841_ts_info(struct mii_timestamper *mii_ts,
36293629

36303630
info->phc_index = ptp_priv->ptp_clock ?
36313631
ptp_clock_index(ptp_priv->ptp_clock) : -1;
3632-
if (info->phc_index == -1) {
3633-
info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE |
3634-
SOF_TIMESTAMPING_RX_SOFTWARE |
3635-
SOF_TIMESTAMPING_SOFTWARE;
3632+
if (info->phc_index == -1)
36363633
return 0;
3637-
}
36383634

36393635
info->so_timestamping = SOF_TIMESTAMPING_TX_HARDWARE |
36403636
SOF_TIMESTAMPING_RX_HARDWARE |

0 commit comments

Comments
 (0)