firmware: arm_scmi: Add asynchronous sensor read if it supports
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Jul 2019 08:41:01 +0000 (09:41 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:23:01 +0000 (12:23 +0100)
commitd09aac0eb17c6ce2b66095e1e324f60ec9dd8988
tree9663560792da044f755d8819950101d864af3deb
parent6a55331c87d86a7406d8126ae75bdd07244a91b1
firmware: arm_scmi: Add asynchronous sensor read if it supports

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.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/sensors.c
include/linux/scmi_protocol.h