]> 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)
committerArnd Bergmann <arnd@arndb.de>
Wed, 4 Sep 2019 18:44:33 +0000 (20:44 +0200)
commit45b659ee75d7bcff7d0206967d150d879f1d3eb9
tree31c22d96ba55b2e858e240b67409c4c4a79b319f
parent3b1261fb72c7dc6a9e4604ef1ea01d6bb67cc3d1
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>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/ti_sci.c
include/linux/soc/ti/ti_sci_protocol.h