summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2023-05-01 18:14:41 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2023-10-05 21:46:33 +0200
commit8227088cb3c2afb58a45a946d92f6bf93d04d6de (patch)
tree2f88e74fbe11f5d86449b4f66f0a23bf99fa99dc
parentccd7cd07051fbd50bbbc6a55547d965c3392f318 (diff)
downloadlinux-stable-8227088cb3c2afb58a45a946d92f6bf93d04d6de.tar.gz
linux-stable-8227088cb3c2afb58a45a946d92f6bf93d04d6de.tar.bz2
linux-stable-8227088cb3c2afb58a45a946d92f6bf93d04d6de.zip
can: at91_can: at91_chip_start(): don't disable IRQs twice
In at91_chip_start() first all IRQs are disabled, they do not have to be disabled again at the end of the function before the requested IRQs are enabled. Remove the 2nd disable of all IRQs at the end of the function. Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-14-9987d53600e0@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--drivers/net/can/at91_can.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index f92d8a75d1b1..3f3c6f2107a8 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -438,7 +438,6 @@ static void at91_chip_start(struct net_device *dev)
/* Enable interrupts */
reg_ier = get_irq_mb_rx(priv) | AT91_IRQ_ERRP | AT91_IRQ_ERR_FRAME;
- at91_write(priv, AT91_IDR, AT91_IRQ_ALL);
at91_write(priv, AT91_IER, reg_ier);
}