Commit b70d6285 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: sbi: Allow relaxed MMIO writes in device ipi_clear() callback



Currently, there are no barriers before or after the ipi_clear()
device callback which forces ipi_clear() device callback to always
use non-relaxed MMIO writes.

Instead of above, we use wmb() in after the ipi_clear() device
callback which pairs with the wmb() done before the ipi_send()
device callback. This also allows device ipi_clear() callback
to use relaxed MMIO writes.

Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
Reported-by: default avatarBo Gan <ganboing@gmail.com>
parent f520256d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment