git: ae109f0cba29 - stable/15 - ufshci: define the sleep types locally for stable/15

From: Jaeyoon Choi <jaeyoon_at_FreeBSD.org>
Date: Tue, 06 Oct 2026 07:50:46 UTC
The branch stable/15 has been updated by jaeyoon:

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

commit ae109f0cba290849a75f4be9eb0c52c853dc6cbe
Author:     Jaeyoon Choi <jaeyoon@FreeBSD.org>
AuthorDate: 2026-09-28 23:51:39 +0000
Commit:     Jaeyoon Choi <jaeyoon@FreeBSD.org>
CommitDate: 2026-10-06 06:27:47 +0000

    ufshci: define the sleep types locally for stable/15
    
    The suspend/resume support merged next uses enum power_stype from
    <sys/power.h>. That enum comes from the generic sleep types work
    (c43473dc9b83), which is not in stable/15 and depends on ACPI changes
    that are not here either.
    
    Define the enum in ufshci_private.h with the names the driver uses, so
    the following merges from main apply without changes.
    
    This is a direct commit to stable/15.
    
    Sponsored by:   Samsung Electronics
---
 sys/dev/ufshci/ufshci_private.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sys/dev/ufshci/ufshci_private.h b/sys/dev/ufshci/ufshci_private.h
index 22e77c9b9326..5ded8777753d 100644
--- a/sys/dev/ufshci/ufshci_private.h
+++ b/sys/dev/ufshci/ufshci_private.h
@@ -50,6 +50,20 @@ MALLOC_DECLARE(M_UFSHCI);
 
 #define UFSHCI_SECTOR_SIZE	      (512)
 
+/*
+ * stable/15 has no generic sleep types in <sys/power.h>, so define the
+ * ones this driver uses here.
+ */
+enum power_stype {
+	POWER_STYPE_AWAKE,
+	POWER_STYPE_STANDBY,
+	POWER_STYPE_SUSPEND_TO_MEM,
+	POWER_STYPE_SUSPEND_TO_IDLE,
+	POWER_STYPE_HIBERNATE,
+	POWER_STYPE_POWEROFF,
+	POWER_STYPE_COUNT,
+};
+
 struct ufshci_controller;
 
 struct ufshci_completion_poll_status {