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>
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -765,6 +765,7 @@ void i3c_generic_ibi_recycle_slot(struct i3c_generic_ibi_pool *pool, · 764 unmodified lines | ||
| 765 | 765 | struct i3c_ibi_slot *slot); |
| 766 | 766 | |
| 767 | 767 | 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); | |
| 768 | 769 | |
| 769 | 770 | struct i3c_ibi_slot *i3c_master_get_free_ibi_slot(struct i3c_dev_desc *dev); |
| 770 | 771 | |