diff options
author | Michael Chan <michael.chan@broadcom.com> | 2022-05-02 21:13:11 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-03 17:41:32 -0700 |
commit | 2b156fb57d8f0d28f2207edc646751f4717cf20d (patch) | |
tree | 09dcdefbc52d4d480fa016def61f7ab21f241abf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 13ba794397e45e52893cfc21d7a69cb5f341b407 (diff) |
bnxt_en: Initiallize bp->ptp_lock first before using it
bnxt_ptp_init() calls bnxt_ptp_init_rtc() which will acquire the ptp_lock
spinlock. The spinlock is not initialized until later. Move the
bnxt_ptp_init_rtc() call after the spinlock is initialized.
Fixes: 24ac1ecd5240 ("bnxt_en: Add driver support to use Real Time Counter for PTP")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Saravanan Vajravel <saravanan.vajravel@broadcom.com>
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions