nfp: correct return codes when msleep gets interrupted
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 22 Mar 2017 00:59:13 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:59:08 +0000 (12:59 -0700)
commit69a4aa89315819e9eabd3a43211506d7302121a6
tree6c903a3ac410ce54ece0fbb91a209051d8f89ded
parenta831ffb56048fdd1d99178c34d05469421fd2a36
nfp: correct return codes when msleep gets interrupted

msleep_interruptible() returns time left to wait, not error
code.  Return ERESTARTSYS when interrupted.

While at it correct a comment and make the polling a bit
more aggressive.

Signed-off-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