]> 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)
commit6ea750356f76465ef1e59bce9c970220ae24108a
tree74ae700e256c2830bd3635289ff4889ffef845bc
parent197d376986c13886969ffc9b7b5c1e8d21702ef6
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