Date: Sat, 20 Jun 2026 11:53:56 +0000 From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2e10a6bd5627 - main - linuxkpi: Add `pm_resume_via_firmware()` Message-ID: <6a367f54.26355.40d16262@gitrepo.freebsd.org>
index | next in thread | raw e-mail
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 <dumbbell@FreeBSD.org> AuthorDate: 2026-06-12 17:00:31 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> 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 inthome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a367f54.26355.40d16262>
