]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
soc: qcom: smd: Simplify multi channel handling
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Aug 2016 00:39:19 +0000 (17:39 -0700)
committerAndy Gross <andy.gross@linaro.org>
Tue, 23 Aug 2016 20:46:32 +0000 (15:46 -0500)
commit0a0c08cae01b33b29abd24608d3800986546f0af
treec047938279e11f342f97c99cac844216284ce682
parent3a1281848830fcb3202cfd7ffe62d19641471d05
soc: qcom: smd: Simplify multi channel handling

Multi-channel clients split between several drivers need a way to close
individual channels, as these drivers might be removed individually.
With this in place the responsibility of closing additionally opened
channels to the client as well only concerning smd about the primary
channel.

With this approach we will only trigger removal of SMD devices based on
the state of the primary channel, however we get in sync with how rpmsg
works.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smd.c
include/linux/soc/qcom/smd.h