diff options
author | Bert Kenward <bkenward@solarflare.com> | 2017-05-12 12:18:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-12 12:22:53 -0400 |
commit | 42e6cae1b35b186650f5abc7b24c20ab6986c5a0 (patch) | |
tree | f350fe9f52b5c2550207d2904d16443370d80d14 | |
parent | b12ca80ca145cecadf841ba27cc061c510cd97ca (diff) |
sfc: revert changes to NIC revision numbers
The revision enum values (eg EFX_REV_HUNT_A0) form part of our API,
and are included in ethtool. If these are inconsistent then ethtool
will print garbage for a register dump (ethtool -d).
Fixes: 5a6681e22c14 ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 7b916aa21bde..4d7fb8af880d 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h | |||
@@ -18,8 +18,12 @@ | |||
18 | #include "mcdi.h" | 18 | #include "mcdi.h" |
19 | 19 | ||
20 | enum { | 20 | enum { |
21 | EFX_REV_SIENA_A0 = 0, | 21 | /* Revisions 0-2 were Falcon A0, A1 and B0 respectively. |
22 | EFX_REV_HUNT_A0 = 1, | 22 | * They are not supported by this driver but these revision numbers |
23 | * form part of the ethtool API for register dumping. | ||
24 | */ | ||
25 | EFX_REV_SIENA_A0 = 3, | ||
26 | EFX_REV_HUNT_A0 = 4, | ||
23 | }; | 27 | }; |
24 | 28 | ||
25 | static inline int efx_nic_rev(struct efx_nic *efx) | 29 | static inline int efx_nic_rev(struct efx_nic *efx) |