Skip to content

Commit 0df83e7

Browse files
anna-marialxdavem330
authored andcommitted
net: mvneta: Add missing hotplug notifier transition
The mvneta_percpu_notifier() hotplug callback lacks handling of the CPU_DOWN_FAILED case. That means, if CPU_DOWN_PREPARE failes, the driver is not well configured on the CPU. Add handling for CPU_DOWN_FAILED[_FROZEN] hotplug notifier transition to setup the driver. Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: netdev@vger.kernel.org Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7c82a7b commit 0df83e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,8 @@ static int mvneta_percpu_notifier(struct notifier_block *nfb,
33283328
switch (action) {
33293329
case CPU_ONLINE:
33303330
case CPU_ONLINE_FROZEN:
3331+
case CPU_DOWN_FAILED:
3332+
case CPU_DOWN_FAILED_FROZEN:
33313333
spin_lock(&pp->lock);
33323334
/* Configuring the driver for a new CPU while the
33333335
* driver is stopping is racy, so just avoid it.

0 commit comments

Comments
 (0)