nfp: use PluDevice register for model for non-NFP6000 chips
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Fri, 11 Mar 2022 10:42:59 +0000 (11:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Mar 2022 07:10:22 +0000 (23:10 -0800)
commit5d1359ed5d693a5e4ca76e68c895579ee7b0dc23
tree8a5f6299db63d2135313af6cb0cc2a9eb380f920
parent113e96241631278268e3cbb7ced0ee3f7d9b32a1
nfp: use PluDevice register for model for non-NFP6000 chips

The model number for NFP3800 and newer devices can be completely
derived from PluDevice register without subtracting 0x10.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Fei Qin <fei.qin@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c