]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf474341ea4c81dfdcb4d04e840b253996c4d68c1
tree9663560792da044f755d8819950101d864af3deb
parenta1db3c2df6b1911e2d600b2b93291cf781ef5a3b
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