summaryrefslogtreecommitdiff
path: root/drivers/net/fddi/skfp/h/skfbi.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-03-04 14:21:00 -0800
committerDavid S. Miller <davem@davemloft.net>2020-03-04 14:21:00 -0800
commite7c298854a04cf1d0b8d125e4dc5d14d7c2aba4c (patch)
treeef3024987c045ae8c12f845d0ac4f775a5d37f5e /drivers/net/fddi/skfp/h/skfbi.h
parent5a1c63f129415bb8382a369275c3f2eb9cd92265 (diff)
parentec46bf925a7f5c824dbf5278995ff8997c00a538 (diff)
Merge branch 'PCI-Add-and-use-constant-PCI_STATUS_ERROR_BITS-and-helper-pci_status_get_and_clear_errors'
Heiner Kallweit says: ==================== PCI: Add and use constant PCI_STATUS_ERROR_BITS and helper pci_status_get_and_clear_errors Several drivers have own definitions for this constant, so move it to the PCI core. In addition in multiple places the following code sequence is used: 1. Read PCI_STATUS 2. Mask out non-error bits 3. Action based on set error bits 4. Write back set error bits to clear them As this is a repeated pattern, add a helper to the PCI core. Most affected drivers are network drivers. But as it's about core PCI functionality, I suppose the series should go through the PCI tree. v2: - fix formal issue with cover letter v3: - fix dumb typo in patch 7 v4: - add patches 1-3 - move new constant PCI_STATUS_ERROR_BITS to include/linux/pci.h - small improvements in commit messages ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi/skfp/h/skfbi.h')
-rw-r--r--drivers/net/fddi/skfp/h/skfbi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/fddi/skfp/h/skfbi.h b/drivers/net/fddi/skfp/h/skfbi.h
index 480795681719..ccee00b71dbc 100644
--- a/drivers/net/fddi/skfp/h/skfbi.h
+++ b/drivers/net/fddi/skfp/h/skfbi.h
@@ -33,11 +33,6 @@
*/
#define I2C_ADDR_VPD 0xA0 /* I2C address for the VPD EEPROM */
-
-#define PCI_ERRBITS (PCI_STATUS_DETECTED_PARITY | PCI_STATUS_SIG_SYSTEM_ERROR | PCI_STATUS_REC_MASTER_ABORT | PCI_STATUS_SIG_TARGET_ABORT | PCI_STATUS_PARITY)
-
-
-
/*
* Control Register File:
* Bank 0