PCI/switchtec: Move check event ID from mask_event() to switchtec_event_isr()
authorWesley Sheng <wesley.sheng@microchip.com>
Mon, 6 Jan 2020 19:03:30 +0000 (12:03 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2020 17:00:36 +0000 (11:00 -0600)
commit2085747d533b9be5f5a51efbc3e86be0164571a2
tree7c7a2f5bda12d10eb533765f95bbba25a1a5aab7
parent7501a02a9dfca3b4aa5caa74d86b7215b2697f54
PCI/switchtec: Move check event ID from mask_event() to switchtec_event_isr()

The event ID check doesn't depend on anything in the mask_all_events() to
mask_event() path.  Do it in switchtec_event_isr() to avoid the CSR read in
mask_event().

Link: https://lore.kernel.org/r/20200106190337.2428-6-logang@deltatee.com
Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c