rptun: enable rx interrupts for virtq

use wait_tx_buffer method need enable rx interrupts

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-03-01 19:11:40 +08:00 committed by Petro Karashchenko
parent 1c7e59eafa
commit a19aef4d36
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}