firmware: arm_scmi: Review virtio free_list handling
authorCristian Marussi <cristian.marussi@arm.com>
Thu, 17 Feb 2022 13:12:28 +0000 (13:12 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 21 Feb 2022 10:36:48 +0000 (10:36 +0000)
commit9a1699bda095e1ee2f5d0aa43a91d1fccca8b69c
tree9ac54e32b7f21c8645b41a71c6b81f212c4f9614
parent42e90eb53bf3f6fc43c667dd377779e3ebeb748a
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/20220217131234.50328-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