Heiner Kallweit ec5d9e8784 PCI: Add pci_status_get_and_clear_errors
Several drivers use the following code sequence:
1. Read PCI_STATUS
2. Mask out non-error bits
3. Action based on error bits set
4. Write back set error bits to clear them

As this is a repeated pattern, add a helper to the PCI core.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-04 14:21:00 -08:00
..
2020-01-23 16:40:03 -06:00
2020-01-15 11:00:40 -06:00
2020-02-06 14:17:38 +00:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2019-11-28 08:54:36 -06:00
2020-03-04 14:21:00 -08:00
2019-11-28 08:54:55 -06:00
2020-01-31 14:48:54 -08:00
2020-01-29 17:00:02 -06:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00