]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/switchtec: Add check of event support
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 14 Oct 2021 14:18:59 +0000 (14:18 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 Oct 2021 14:22:47 +0000 (09:22 -0500)
commit2f09442a3c035b1b1740c484f67e4d8a589a3ad4
tree1d2d81fdb1b5e1d5628572cf49831e0ca8c0ebaa
parent4310c486a19ad2a74b291e5180dc7233e94065e0
PCI/switchtec: Add check of event support

Not all events are supported by every gen/variant of the Switchtec
firmware. To solve this, since Gen4, a new bit in each event header
is introduced to indicate if an event is supported by the firmware.

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