diff options
author | 2021-07-18 15:36:32 -0400 | |
---|---|---|
committer | 2021-07-19 08:25:44 -0700 | |
commit | d7859afb6880249039b178fdfb1bef94fd954cf2 (patch) | |
tree | c84bc6528693ff8c772f944bba4acd968b1be735 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bnxt_en: Check abort error state in bnxt_half_open_nic() (diff) | |
download | wireguard-linux-d7859afb6880249039b178fdfb1bef94fd954cf2.tar.xz wireguard-linux-d7859afb6880249039b178fdfb1bef94fd954cf2.zip |
bnxt_en: Move bnxt_ptp_init() to bnxt_open()
The device needs to be in ifup state for PTP to function, so move
bnxt_ptp_init() to bnxt_open(). This means that the PHC will be
registered during bnxt_open().
This also makes firmware reset work correctly. PTP configurations
may change after firmware upgrade or downgrade. bnxt_open() will
be called after firmware reset, so it will work properly.
bnxt_ptp_start() is now incorporated into bnxt_ptp_init(). We now
also need to call bnxt_ptp_clear() in bnxt_close().
Fixes: 93cb62d98e9c ("bnxt_en: Enable hardware PTP support")
Cc: Richard Cochran <richardcochran@gmail.com>
Reviewed-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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions