[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250911112058.3610201-1-treapking@chromium.org>
Date: Thu, 11 Sep 2025 19:16:02 +0800
From: Pin-yen Lin <treapking@...omium.org>
To: "Rafael J . Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>,
Pavel Machek <pavel@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Danilo Krummrich <dakr@...nel.org>,
Saravana Kannan <saravanak@...gle.com>
Cc: Hsin-Te Yuan <yuanhsinte@...omium.org>,
linux-pm@...r.kernel.org,
Chen-Yu Tsai <wenst@...omium.org>,
linux-kernel@...r.kernel.org,
Pin-yen Lin <treapking@...omium.org>
Subject: [PATCH v2 1/2] driver core: Export device_link_flag_is_sync_state_only()
Export device_link_flag_is_sync_state_only() for future patches.
Signed-off-by: Pin-yen Lin <treapking@...omium.org>
---
Changes in v2:
- New in v2
drivers/base/core.c | 3 ++-
include/linux/device.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index d22d6b23e758..cc6af9b0d59d 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -287,10 +287,11 @@ static bool device_is_ancestor(struct device *dev, struct device *target)
#define DL_MARKER_FLAGS (DL_FLAG_INFERRED | \
DL_FLAG_CYCLE | \
DL_FLAG_MANAGED)
-static inline bool device_link_flag_is_sync_state_only(u32 flags)
+bool device_link_flag_is_sync_state_only(u32 flags)
{
return (flags & ~DL_MARKER_FLAGS) == DL_FLAG_SYNC_STATE_ONLY;
}
+EXPORT_SYMBOL_GPL(device_link_flag_is_sync_state_only);
/**
* device_is_dependent - Check if one device depends on another one
diff --git a/include/linux/device.h b/include/linux/device.h
index 0470d19da7f2..e27d0bf7c43d 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1197,6 +1197,7 @@ const char *dev_driver_string(const struct device *dev);
struct device_link *device_link_add(struct device *consumer,
struct device *supplier, u32 flags);
void device_link_del(struct device_link *link);
+bool device_link_flag_is_sync_state_only(u32 flags);
void device_link_remove(void *consumer, struct device *supplier);
void device_links_supplier_sync_state_pause(void);
void device_links_supplier_sync_state_resume(void);
--
2.51.0.384.g4c02a37b29-goog
Powered by blists - more mailing lists