History

i3c: master: Add helper to query bus wakeup requirements

Add i3c_master_has_wakeup_enabled_devs(), which iterates over the devices on an I3C bus and reports whether any of them are enabled for system wakeup and have IBI enabled. Controller drivers can use this helper to determine whether wakeup support must remain available while the system is suspended. Acked-by : Mukesh Savaliya <mukesh.savaliya@oss.qualcomm.com>

Adrian Hunter committed 3 months ago

Commit 60ff7311 parent ff2b20f2 files · +36 −0Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/i3c/master.h+1−0
@@ -765,6 +765,7 @@ void i3c_generic_ibi_recycle_slot(struct i3c_generic_ibi_pool *pool, · 764 unmodified lines
765765 struct i3c_ibi_slot *slot);
766766
767767 void i3c_master_queue_ibi(struct i3c_dev_desc *dev, struct i3c_ibi_slot *slot);
768+bool i3c_master_has_wakeup_enabled_devs(struct i3c_master_controller *master);
768769
769770 struct i3c_ibi_slot *i3c_master_get_free_ibi_slot(struct i3c_dev_desc *dev);
770771

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t