]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: fix up issues with handling EAGAIN on FW cmds
authorShannon Nelson <snelson@pensando.io>
Wed, 24 Aug 2022 16:50:50 +0000 (09:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Aug 2022 19:39:54 +0000 (12:39 -0700)
commitab81dab2eb28c16aed5b514250d8fa782b737397
treefeab2153011aa7f78b2d57e6ff218ff3cec527b4
parent68091ce094e883ce00584d7c5b6c77fae398dbb4
ionic: fix up issues with handling EAGAIN on FW cmds

In looping on FW update tests we occasionally see the
FW_ACTIVATE_STATUS command fail while it is in its EAGAIN loop
waiting for the FW activate step to finsh inside the FW.  The
firmware is complaining that the done bit is set when a new
dev_cmd is going to be processed.

Doing a clean on the cmd registers and doorbell before exiting
the wait-for-done and cleaning the done bit before the sleep
prevents this from occurring.

Fixes: e10964c5bf37 ("ionic: Add hardware init and device commands")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_main.c