nfp: extend NSP infrastructure for configurable timeouts
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Wed, 13 Dec 2017 22:45:01 +0000 (14:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 17:26:12 +0000 (12:26 -0500)
commit87a23801e50273f66c68e3028cf610bf4124265c
tree39e9a1c8f4a8b368554b94b736f392b9f1addb76
parentd31d38a0a911f8ae681db172481c66065f05c3e1
nfp: extend NSP infrastructure for configurable timeouts

The firmware flashing NSP operation takes longer to execute than the
current default timeout. We need a mechanism to set a longer timeout for
some commands. This patch adds the infrastructure to this.

The default timeout is still 30 seconds.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c