]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: no transition while stopping
authorShannon Nelson <snelson@pensando.io>
Fri, 25 Feb 2022 17:16:18 +0000 (09:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:42:45 +0000 (11:42 +0000)
commitc5075d2fa13cc3c903a04f84a063a3eccd592f58
treec7a4db04cedcca7ceafb6f7c2598b9784573517f
parente8afc668911e310808598b095c9b3c8e51b796ee
ionic: no transition while stopping

Make sure we don't try to transition the fw_status_ready
while we're still in the FW_STOPPING state, else we can
get stuck in limbo waiting on a transition that already
happened.

While we're here we can remove a superfluous check on
the lif pointer.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_dev.c