From nobody Sat Sep 19 14:40:31 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hnBxC6L5Jz6srwV for ; Sat, 19 Sep 2026 14:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hnBxC3m0Jz4Whh for ; Sat, 19 Sep 2026 14:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xNJj4grir347s22MINeU/KPT382u+ySUKy3LN6BfyoY=; b=H3zNBBsLrGChoA4ENKbAWa4Wg+A5a1r/6FKox6XiQUKK5EQ6ah+HOF/7FT416oqUMKSm8Y Zq5gJt45hU6TPTi+7wNfkeDXVeAB9/QV1uyudvD6OUKv9LsiVDkXhsPtjylgYsd11uDR2H +lYqCQ5NqJK9oUm5fPY5LSasqAizbPKWrrI+BW6NKr03Pga8AELqWJrIsIJ2FxLMdsaMpC cP35zJonWd6rHd9j2iL9FNPhKrfOJVmt6DrsmjXr3sLfyOKTBkREUBVeWYavunuC9kVTx+ tneMjLRVvRxE4lWZhUZIUWZ1oF52iyWjs4NFMs2NKr+fnQSymt9bq2pWxdlJ3Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789828831; b=VrSVEDoDzf8WM3XTsvYMULy5EAdBXUpS9kEevch01kitNl15K4Vxsv1FNgZNV2Lhuknqd9 2d278CzO8VYA2SCA7M2Swa9FFkzyI/LNLSv8CvU5lM/XKRxrfUJoeTk0zZRe/Riz0TsE5T xxC73b5BonL1RoTJZGFONv+G+UGauN/O4VZ2BPiCW7pu7oYrbkEFzbZGs1j6i/uwAV2TYO p+3nsbErcvkIchKVJ+aTy5o7X5KQUdZ/NUEjGx9r/kvqsO5FSt1EZXEaTNf/B9THXtytjI hYXZA1IUrpzJPSnGVytFJnHuKzF3XbtXcxPlq7nx223mpeKe+94e8nZaYbgAxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xNJj4grir347s22MINeU/KPT382u+ySUKy3LN6BfyoY=; b=DOrZODkStzw/1ljf1HziZAj7GTN2FfDajLQDI8tSs/82d/OGErtRqYNXVQkPepB9hwkvJp /jR2e7tGBcFOcpm3nSKvfDNmXy+v1N33eRWyvyQXY+2Q7UrmB5Kt5GmghICYMeXHo8oDjt 6PkX8+Jckw8YhErSYSNtmBL9ay6ugmmWZiP5PZ34FtmaOnijZx8WLqGAGS+bZzjyqt8O7F /xqpbGUpSiruIzzVA61BvzGVuUOhdHFrzenwKSyw27wNd7JMP2nwxghlwSxuGoLF6+Hpa4 uOMQzrSU+z1WoPR4Udm82fxlD/IJNN0ABrc0nhdsgdAzLX55xcLyMR+UJjzmDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hnBxC2r5Mz17JD for ; Sat, 19 Sep 2026 14:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4717a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 19 Sep 2026 14:40:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 28ca279559d3 - stable/15 - LinuxKPI: add can_wakeup option and accessor functions List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 28ca279559d3ff80af69cb3e1e32cb3e6246be47 Auto-Submitted: auto-generated Date: Sat, 19 Sep 2026 14:40:31 +0000 Message-Id: <6aae9edf.4717a.338f4250@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=28ca279559d3ff80af69cb3e1e32cb3e6246be47 commit 28ca279559d3ff80af69cb3e1e32cb3e6246be47 Author: Bjoern A. Zeeb AuthorDate: 2026-08-16 22:05:42 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-19 09:34:11 +0000 LinuxKPI: add can_wakeup option and accessor functions We can implement device_set_wakeup_capable() in the !CONFIG_PM_SLEEP case; we do not have the infrastructure in place for the CONFIG_PM_SLEEP case so leave a pr_debug TODO. Needed by an upcoming wireless driver. Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D58883 (cherry picked from commit a424fb3519ebf8fb972e7ba45ba19df322992b00) --- sys/compat/linuxkpi/common/include/linux/pm.h | 17 +++++++++++++++++ sys/compat/linuxkpi/common/src/linux_compat.c | 6 ++++++ 2 files changed, 23 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h index 932697e0eda8..baf1c152a310 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm.h +++ b/sys/compat/linuxkpi/common/include/linux/pm.h @@ -49,6 +49,7 @@ struct dev_pm_domain { struct dev_pm_info { atomic_t usage_count; + bool can_wakeup; }; #define PM_EVENT_FREEZE 0x0001 @@ -111,4 +112,20 @@ pm_vt_switch_unregister(struct device *dev __unused) { } +#ifdef CONFIG_PM_SLEEP +static inline void +device_set_wakeup_capable(struct device *dev __unused, bool capable __unused) +{ + pr_debug("%s: TODO\n", __func__); +} +#else +void linuxkpi_device_set_wakeup_capable(struct device *, bool); + +static inline void +device_set_wakeup_capable(struct device *dev, bool capable) +{ + linuxkpi_device_set_wakeup_capable(dev, capable); +} +#endif + #endif /* _LINUXKPI_LINUX_PM_H */ diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c index 31fd80faac1d..5b16531e42ed 100644 --- a/sys/compat/linuxkpi/common/src/linux_compat.c +++ b/sys/compat/linuxkpi/common/src/linux_compat.c @@ -2818,6 +2818,12 @@ device_can_wakeup(struct device *dev) return (false); } +void +linuxkpi_device_set_wakeup_capable(struct device *dev, bool capable) +{ + dev->power.can_wakeup = capable; +} + static void devm_device_group_remove(struct device *dev, void *p) {