mbox series

[v3,0/3] PCI: Disable parity checking if broken_parity is set

Message ID 992c800e-2e12-16b0-4845-6311b295d932@gmail.com (mailing list archive)
Headers show
Series PCI: Disable parity checking if broken_parity is set | expand

Message

Heiner Kallweit Jan. 6, 2021, 5:49 p.m. UTC
If we know that a device has broken parity checking, then disable it.
This avoids quirks like in r8169 where on the first parity error
interrupt parity checking will be disabled if broken_parity_status
is set. Make pci_quirk_broken_parity() public so that it can be used
by platform code, e.g. for Thecus N2100.

v2:
- reduce scope of N2100 change to using the new PCI core quirk
v3:
- improve commit message of patch 2

Heiner Kallweit (3):
  PCI: Disable parity checking if broken_parity_status is set
  ARM: iop32x: improve N2100 PCI broken parity quirk
  r8169: simplify broken parity handling now that PCI core takes care

 arch/arm/mach-iop32x/n2100.c              |  2 +-
 drivers/net/ethernet/realtek/r8169_main.c | 14 --------------
 drivers/pci/quirks.c                      | 17 +++++++++++------
 include/linux/pci.h                       |  2 ++
 4 files changed, 14 insertions(+), 21 deletions(-)