diff options
author | Michael Chan <michael.chan@broadcom.com> | 2021-07-28 21:11:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-28 22:23:33 +0300 |
commit | a521c8a01d267bc1732ee83fdbf3ad2e02240d63 (patch) | |
tree | e001a4207a4540facb629a7d06b75ccf29e480bd /usr | |
parent | 63caca1e3ef6e5ff53f97b41f03ec2805cca1e2b (diff) | |
download | linux-a521c8a01d267bc1732ee83fdbf3ad2e02240d63.tar.xz |
bnxt_en: Move bnxt_ptp_init() from bnxt_open() back to bnxt_init_one()
It was pointed out by Richard Cochran that registering the PHC during
probe is better than during ifup, so move bnxt_ptp_init() back to
bnxt_init_one(). In order to work correctly after firmware reset which
may result in PTP config. changes, we modify bnxt_ptp_init() to return
if the PHC has been registered earlier. If PTP is no longer supported
by the new firmware, we will unregister the PHC and clean up.
This partially reverts:
d7859afb6880 ("bnxt_en: Move bnxt_ptp_init() to bnxt_open()")
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 'usr')
0 files changed, 0 insertions, 0 deletions