PCI/switchtec: Add 'generation' variable
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 15 Jan 2020 03:56:43 +0000 (20:56 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:37 +0000 (11:00 -0600)
commitb13313a01a6a607bd92268822d498d5c7356ca71
treedd530cfc69f4c20d4051e7600cb01d6e4df2e5f6
parentfcccd282b633ab9fc7d53ff8ccf82ab5c30a0985
PCI/switchtec: Add 'generation' variable

Add a generation variable passed through the device ID table and test for
Gen3-specific registers.  This will allow us to add Gen4 and other devices
that extend the programming model.

Link: https://lore.kernel.org/r/20200115035648.2578-3-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