linux/Documentation/PCI
Luc Van Oostenryck 16d79cd4e2 PCI: Use 'pci_channel_state_t' instead of 'enum pci_channel_state'
The method struct pci_error_handlers.error_detected() is defined and
documented as taking an 'enum pci_channel_state' for the second argument,
but most drivers use 'pci_channel_state_t' instead.

This 'pci_channel_state_t' is not a typedef for the enum but a typedef for
a bitwise type in order to have better/stricter typechecking.

Consolidate everything by using 'pci_channel_state_t' in the method's
definition, in the related helpers and in the drivers.

Enforce use of 'pci_channel_state_t' by replacing 'enum pci_channel_state'
with an anonymous 'enum'.

Note: Currently, from a typechecking point of view this patch changes
nothing because only the constants defined by the enum are bitwise, not the
enum itself (sparse doesn't have the notion of 'bitwise enum'). This may
change in some not too far future, hence the patch.

[bhelgaas: squash in
  https://lore.kernel.org/r/20200702162651.49526-3-luc.vanoostenryck@gmail.com
  https://lore.kernel.org/r/20200702162651.49526-4-luc.vanoostenryck@gmail.com]
Link: https://lore.kernel.org/r/20200702162651.49526-2-luc.vanoostenryck@gmail.com
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2020-07-07 17:11:52 -05:00
..
endpoint Documentation: PCI: Give unique labels to sections 2020-05-11 17:07:44 +01:00
acpi-info.rst Documentation: PCI: convert acpi-info.txt to reST 2019-05-30 17:54:32 -05:00
boot-interrupts.rst docs: pci: boot-interrupts.rst: improve html output 2020-04-20 15:45:23 -06:00
index.rst Documentation: PCI: Add background on Boot Interrupts 2020-03-09 16:45:28 -05:00
msi-howto.rst Documentation: PCI: Fix pci_alloc_irq_vectors() function name typo 2019-12-30 08:21:29 -06:00
pci-error-recovery.rst PCI: Use 'pci_channel_state_t' instead of 'enum pci_channel_state' 2020-07-07 17:11:52 -05:00
pci-iov-howto.rst Documentation: PCI: convert pci-iov-howto.txt to reST 2019-05-30 17:54:32 -05:00
pci.rst docs: fix pointers to io-mapping.rst and io_ordering.rst files 2020-03-11 14:15:20 -06:00
pcieaer-howto.rst PCI/AER: Rationalize error status register clearing 2020-03-28 13:19:05 -05:00
pciebus-howto.rst Documentation PCI: Fix pciebus-howto.rst filename typo 2019-08-15 12:12:38 -05:00