summarylogtreecommitdiffstats
path: root/0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch
diff options
context:
space:
mode:
authorChris Severance2022-06-07 19:50:28 -0400
committerChris Severance2022-06-07 19:50:28 -0400
commit380343336a91421f5f726611540d2bfc535fba55 (patch)
tree13363762bcc269e59e8acc01593563bc7ff3787a /0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch
parent11eae91e1c6dbe0d8c3c7c19b3668bdb7edec6b3 (diff)
downloadaur-380343336a91421f5f726611540d2bfc535fba55.tar.gz
autu: Update to 1.8.0-1
Diffstat (limited to '0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch')
-rw-r--r--0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch b/0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch
new file mode 100644
index 000000000000..27131bdbb2f5
--- /dev/null
+++ b/0002-kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch
@@ -0,0 +1,14 @@
+diff -pNaru5 a/ax99100_sp.h b/ax99100_sp.h
+--- a/ax99100_sp.h 2022-06-07 16:55:26.621034945 -0400
++++ b/ax99100_sp.h 2022-06-07 16:58:32.488989767 -0400
+@@ -255,5 +255,10 @@ struct custom_eeprom {
+ #define _INLINE_
+ #endif
+
+ #define DEFAULT99100_BAUD 115200
+ #endif
++
++/* #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0) */
++#define pci_alloc_consistent(hwdev,size,dma_handle) dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC)
++#define pci_free_consistent(hwdev,size,vaddr,dma_handle) dma_free_coherent(&hwdev->dev, size, vaddr, dma_handle)
++/* #endif */