diff options
author | Cristian Marussi <[email protected]> | 2021-09-16 11:33:36 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2021-10-06 11:12:45 +0100 |
commit | bf1acf809d5694a942e113dfca6ef076d3904bb4 (patch) | |
tree | a1fd86d6981a6b301a6a4cdb2db4877df9a49bb3 /lib/netdev-notifier-error-inject.c | |
parent | a14a14595dcade4bf31e50909a6958ed2566c058 (diff) |
firmware: arm_scmi: Add proper barriers to scmi virtio device
Only one single SCMI Virtio device is currently supported by this driver
and it is referenced using a static global variable which is initialized
once for all during probing and nullified at virtio device removal.
Add proper SMP barriers to protect accesses to such device reference to
ensure that the initialzation state of such device is correctly observed by
all PEs at any time.
Return -EBUSY, instead of -EINVAL, and a descriptive error message if more
than one SCMI Virtio device is ever found and probed.
Link: https://lore.kernel.org/r/[email protected]
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Sudeep Holla <[email protected]>
Signed-off-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions