diff options
author | tomsik68 | 2016-08-19 14:00:02 +0200 |
---|---|---|
committer | tomsik68 | 2016-08-19 14:00:02 +0200 |
commit | 0101fecdd11ff4d7fbf75dcc4129d8e9ee344c97 (patch) | |
tree | ff512746113aaa509b08911fba3abc76834e3839 /pci_word_fix_4.7.patch | |
parent | 504aa60dc2657240bf260bf8244393247fd67f34 (diff) | |
download | aur-0101fecdd11ff4d7fbf75dcc4129d8e9ee344c97.tar.gz |
Fixed driver building on new kernels
Diffstat (limited to 'pci_word_fix_4.7.patch')
-rw-r--r-- | pci_word_fix_4.7.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pci_word_fix_4.7.patch b/pci_word_fix_4.7.patch new file mode 100644 index 000000000000..b813c3f20aac --- /dev/null +++ b/pci_word_fix_4.7.patch @@ -0,0 +1,36 @@ +--- a/common/rtmp_mcu.c 2012-03-26 11:55:22.000000000 +0200 ++++ b/common/rtmp_mcu.c 2016-08-18 21:24:18.389453577 +0200 +@@ -441,7 +441,7 @@ + + #ifdef CONFIG_STA_SUPPORT + #ifdef PCIE_PS_SUPPORT +- ULONG Configuration; ++ u16 Configuration; + ULONG offset; + #endif /* PCIE_PS_SUPPORT */ + #endif /* CONFIG_STA_SUPPORT */ +@@ -556,10 +556,8 @@ + { + offset = 0x70F; + pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration); +- Configuration=le2cpu16(Configuration); +- Configuration &= 0xffffff00; ++ Configuration &= 0xff00; + Configuration |= (0x13); /* set Latency to default */ +- Configuration=le2cpu16(Configuration); + pci_write_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, Configuration); + DBGPRINT(RT_DEBUG_TRACE, ("Write 70f; offset = %x, Configuration = %x. \n", offset, Configuration)); + } +@@ -576,11 +574,9 @@ + offset = 0x70F; + /* Configuration = RTMPReadCBConfigXP(pAd, offset); */ + pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration); +- Configuration=le2cpu16(Configuration); + +- Configuration &= 0xffffff00; ++ Configuration &= 0xff00; + Configuration |= (0x7F); // Set to long latency +- Configuration=le2cpu16(Configuration); + + pci_write_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, Configuration); + |