]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: add polling to adminq wait
authorShannon Nelson <snelson@pensando.io>
Fri, 1 Oct 2021 18:05:55 +0000 (11:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Oct 2021 13:00:21 +0000 (14:00 +0100)
commitce1fec779fca8879b0ecfb7a9cfd19e67fa6dee1
tree74ae700e256c2830bd3635289ff4889ffef845bc
parentcbba5d89bceb106ff6047ea0140a0e8f4165a96d
ionic: add polling to adminq wait

Split the adminq wait into smaller polling periods in order
to watch for broken firmware and not have to wait for the full
adminq devcmd_timeout.

Generally, adminq commands take fewer than 2 msecs.  If the
FW is busy they can take longer, but usually still under 100
msecs.  We set the polling period to 100 msecs in order to
start snooping on FW status when a command is taking longer
than usual.

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