SENSOR_DESCRIPTION_GET provides attributes to indicate if the sensor supports asynchronous read. We can read that flag and use asynchronous reads for any sensors with that attribute set. Let's use the new scmi_do_xfer_with_response to support asynchronous sensor reads.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -145,6 +145,8 @@ struct scmi_sensor_info { · 144 unmodified lines | |||
| 145 | u32 id; | 145 | u32 id; |
| 146 | u8 type; | 146 | u8 type; |
| 147 | s8 scale; | 147 | s8 scale; |
| 148 | u8 num_trip_points; | ||
| 149 | bool async; | ||
| 148 | char name[SCMI_MAX_STR_SIZE]; | 150 | char name[SCMI_MAX_STR_SIZE]; |
| 149 | }; | 151 | }; |
| 150 | 152 | ||