]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: fsl: qbman: Always disable interrupts when taking cgr_lock
authorSean Anderson <sean.anderson@linux.dev>
Mon, 11 Mar 2024 16:38:29 +0000 (12:38 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Mar 2024 08:12:02 +0000 (08:12 +0000)
commit584c2a9184a33a40fceee838f856de3cffa19be3
treea55dc28b0fb0c9c3fbba62947b09ee9d4f54ea4a
parent67072c314f5f0ec12a7a51a19f7156eebb073654
soc: fsl: qbman: Always disable interrupts when taking cgr_lock

smp_call_function_single disables IRQs when executing the callback. To
prevent deadlocks, we must disable IRQs when taking cgr_lock elsewhere.
This is already done by qman_update_cgr and qman_delete_cgr; fix the
other lockers.

Fixes: 96f413f47677 ("soc/fsl/qbman: fix issue in qman_delete_cgr_safe()")
CC: stable@vger.kernel.org
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Camelia Groza <camelia.groza@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/soc/fsl/qbman/qman.c