Skip to content

Commit fe91d57

Browse files
Binary-EaterSaeed Mahameed
authored andcommitted
net/mlx5: Fix ptp max frequency adjustment range
.max_adj of ptp_clock_info acts as an absolute value for the amount in ppb that can be set for a single call of .adjfine. This means that a single call to .getfine cannot be greater than .max_adj or less than -(.max_adj). Provides correct value for max frequency adjustment value supported by devices. Fixes: 3d8c38a ("net/mlx5e: Add PTP Hardware Clock (PHC) support") Signed-off-by: Rahul Rameshbabu <[email protected]> Reviewed-by: Gal Pressman <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 3099d2e commit fe91d57

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/lib

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static int mlx5_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin,
681681
static const struct ptp_clock_info mlx5_ptp_clock_info = {
682682
.owner = THIS_MODULE,
683683
.name = "mlx5_ptp",
684-
.max_adj = 100000000,
684+
.max_adj = 50000000,
685685
.n_alarm = 0,
686686
.n_ext_ts = 0,
687687
.n_per_out = 0,

0 commit comments

Comments
 (0)