• David Daney's avatar
    net: thunderx: Rewrite silicon revision tests. · 88ed2377
    David Daney authored
    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: default avatarDavid Daney <david.daney@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    88ed2377
nic_main.c 28.5 KB