rpmsg: glink: smem: Wrap driver context
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 13 Feb 2023 15:52:11 +0000 (07:52 -0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Feb 2023 16:19:38 +0000 (08:19 -0800)
commitab9fdd41d970c38ddc0fd59e5f8f37e8d966d454
treedad0197a5e65f5d2394b0dd170be1a4a0d746de3
parent8278fd3144779d883779d1f5bcbf49da36587fd1
rpmsg: glink: smem: Wrap driver context

The Glink SMEM driver allocates a struct device and hangs two
devres-allocated pipe objects thereon. To facilitate the move of
interrupt and mailbox handling to the driver, introduce a wrapper object
capturing the device, glink reference and remote processor id.

The type of the remoteproc reference is updated, as these are
specifically targeting the SMEM implementation.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230213155215.1237059-3-quic_bjorande@quicinc.com
drivers/remoteproc/qcom_common.h
drivers/rpmsg/qcom_glink_smem.c
include/linux/rpmsg/qcom_glink.h