mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
soc: qcom: smd: Transition client drivers from smd to rpmsg
By moving these client drivers to use RPMSG instead of the direct SMD API we can reuse them ontop of the newly added GLINK wire-protocol support found in the 820 and 835 Qualcomm platforms. As the new (RPMSG-based) and old SMD implementations are mutually exclusive we have to change all client drivers in one commit, to make sure we have a working system before and after this transition. Acked-by: Andy Gross <andy.gross@linaro.org> Acked-by: Kalle Valo <kvalo@codeaurora.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
def499c929
commit
5052de8def
@@ -1,16 +1,19 @@
|
||||
#ifndef __WCNSS_CTRL_H__
|
||||
#define __WCNSS_CTRL_H__
|
||||
|
||||
#include <linux/soc/qcom/smd.h>
|
||||
#include <linux/rpmsg.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_QCOM_WCNSS_CTRL)
|
||||
|
||||
struct qcom_smd_channel *qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb);
|
||||
struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss, const char *name,
|
||||
rpmsg_rx_cb_t cb, void *priv);
|
||||
|
||||
#else
|
||||
|
||||
static inline struct qcom_smd_channel*
|
||||
qcom_wcnss_open_channel(void *wcnss, const char *name, qcom_smd_cb_t cb)
|
||||
static struct rpmsg_endpoint *qcom_wcnss_open_channel(void *wcnss,
|
||||
const char *name,
|
||||
rpmsg_rx_cb_t cb,
|
||||
void *priv)
|
||||
{
|
||||
WARN_ON(1);
|
||||
return ERR_PTR(-ENXIO);
|
||||
|
||||
Reference in New Issue
Block a user