Re: [PATCH] net: macb: Fix ptp time adjustment for large negative delta

From: David Miller
Date: Thu Jun 21 2018 - 02:01:52 EST


From: Harini Katakam <harini.katakam@xxxxxxxxxx>
Date: Wed, 20 Jun 2018 17:04:20 +0530

> When delta passed to gem_ptp_adjtime is negative, the sign is
> maintained in the ns_to_timespec64 conversion. Hence timespec_add
> should be used directly. timespec_sub will just subtract the negative
> value thus increasing the time difference.
>
> Signed-off-by: Harini Katakam <harini.katakam@xxxxxxxxxx>

Applied and queued up for -stable.