]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Implement .adjtime() for PTP RTC mode
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Wed, 26 Jan 2022 04:40:12 +0000 (23:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jan 2022 15:35:20 +0000 (15:35 +0000)
commite7b0afb69083ff7199dec51e7b9b1646e799943b
treee35534bcfbb5af15ab7e668e403ada9adcc24381
parent24ac1ecd524065cdcf8c27dc85ae37eccce8f2f6
bnxt_en: Implement .adjtime() for PTP RTC mode

The adjusted time is set in the PHC in RTC mode.  We also need to
update the snapshots ptp->current_time and ptp->old_time when the
time is adjusted.

Cc: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h