[PATCH] compat-drivers: refresh alx patch for INTX-MSI issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: xiong <xiong@xxxxxxxxxxxxxxxx>
---
 .../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

diff --git a/patches/unified-drivers/network/0005-alx-intx-msi-workaround.patch b/patches/unified-drivers/network/0005-alx-intx-msi-workaround.patch
new file mode 100644
index 0000000..825b6da
--- /dev/null
+++ b/patches/unified-drivers/network/0005-alx-intx-msi-workaround.patch
@@ -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;
-- 
1.8.0.msysgit.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux