-
由 Michael Chan 提交于
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: 24ac1ecd ("bnxt_en: Add driver support to use Real Time Counter for PTP") Reviewed-by: NPavan Chebbi <pavan.chebbi@broadcom.com> Reviewed-by: NSaravanan Vajravel <saravanan.vajravel@broadcom.com> Reviewed-by: NAndy Gospodarek <andrew.gospodarek@broadcom.com> Reviewed-by: NSomnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: NDamodharam Ammepalli <damodharam.ammepalli@broadcom.com> Signed-off-by: NMichael Chan <michael.chan@broadcom.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
2b156fb5