]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: thunderx: Rewrite silicon revision tests.
authorDavid Daney <david.daney@cavium.com>
Sat, 24 Oct 2015 00:14:09 +0000 (17:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Oct 2015 01:13:00 +0000 (18:13 -0700)
commit88ed237720bd618240439714a57fb69ea96428e7
tree7aa87a94dbbe8510a17f1db7d7f43034ff224f32
parent4e85777ff071b51f500b130b6d036922af32be25
net: thunderx: Rewrite silicon revision tests.

The test for pass-1 silicon was incorrect, it should be for all
revisions less than 8.  Also the revision is already present in the
pci_dev, so there is no need to read and keep a private copy.

Remove rev_id and code to read it from struct nicpf.  Create new
static inline function pass1_silicon() to be used to testing the
silicon version.  Use pass1_silicon() for revision checks, this will
be more widely used in follow on patches.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c