package/i915-sriov-dkms: fix CE on linux 6.6.103+
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
parent
689355f672
commit
acd638d41f
11
package/kernel/i915-sriov-dkms/patches/003-build.patch
Normal file
11
package/kernel/i915-sriov-dkms/patches/003-build.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
|
||||
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
|
||||
@@ -242,7 +242,7 @@ static intel_wakeref_t __intel_runtime_p
|
||||
* function, since the power state is undefined. This applies
|
||||
* atm to the late/early system suspend/resume handlers.
|
||||
*/
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0) && LINUX_VERSION_CODE > KERNEL_VERSION(6,7,0) || LINUX_VERSION_CODE < KERNEL_VERSION(6,6,103)
|
||||
if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0)
|
||||
return 0;
|
||||
#else
|
||||
Loading…
Reference in New Issue
Block a user