libwd/0162-drv-qm-remove-useless-parameter-sq_head_index.patch
Yang Shen ec2f993b84 libwd: backport for uadk from 2.3.31 to 2.3.36
Update some patch for uadk from mainline.
To get more information, please visit the homepage:
https://github.comp/Linaro/uadk

Signed-off-by: Yang Shen <shenyang39@huawei.com>
2022-07-28 15:32:23 +08:00

42 lines
1.3 KiB
Diff

From 913b0b03484eace681dd53a2fdf6a20e594f07d8 Mon Sep 17 00:00:00 2001
From: Weili Qian <qianweili@huawei.com>
Date: Sat, 23 Jul 2022 10:49:03 +0800
Subject: [PATCH 177/183] drv/qm: remove useless parameter 'sq_head_index'
The 'sq_head_index' is operated by the accelerator hardware, and
is useless to the driver. Therefore, remove 'sq_head_index'.
Signed-off-by: Weili Qian <qianweili@huawei.com>
---
drv/hisi_qm_udrv.c | 1 -
include/hisi_qm_udrv.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drv/hisi_qm_udrv.c b/drv/hisi_qm_udrv.c
index 6459ffa..93f2eb7 100644
--- a/drv/hisi_qm_udrv.c
+++ b/drv/hisi_qm_udrv.c
@@ -511,7 +511,6 @@ static int hisi_qm_recv_single(struct hisi_qm_queue_info *q_info, void *resp)
/* only support one thread poll one queue, so no need protect */
q_info->cq_head_index = i;
- q_info->sq_head_index = i;
__atomic_sub_fetch(&q_info->used_num, 1, __ATOMIC_RELAXED);
pthread_spin_unlock(&q_info->rv_lock);
diff --git a/include/hisi_qm_udrv.h b/include/hisi_qm_udrv.h
index 92333ed..22dedf3 100644
--- a/include/hisi_qm_udrv.h
+++ b/include/hisi_qm_udrv.h
@@ -67,7 +67,6 @@ struct hisi_qm_queue_info {
void *ds_rx_base;
__u8 qp_mode;
__u16 sq_tail_index;
- __u16 sq_head_index;
__u16 cq_head_index;
__u16 sqn;
__u16 qc_type;
--
2.27.0