From nobody Tue Feb 21 08:22:06 2023 X-Original-To: dev-commits-src-all@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 4PLXML6PCZz3tDyJ; Tue, 21 Feb 2023 08:22:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLXML5g9Bz3n4B; Tue, 21 Feb 2023 08:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676967726; 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=9GfQFJ0HBUB8Th/kTbOHkxxCD8uXdGOHfjcbtYvqQTs=; b=X6lYzOFgR+98PekhUbMsLWvkt8FWUS6y0sNrXsADmMJR79YH9zFa+t7JinCrevTR65eVSA JoylNBzEp3eLT55oDxNoecUjRRHjLzv+XJ//UcySZn/FiGdcCi/G7WTi3CKAvNEmB4PyP6 q0j5iEGL7J78wzTG6v+NRpIjNACyUnP1OuvE6ZZ5ft9QJIqMujSmtc8RhFaDf4P/JQ2mhz HfpiMO4QHqE9EpvdlOaNFVQU/4qPwfzoFbK1JgLCD7DiabZIshM0xI4oMuvhi5cDzlXYSN cuCSGJGPKB3P1cQE+rwLELrvaVV6zwPtH+EbhP+hymMA4LgLIdODLrDSGpT5Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676967726; 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=9GfQFJ0HBUB8Th/kTbOHkxxCD8uXdGOHfjcbtYvqQTs=; b=XthH58zF1p8UA8eGs82Mujk4Dja5huvjzZAkVqcfcyWDMs3UEo2xvnlXz8cwZZfUMOTz/w zL/yvGpSuwZJB1QG+49PeNNRKVbCcA0fEi1AQWhrHowdzGFvkRKh5yuyZz4O2PcaxiQBQO O7xixuvWGA2IHNj459sLooMuQL1+HtlIux7Gld+bK1Hrjr20aucWwSeSU/dvGyxaP+/deQ RtrGHUu9tBNwt+XPidgunJblq4jIoIHaek1PWQ+jAaBNNe+MqJYoNmif0hTdwUmkHG6HFA MpKqHGq8TdRn9wYCZB4zUsFVA1UiALSLq2JB9dFGyeCv2xTl6hHRQK5JI5aJjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676967726; a=rsa-sha256; cv=none; b=d8exd3kMw2VP4a83eWyhIpSBnadGyrbgM7ua2iHvNHIf7/kUM2KHZGKkVtNFJx6l73P8wL jbCIosX1pfgRZMfxEaE8Z3dimlh9/ylQP1hvYhdS8wDDM/y48JCnmXwE82N6AYW/AOo7ue o8VCiJr5ed8Ew0w132xPp+QA9KsT9rQqWPkwxEmOsrbVd0vL9DPl4V8zLU43RGAHRj2wSu 1V5gKaQam+Am95kF+kfbMF8TkxrZamogO6maBDo5yJC1+BJDV6cAlpLpwcVNHi8Ax4pxx4 1cZyF6axl+N9InbWFkX89yj0TRWsnsjel/R1H7wuwZaj/UmZ74h9w/QG/T3MCQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PLXML4lZKzDnc; Tue, 21 Feb 2023 08:22:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31L8M6gD036672; Tue, 21 Feb 2023 08:22:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31L8M6dA036671; Tue, 21 Feb 2023 08:22:06 GMT (envelope-from git) Date: Tue, 21 Feb 2023 08:22:06 GMT Message-Id: <202302210822.31L8M6dA036671@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 81e5b344273c - stable/13 - linuxkpi: Add more suspend defines List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 81e5b344273ca11808b4e694d684fd0c09a6a5f7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=81e5b344273ca11808b4e694d684fd0c09a6a5f7 commit 81e5b344273ca11808b4e694d684fd0c09a6a5f7 Author: Emmanuel Vadot AuthorDate: 2023-02-17 13:49:52 +0000 Commit: Emmanuel Vadot CommitDate: 2023-02-21 08:21:04 +0000 linuxkpi: Add more suspend defines Needed by drm 5.15-lts Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit a0fdaf9a7b34b6f8fdab747f7a198158e66b57ab) --- sys/compat/linuxkpi/common/include/linux/suspend.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/suspend.h b/sys/compat/linuxkpi/common/include/linux/suspend.h index 8458a6f6d4c5..8ceafaf35f56 100644 --- a/sys/compat/linuxkpi/common/include/linux/suspend.h +++ b/sys/compat/linuxkpi/common/include/linux/suspend.h @@ -9,6 +9,10 @@ extern suspend_state_t pm_suspend_target_state; #define PM_SUSPEND_ON 0 #define PM_SUSPEND_TO_IDLE 1 +#define PM_SUSPEND_STANDBY 2 +#define PM_SUSPEND_MEM 3 +#define PM_SUSPEND_MIN PM_SUSPEND_TO_IDLE +#define PM_SUSPEND_MAX 4 static inline int pm_suspend_via_firmware()