Skip to contentSkip to conversation

compat-drivers: refresh alx patch for INTX-MSI issue

PATCH New xiong 1 participant 1 message Mar 1, 2013

lore
Share & tools
lore

xiong

author
#0 lore raw

PATCH 1/1 compat-drivers: refresh alx patch for INTX-MSI issue

chip revsion less than C0 has INTX/MSI issue.
this patch should be removed after the kernel drivers/pci/quirks.c contains this workaround.

---
 .../network/0005-alx-intx-msi-workaround.patch               | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/unified-drivers/network/0005-alx-intx-msi-workaround.patch
patches/unified-drivers/network/0005-alx-intx-msi-workaround.patch new file +12 -0
new file mode 100644
index 0000000..825b6da
@@ -0,0 +1,12 @@
+--- a/drivers/net/ethernet/atheros/alx/alx_main.c
++++ b/drivers/net/ethernet/atheros/alx/alx_main.c
+@@ -1026,6 +1026,9 @@ static int alx_identify_hw(struct alx_adapter *adpt)
+ 		if (rev < ALX_REV_C0) {
+ 			hw->ptrn_ofs = 0x600;
+ 			hw->max_ptrns = 8;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
++			pdev->dev_flags |= PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG;
++#endif
+ 		} else {
+ 			hw->ptrn_ofs = 0x14000;
+ 			hw->max_ptrns = 16;
Signature · 1 line
1.8.0.msysgit.0