]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: ti_sci: Allow for device shared and exclusive requests
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 27 Aug 2019 03:00:40 +0000 (20:00 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 27 Aug 2019 03:00:40 +0000 (20:00 -0700)
commitdf2e328126b1b3f71ff07477912d92c20c47148a
treee89d546f507b1b65a08ea45c1a93ba844807255c
parent609488bc979f99f805f34e9a32c1e3b71179d10b
firmware: ti_sci: Allow for device shared and exclusive requests

Sysfw provides an option for requesting exclusive access for a
device using the flags MSG_FLAG_DEVICE_EXCLUSIVE. If this flag is
not used, the device is meant to be shared across hosts. Once a device
is requested from a host with this flag set, any request to this
device from a different host will be nacked by sysfw. Current tisci
driver enables this flag for every device requests. But this may not
be true for all the devices. So provide a separate commands in driver
for exclusive and shared device requests.

Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/firmware/ti_sci.c
include/linux/soc/ti/ti_sci_protocol.h