firmware: arm_scmi: Review virtio free_list handling
authorCristian Marussi <cristian.marussi@arm.com>
Sun, 13 Feb 2022 19:58:26 +0000 (19:58 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 14 Feb 2022 14:49:40 +0000 (14:49 +0000)
commit2409ec4c094659af8b442ecfe22dba1fef3609f0
tree869acc08c57643c26f1e519e88b4f4b7d8ab8506
parent96bbcc3f6c0bf9434724f2b74643cef75e6a8877
firmware: arm_scmi: Review virtio free_list handling

Add a new spinlock dedicated to the access of the TX free list and a couple
of helpers to get and put messages back and forth from the free_list.

Link: https://lore.kernel.org/r/20220213195832.27932-3-cristian.marussi@arm.com
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Igor Skalkin <igor.skalkin@opensynergy.com>
Cc: Peter Hilber <peter.hilber@opensynergy.com>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/virtio.c