mirror_ubuntu-kernels/drivers/net/ethernet/marvell/octeon_ep
Michal Schmidt 611e1b016c octeon_ep: initialize mbox mutexes
The two mbox-related mutexes are destroyed in octep_ctrl_mbox_uninit(),
but the corresponding mutex_init calls were missing.
A "DEBUG_LOCKS_WARN_ON(lock->magic != lock)" warning was emitted with
CONFIG_DEBUG_MUTEXES on.

Initialize the two mutexes in octep_ctrl_mbox_init().

Fixes: 577f0d1b1c ("octeon_ep: add separate mailbox command and response queues")
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230729151516.24153-1-mschmidt@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-31 14:31:26 -07:00
..
Kconfig
Makefile octeon_ep: add ethtool support for Octeon PCI Endpoint NIC 2022-04-13 12:56:32 +01:00
octep_cn9k_pf.c octeon_ep: add heartbeat monitor 2023-03-27 08:37:54 +01:00
octep_config.h octeon_ep: add heartbeat monitor 2023-03-27 08:37:54 +01:00
octep_ctrl_mbox.c octeon_ep: initialize mbox mutexes 2023-07-31 14:31:26 -07:00
octep_ctrl_mbox.h octeon_ep: add separate mailbox command and response queues 2023-03-27 08:37:54 +01:00
octep_ctrl_net.c octeon_ep: function id in link info and stats mailbox commands 2023-03-27 08:37:54 +01:00
octep_ctrl_net.h octeon_ep: function id in link info and stats mailbox commands 2023-03-27 08:37:54 +01:00
octep_ethtool.c octeon_ep: function id in link info and stats mailbox commands 2023-03-27 08:37:54 +01:00
octep_main.c octeon_ep: Add missing check for ioremap 2023-06-15 15:07:28 -07:00
octep_main.h octeon_ep: add heartbeat monitor 2023-03-27 08:37:54 +01:00
octep_regs_cn9k_pf.h octeon_ep: add heartbeat monitor 2023-03-27 08:37:54 +01:00
octep_rx.c octeon_ep: use vmalloc_array and vcalloc 2023-06-27 09:30:23 -07:00
octep_rx.h
octep_tx.c octeon_ep: delete unnecessary NULL check 2022-05-16 11:40:04 +01:00
octep_tx.h