ptp: lan743x: Use spin_lock instead of spin_lock_bh
authorLucas Tanure <tanure@linux.com>
Sun, 28 Jan 2024 10:18:49 +0000 (10:18 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Jan 2024 23:18:00 +0000 (15:18 -0800)
commit96b93f08357c4cc858ec7543464f07e461e5713a
tree0860cd644279223ad8345ce337fb11e179a261f4
parente7f8df0e81bf73ab6dc6ac1dc01273fa06564119
ptp: lan743x: Use spin_lock instead of spin_lock_bh

lan743x_ptp_request_tx_timestamp uses spin_lock_bh, but it is
only called from lan743x_tx_xmit_frame where all IRQs are
already disabled.

This fixes the "IRQs not enabled as expected" warning.

Signed-off-by: Lucas Tanure <tanure@linux.com>
Link: https://lore.kernel.org/r/20240128101849.107298-1-tanure@linux.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_ptp.c