diff options
| author | 2021-07-28 14:11:40 -0400 | |
|---|---|---|
| committer | 2021-07-28 20:23:33 +0100 | |
| commit | a521c8a01d267bc1732ee83fdbf3ad2e02240d63 (patch) | |
| tree | e001a4207a4540facb629a7d06b75ccf29e480bd /include/linux/debugobjects.h | |
| parent | Merge branch 'fec-next' (diff) | |
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
