Commit 85cb207e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

nfp: don't completely refuse to work with old flashes

Right now the required Service Process ABI version is still tied
to max ID of known commands.  For new NSP commands we are adding
we are checking if NSP version is recent enough on command-by-command
basis.  The driver doesn't have to force the device to have the
very latest flash, anything newer than 0.8 should do.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d38df0d3
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
#define NSP_MAGIC 0xab10 #define NSP_MAGIC 0xab10
#define NSP_MAJOR 0 #define NSP_MAJOR 0
#define NSP_MINOR (__MAX_SPCODE - 1) #define NSP_MINOR 8
#define NSP_CODE_MAJOR GENMASK(15, 12) #define NSP_CODE_MAJOR GENMASK(15, 12)
#define NSP_CODE_MINOR GENMASK(11, 0) #define NSP_CODE_MINOR GENMASK(11, 0)
...@@ -94,8 +94,6 @@ enum nfp_nsp_cmd { ...@@ -94,8 +94,6 @@ enum nfp_nsp_cmd {
SPCODE_ETH_RESCAN = 7, /* Rescan ETHs, write ETH_TABLE to buf */ SPCODE_ETH_RESCAN = 7, /* Rescan ETHs, write ETH_TABLE to buf */
SPCODE_ETH_CONTROL = 8, /* Update media config from buffer */ SPCODE_ETH_CONTROL = 8, /* Update media config from buffer */
SPCODE_NSP_IDENTIFY = 13, /* Read NSP version */ SPCODE_NSP_IDENTIFY = 13, /* Read NSP version */
__MAX_SPCODE,
}; };
static const struct { static const struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment