Merge ~vicamo/ubuntu/+source/usbio-drivers:bug-2134604/WW44.4_25_ptl_pv/resolute-mp into ubuntu/+source/usbio-drivers:ubuntu/devel

Proposed by You-Sheng Yang
Status: Merged
Merge reported by: You-Sheng Yang
Merged at revision: 6f8c537d333f0116ccb03dab14c06203698125eb
Proposed branch: ~vicamo/ubuntu/+source/usbio-drivers:bug-2134604/WW44.4_25_ptl_pv/resolute-mp
Merge into: ubuntu/+source/usbio-drivers:ubuntu/devel
Prerequisite: ~vicamo/ubuntu/+source/usbio-drivers:bug-2134604/WW44.4_25_ptl_pv/resolute-prerequisite
Diff against target: 195 lines (+58/-56)
6 files modified
debian/changelog (+11/-0)
debian/patches/0001-dkms-correct-package-info.patch (+4/-4)
debian/patches/0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch (+1/-1)
debian/patches/dkms-allow-overriding-variables-from-dkms.patch (+41/-0)
debian/patches/series (+1/-2)
dev/null (+0/-49)
Reviewer Review Type Date Requested Status
Ubuntu Kernel DKMS Uploaders Pending
Review via email: mp+498214@code.launchpad.net

Commit message

* New upstream WW44.4_25_ptl_pv tag release (LP: #2134604)
  - debian: refresh patches
  - drop 0004-UBUNTU-SAUCE-correct-modaliases.patch,
    backport-fix-build-against-kernel-6.17.patch as they're either no longer
    effective, or applied in the upstream.
  - UBUNTU: SAUCE: dkms: allow overriding variables from dkms

To post a comment you must log in.
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Also pushed to https://launchpad.net/~vicamo/+archive/ubuntu/sru-2134604 for review/verification.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 0b5d9f9..16ef5fc 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,14 @@
6+usbio-drivers (0~git202510282139.ee221eca-0ubuntu1) resolute; urgency=medium
7+
8+ * New upstream WW44.4_25_ptl_pv tag release (LP: #2134604)
9+ - debian: refresh patches
10+ - drop 0004-UBUNTU-SAUCE-correct-modaliases.patch,
11+ backport-fix-build-against-kernel-6.17.patch as they're either no longer
12+ effective, or applied in the upstream.
13+ - UBUNTU: SAUCE: dkms: allow overriding variables from dkms
14+
15+ -- You-Sheng Yang <vicamo@gmail.com> Tue, 16 Dec 2025 17:33:05 +0800
16+
17 usbio-drivers (0~git202502252108.4fb690c6-0ubuntu1) questing; urgency=medium
18
19 * New upstream WW11_25_usbio_arl_enable release (LP: #2101850)
20diff --git a/debian/patches/0001-dkms-correct-package-info.patch b/debian/patches/0001-dkms-correct-package-info.patch
21index af86770..78c094a 100644
22--- a/debian/patches/0001-dkms-correct-package-info.patch
23+++ b/debian/patches/0001-dkms-correct-package-info.patch
24@@ -12,9 +12,9 @@ index 3154c85..3ad44ea 100644
25 --- a/dkms.conf
26 +++ b/dkms.conf
27 @@ -1,5 +1,5 @@
28- PACKAGE_NAME="usbio-drivers"
29--PACKAGE_VERSION="0.0.1"
30+ PACKAGE_NAME="usbio"
31+-PACKAGE_VERSION="0.2"
32 +PACKAGE_VERSION="#MODULE_VERSION#"
33
34- MAKE="make KERNELRELEASE=$kernelver KERNEL_SRC=$kernel_source_dir"
35- CLEAN="make KERNELRELEASE=$kernelver KERNEL_SRC=$kernel_source_dir clean"
36+ MAKE="make -C . KERNELDIR=/lib/modules/${kernelver}/build"
37+ CLEAN="make -C . clean"
38diff --git a/debian/patches/0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch b/debian/patches/0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch
39index 681792e..63d0fae 100644
40--- a/debian/patches/0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch
41+++ b/debian/patches/0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch
42@@ -15,4 +15,4 @@ index 3ad44ea..d61229d 100644
43 DEST_MODULE_LOCATION[2]="/updates"
44
45 AUTOINSTALL="yes"
46-+BUILD_EXCLUSIVE_CONFIG="CONFIG_ACPI CONFIG_GPIOLIB_IRQCHIP CONFIG_I2C CONFIG_MFD_CORE"
47++BUILD_EXCLUSIVE_CONFIG="CONFIG_ACPI CONFIG_GPIOLIB_IRQCHIP CONFIG_I2C CONFIG_USB"
48diff --git a/debian/patches/0004-UBUNTU-SAUCE-correct-modaliases.patch b/debian/patches/0004-UBUNTU-SAUCE-correct-modaliases.patch
49deleted file mode 100644
50index ec2224b..0000000
51--- a/debian/patches/0004-UBUNTU-SAUCE-correct-modaliases.patch
52+++ /dev/null
53@@ -1,30 +0,0 @@
54-From: You-Sheng Yang <vicamo@gmail.com>
55-Date: Fri, 23 Aug 2024 00:08:36 +0800
56-Subject: UBUNTU: SAUCE: correct modaliases
57-
58-Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
59----
60- drivers/gpio/gpio-usbio.c | 2 +-
61- drivers/i2c/busses/i2c-usbio.c | 2 +-
62- 2 files changed, 2 insertions(+), 2 deletions(-)
63-
64-diff --git a/drivers/gpio/gpio-usbio.c b/drivers/gpio/gpio-usbio.c
65-index d5635c0..e4b12e9 100644
66---- a/drivers/gpio/gpio-usbio.c
67-+++ b/drivers/gpio/gpio-usbio.c
68-@@ -513,4 +513,4 @@ MODULE_AUTHOR("Israel Cepeda <israel.a.cepeda.lopez@intel.com>");
69- MODULE_AUTHOR("Lifu Wang <lifu.wang@intel.com>");
70- MODULE_DESCRIPTION("Intel USBIO-GPIO driver");
71- MODULE_LICENSE("GPL v2");
72--MODULE_ALIAS("platform:usb-gpio");
73-+MODULE_ALIAS("platform:usbio-gpio");
74-diff --git a/drivers/i2c/busses/i2c-usbio.c b/drivers/i2c/busses/i2c-usbio.c
75-index be49697..17063d5 100644
76---- a/drivers/i2c/busses/i2c-usbio.c
77-+++ b/drivers/i2c/busses/i2c-usbio.c
78-@@ -428,4 +428,4 @@ MODULE_AUTHOR("Israel Cepeda <israel.a.cepeda.lopez@intel.com>");
79- MODULE_AUTHOR("Lifu Wang <lifu.wang@intel.com>");
80- MODULE_DESCRIPTION("Intel USBIO-I2C driver");
81- MODULE_LICENSE("GPL v2");
82--MODULE_ALIAS("platform:usb-i2c");
83-+MODULE_ALIAS("platform:usbio-i2c");
84diff --git a/debian/patches/backport-fix-build-against-kernel-6.17.patch b/debian/patches/backport-fix-build-against-kernel-6.17.patch
85deleted file mode 100644
86index c0f8dfd..0000000
87--- a/debian/patches/backport-fix-build-against-kernel-6.17.patch
88+++ /dev/null
89@@ -1,49 +0,0 @@
90-From: You-Sheng Yang <vicamo@gmail.com>
91-Date: Wed, 13 Aug 2025 14:58:19 +0800
92-Subject: backport: fix build against kernel >= 6.17
93-
94-v6.17-rc1 commit 98ce1eb1fd87e ("gpiolib: introduce gpio_chip setters
95-that return values") added two new APIs `set_rv` and `set_multiple_rv`
96-to `struct gpio_irq_chip` that duplicate existing `set` and
97-`set_multiple` without return values. They then completely replace the
98-no-return-value APIs in same v6.17-rc1 commit d9d87d90cc0b1
99-("treewide: rename GPIO set callbacks back to their original names").
100-
101-Bug-Ubuntu: https://bugs.launchpad.net/bugs/2120461
102-Forwarded: https://github.com/intel/usbio-drivers/pull/38
103-Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
104----
105- drivers/gpio/gpio-usbio.c | 13 +++++++++++--
106- 1 file changed, 11 insertions(+), 2 deletions(-)
107-
108-diff --git a/drivers/gpio/gpio-usbio.c b/drivers/gpio/gpio-usbio.c
109-index de9d5cb..053fa32 100644
110---- a/drivers/gpio/gpio-usbio.c
111-+++ b/drivers/gpio/gpio-usbio.c
112-@@ -175,8 +175,13 @@ static int usbio_gpio_get_value(struct gpio_chip *chip, unsigned int offset)
113- return usbio_gpio_read(usbio_gpio, offset);
114- }
115-
116--static void usbio_gpio_set_value(struct gpio_chip *chip, unsigned int offset,
117-- int val)
118-+static
119-+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 17, 0)
120-+void
121-+#else
122-+int
123-+#endif
124-+usbio_gpio_set_value(struct gpio_chip *chip, unsigned int offset, int val)
125- {
126- struct usbio_gpio_dev *usbio_gpio = gpiochip_get_data(chip);
127- int ret;
128-@@ -186,6 +191,10 @@ static void usbio_gpio_set_value(struct gpio_chip *chip, unsigned int offset,
129- dev_err(chip->parent,
130- "%s offset:%d val:%d set value failed %d\n", __func__,
131- offset, val, ret);
132-+
133-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)
134-+ return ret;
135-+#endif
136- }
137-
138- static int usbio_gpio_direction_input(struct gpio_chip *chip,
139diff --git a/debian/patches/dkms-allow-overriding-variables-from-dkms.patch b/debian/patches/dkms-allow-overriding-variables-from-dkms.patch
140new file mode 100644
141index 0000000..5fedfab
142--- /dev/null
143+++ b/debian/patches/dkms-allow-overriding-variables-from-dkms.patch
144@@ -0,0 +1,41 @@
145+From: You-Sheng Yang <vicamo@gmail.com>
146+Date: Tue, 16 Dec 2025 17:19:33 +0800
147+Subject: UBUNTU: SAUCE: dkms: allow overriding variables from dkms
148+
149+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2134604
150+Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
151+---
152+ Makefile | 4 ++--
153+ dkms.conf | 4 ++--
154+ 2 files changed, 4 insertions(+), 4 deletions(-)
155+
156+diff --git a/Makefile b/Makefile
157+index d1207e1..28366ba 100644
158+--- a/Makefile
159++++ b/Makefile
160+@@ -10,8 +10,8 @@ gpio-usbio-y := drivers/gpio/gpio-usbio.o
161+ obj-m += i2c-usbio.o
162+ i2c-usbio-y := drivers/i2c/busses/i2c-usbio.o
163+
164+-KERNELRELEASE := $(shell uname -r)
165+-KDIR := /lib/modules/$(KERNELRELEASE)/build
166++KERNELRELEASE ?= $(shell uname -r)
167++KDIR ?= /lib/modules/$(KERNELRELEASE)/build
168+ PWD := $(shell pwd)
169+
170+ ccflags-y += -I$(src)/include/
171+diff --git a/dkms.conf b/dkms.conf
172+index 477d38c..7a0daec 100644
173+--- a/dkms.conf
174++++ b/dkms.conf
175+@@ -1,8 +1,8 @@
176+ PACKAGE_NAME="usbio"
177+ PACKAGE_VERSION="#MODULE_VERSION#"
178+
179+-MAKE="make -C . KERNELDIR=/lib/modules/${kernelver}/build"
180+-CLEAN="make -C . clean"
181++MAKE="make KERNELRELEASE=$kernelver KDIR=$kernel_source_dir"
182++CLEAN="make KERNELRELEASE=$kernelver KDIR=$kernel_source_dir clean"
183+
184+ BUILT_MODULE_NAME[0]="usbio"
185+ DEST_MODULE_LOCATION[0]="/updates"
186diff --git a/debian/patches/series b/debian/patches/series
187index 65599f2..1700245 100644
188--- a/debian/patches/series
189+++ b/debian/patches/series
190@@ -1,4 +1,3 @@
191 0001-dkms-correct-package-info.patch
192 0002-dkms-add-BUILD_EXCLUSIVE_CONFIG.patch
193-0004-UBUNTU-SAUCE-correct-modaliases.patch
194-backport-fix-build-against-kernel-6.17.patch
195+dkms-allow-overriding-variables-from-dkms.patch

Subscribers

People subscribed via source and target branches