From a19aef4d361a66d7c86b49c67aa239a056d853e2 Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 1 Mar 2022 19:11:40 +0800 Subject: [PATCH] rptun: enable rx interrupts for virtq use wait_tx_buffer method need enable rx interrupts Signed-off-by: ligd --- drivers/rptun/rptun.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index f73d6a216c..624c92794f 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -277,14 +277,8 @@ static inline void rptun_pm_action(FAR struct rptun_priv_s *priv, leave_critical_section(flags); } -static inline void rptun_enable_rx_kick(FAR struct rptun_priv_s *priv) -{ - virtqueue_enable_cb(priv->rvdev.svq); -} - #else # define rptun_pm_action(priv, stay) -# define rptun_enable_rx_kick(priv) #endif static void rptun_worker(FAR void *arg) @@ -790,7 +784,7 @@ static int rptun_dev_start(FAR struct remoteproc *rproc) rptun_unlock(); - rptun_enable_rx_kick(priv); + virtqueue_enable_cb(priv->rvdev.svq); return 0; }