diff -pruN 0.0.1+git20190320.5ae3a3e-3/debian/changelog 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/changelog
--- 0.0.1+git20190320.5ae3a3e-3/debian/changelog	2022-06-04 11:12:14.000000000 +0000
+++ 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/changelog	2022-07-18 15:15:54.000000000 +0000
@@ -1,3 +1,10 @@
+xtrx-dkms (0.0.1+git20190320.5ae3a3e-3ubuntu1) kinetic; urgency=medium
+
+  * Support Linux 5.19 (LP: #1982006):
+    - debian/patches/0001-support-linux-5.19.patch
+
+ -- Andrea Righi <andrea.righi@canonical.com>  Mon, 18 Jul 2022 15:15:54 +0000
+
 xtrx-dkms (0.0.1+git20190320.5ae3a3e-3) unstable; urgency=medium
 
   * Team upload.
diff -pruN 0.0.1+git20190320.5ae3a3e-3/debian/control 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/control
--- 0.0.1+git20190320.5ae3a3e-3/debian/control	2022-06-04 11:11:34.000000000 +0000
+++ 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/control	2022-07-18 15:15:54.000000000 +0000
@@ -1,7 +1,8 @@
 Source: xtrx-dkms
 Section: kernel
 Priority: optional
-Maintainer: Sepi Gair <sepigair@email.cz>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Sepi Gair <sepigair@email.cz>
 Build-Depends: debhelper-compat (= 12), dh-sequence-dkms,
 Standards-Version: 4.5.0
 Homepage: https://github.com/xtrx-sdr/xtrx_linux_pcie_drv
diff -pruN 0.0.1+git20190320.5ae3a3e-3/debian/patches/0001-support-linux-5.19.patch 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/patches/0001-support-linux-5.19.patch
--- 0.0.1+git20190320.5ae3a3e-3/debian/patches/0001-support-linux-5.19.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/patches/0001-support-linux-5.19.patch	2022-07-18 15:15:54.000000000 +0000
@@ -0,0 +1,35 @@
+From: Andrea Righi <andrea.righi@canonical.com>
+Subject: support linux >= 5.19
+
+Index: xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c
+===================================================================
+--- xtrx-dkms-0.0.1+git20190320.5ae3a3e.orig/xtrx.c
++++ xtrx-dkms-0.0.1+git20190320.5ae3a3e/xtrx.c
+@@ -173,6 +173,27 @@ MODULE_DESCRIPTION("XTRX low-level PCIe
+ MODULE_LICENSE("GPL");
+ MODULE_VERSION("0.1");
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
++static inline void *
++pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
++                   dma_addr_t *dma_handle)
++{
++      return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC);
++}
++
++static inline void
++pci_free_consistent(struct pci_dev *hwdev, size_t size,
++                  void *vaddr, dma_addr_t dma_handle)
++{
++      dma_free_coherent(&hwdev->dev, size, vaddr, dma_handle);
++}
++
++static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
++{
++	return dma_set_coherent_mask(&dev->dev, mask);
++}
++#endif
++
+ /* Some ARM platform pci_alloc_consistent() reports VA that can't be
+  * mmaped to userspce. Convertion DMA->PA->VA does the trick on that
+  * platforms
diff -pruN 0.0.1+git20190320.5ae3a3e-3/debian/patches/series 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/patches/series
--- 0.0.1+git20190320.5ae3a3e-3/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.0.1+git20190320.5ae3a3e-3ubuntu1/debian/patches/series	2022-07-18 15:15:54.000000000 +0000
@@ -0,0 +1 @@
+0001-support-linux-5.19.patch
