]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: wait for the NSP resource to appear on boot
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 13 Sep 2017 17:16:00 +0000 (10:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2017 20:29:13 +0000 (13:29 -0700)
commit5fddfce651b18d30bfab80c0d7bef27cf7b800e8
tree1db0fcbf574d3374f19777428d5cb5edad1661e0
parent18429583793e469ff8fe8ee187920955b2dac707
nfp: wait for the NSP resource to appear on boot

The control process (NSP) may take some time to complete its
initialization.  This is not a problem on most servers, but
on very fast-booting machines it may not be ready for operation
when driver probes the device.  There is also a version of the
flash in the wild where NSP tries to train the links as part
of init.  To wait for NSP initialization we should make sure
its resource has already been added to the resource table.
NSP adds itself there as last step of init.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c