OSDN Git Service

firmware: arm_scmi: Add receive buffer support for notifications
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 27 Mar 2020 14:34:26 +0000 (14:34 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 14 Apr 2020 08:31:49 +0000 (09:31 +0100)
commit4ebd8f6dea813660740d004bde3caaf54bd79019
tree69cd8b9b1a7dfc38020999d83a7521f0b8ab2fed
parent23818b3d8590a79d56af9659cf709ebfae30f832
firmware: arm_scmi: Add receive buffer support for notifications

With all the plumbing in place, let's just add the separate dedicated
receive buffers to handle notifications that can arrive asynchronously
from the platform firmware to OS.

Also add one check to see if the platform supports any receive channels
before allocating the receive buffers: since those buffers are optionally
supported though, the whole xfer initialization is also postponed to be
able to check for their existence in advance.

Link: https://lore.kernel.org/r/20200327143438.5382-2-cristian.marussi@arm.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
[Changed parameters in __scmi_xfer_info_init()]
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c