]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: arm_scmi: Skip scmi mbox channel setup for addtional devices
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 6 Nov 2019 11:32:05 +0000 (11:32 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 24 Dec 2019 11:35:49 +0000 (11:35 +0000)
commit11040889afe3c0b084de0de1782534d529493e9b
tree4b27cd199ccbffee88dd40115b1c3f43c7e5e4d5
parentee7a9c9f67c59008b330deff2762bd8cf1407eec
firmware: arm_scmi: Skip scmi mbox channel setup for addtional devices

Now that the scmi bus supports adding multiple devices per protocol,
and since scmi_create_protocol_device calls scmi_mbox_chan_setup,
we must avoid allocating and initialising the mbox channel if it is
already initialised.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c