cxgb4/ptp: pass the sign of offset delta in FW CMD
authorRaju Rangoju <rajur@chelsio.com>
Tue, 24 Mar 2020 11:40:00 +0000 (17:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:49:59 +0000 (10:49 +0200)
commitf5429ec64f4f8583f068af04e2e00ad1b30a07f8
tree1ef3e4ef9d8d950b031d58c7e07c11c3125ca03a
parentd2037f68ae033a6732e7aea38dcf7ae3c7fcf58d
cxgb4/ptp: pass the sign of offset delta in FW CMD

[ Upstream commit 50e0d28d3808146cc19b0d5564ef4ba9e5bf3846 ]

cxgb4_ptp_fineadjtime() doesn't pass the signedness of offset delta
in FW_PTP_CMD. Fix it by passing correct sign.

Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c