OSDN Git Service

mailbox: Allow multiple controllers per device
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 28 Nov 2018 09:54:11 +0000 (10:54 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 22 Dec 2018 04:31:26 +0000 (22:31 -0600)
commit8ed82e23875e6014d9aa8e03bf4301b27d614050
treeae6158c64bafc3dd1ec8b0ade1dfbb6ca848b4d6
parenta8803d7421cc2be2ac12a8155e5d824f04259eff
mailbox: Allow multiple controllers per device

Look through the whole controller list when mapping device tree
phandles to controllers instead of stopping at the first one.

Each controller is intended to only contain one kind of mailbox,
but some devices (like Tegra HSP) implement multiple kinds and use
the same device tree node for all of them. As such, we need to allow
multiple mbox_controllers per device tree node.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c