The branch main has been updated by dumbbell:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=2e10a6bd562768256f38078b84d95da30e1e2aa1

commit 2e10a6bd562768256f38078b84d95da30e1e2aa1
Author:     Jean-Sébastien Pédron <[email protected]>
AuthorDate: 2026-06-12 17:00:31 +0000
Commit:     Jean-Sébastien Pédron <[email protected]>
CommitDate: 2026-06-20 10:35:25 +0000

    linuxkpi: Add `pm_resume_via_firmware()`
    
    This function is unimplemented, always return false.
    
    While here, fix the return type of `pm_suspend_via_firmware()`: it
    should be a boolean, not an integer.
    
    The amdgpu DRM driver started to use `pm_resume_via_firmware()` in Linux
    6.13.
    
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D57580
---
 sys/compat/linuxkpi/common/include/linux/suspend.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h 
b/sys/compat/linuxkpi/common/include/linux/suspend.h
index 3a8bec392437..b5447a28aebb 100644
--- a/sys/compat/linuxkpi/common/include/linux/suspend.h
+++ b/sys/compat/linuxkpi/common/include/linux/suspend.h
@@ -27,10 +27,16 @@ extern suspend_state_t pm_suspend_target_state;
 #define        PM_RESTORE_PREPARE      0x0005
 #define        PM_POST_RESTORE         0x0006
 
-static inline int
+static inline bool
 pm_suspend_via_firmware(void)
 {
-       return (0);
+       return (false);
+}
+
+static inline bool
+pm_resume_via_firmware(void)
+{
+       return (false);
 }
 
 static inline int

Reply via email to