PCI/switchtec: Add Gen4 system info register support
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 15 Jan 2020 03:56:46 +0000 (20:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:38 +0000 (11:00 -0600)
commita3321ca394082f403b447646d81c18ff6b39f4a6
treefe3299a3342adf9d050b158f7aed3fa1e7202cec
parent993d208daaebebc3f3ec211e862a413a90e8d69b
PCI/switchtec: Add Gen4 system info register support

Add the Gen4-specific system info registers and ensure their usage is
guarded by a check on the device's generation.

Link: https://lore.kernel.org/r/20200115035648.2578-6-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c
include/linux/switchtec.h