]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: arm_scmi: Separate out tx buffer handling and prepare to add rx
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 8 Jul 2019 08:40:48 +0000 (09:40 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Aug 2019 11:23:00 +0000 (12:23 +0100)
commit38c927fbebb3d69c561ae77600f64bb1c308d0c2
tree27c84e5f94438755eb2e868799fd77b4820c11cb
parent46cc7c286ce33f729055f28c114d84e6340c08dd
firmware: arm_scmi: Separate out tx buffer handling and prepare to add rx

Currently we pre-allocate transmit buffers only and use the first free
slot in that pre-allocated buffer for transmitting any new message that
are generally originated from OS to the platform firmware.

Notifications or the delayed responses on the other hand are originated
from the platform firmware and consumes by the OS. It's better to have
separate and dedicated pre-allocated buffers to handle the notifications.
We can still use the transmit buffers for the delayed responses.

In addition, let's prepare existing scmi_xfer_{get,put} for acquiring
and releasing a slot to identify the right(tx/rx) buffers.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c