mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
wifi: ath: Use the unified QMI service ID instead of defining it locally
Instead of defining a local macro with a custom name for the QMI service identifier, use the one provided in qmi.h and remove the locally defined macro. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com> Acked-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com> Link: https://patch.msgid.link/20260316171419.2619620-3-daniel.lezcano@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
parent
7ce2f118a2
commit
0e39eea576
|
|
@ -1112,7 +1112,7 @@ int ath10k_qmi_init(struct ath10k *ar, u32 msa_size)
|
|||
spin_lock_init(&qmi->event_lock);
|
||||
INIT_WORK(&qmi->event_work, ath10k_qmi_driver_event_work);
|
||||
|
||||
ret = qmi_add_lookup(&qmi->qmi_hdl, WLFW_SERVICE_ID_V01,
|
||||
ret = qmi_add_lookup(&qmi->qmi_hdl, QMI_SERVICE_ID_WLFW,
|
||||
WLFW_SERVICE_VERS_V01, 0);
|
||||
if (ret)
|
||||
goto err_qmi_lookup;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
#ifndef WCN3990_QMI_SVC_V01_H
|
||||
#define WCN3990_QMI_SVC_V01_H
|
||||
|
||||
#define WLFW_SERVICE_ID_V01 0x45
|
||||
#define WLFW_SERVICE_VERS_V01 0x01
|
||||
|
||||
#define QMI_WLFW_BDF_DOWNLOAD_REQ_V01 0x0025
|
||||
|
|
|
|||
|
|
@ -3337,7 +3337,7 @@ int ath11k_qmi_init_service(struct ath11k_base *ab)
|
|||
spin_lock_init(&ab->qmi.event_lock);
|
||||
INIT_WORK(&ab->qmi.event_work, ath11k_qmi_driver_event_work);
|
||||
|
||||
ret = qmi_add_lookup(&ab->qmi.handle, ATH11K_QMI_WLFW_SERVICE_ID_V01,
|
||||
ret = qmi_add_lookup(&ab->qmi.handle, QMI_SERVICE_ID_WLFW,
|
||||
ATH11K_QMI_WLFW_SERVICE_VERS_V01,
|
||||
ab->qmi.service_ins_id);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
#define ATH11K_QMI_MAX_BDF_FILE_NAME_SIZE 64
|
||||
#define ATH11K_QMI_CALDB_ADDRESS 0x4BA00000
|
||||
#define ATH11K_QMI_WLANFW_MAX_BUILD_ID_LEN_V01 128
|
||||
#define ATH11K_QMI_WLFW_SERVICE_ID_V01 0x45
|
||||
#define ATH11K_QMI_WLFW_SERVICE_VERS_V01 0x01
|
||||
#define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01 0x02
|
||||
#define ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_QCA6390 0x01
|
||||
|
|
|
|||
|
|
@ -4061,7 +4061,7 @@ int ath12k_qmi_init_service(struct ath12k_base *ab)
|
|||
spin_lock_init(&ab->qmi.event_lock);
|
||||
INIT_WORK(&ab->qmi.event_work, ath12k_qmi_driver_event_work);
|
||||
|
||||
ret = qmi_add_lookup(&ab->qmi.handle, ATH12K_QMI_WLFW_SERVICE_ID_V01,
|
||||
ret = qmi_add_lookup(&ab->qmi.handle, QMI_SERVICE_ID_WLFW,
|
||||
ATH12K_QMI_WLFW_SERVICE_VERS_V01,
|
||||
ab->qmi.service_ins_id);
|
||||
if (ret < 0) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
#define ATH12K_QMI_MAX_BDF_FILE_NAME_SIZE 64
|
||||
#define ATH12K_QMI_CALDB_ADDRESS 0x4BA00000
|
||||
#define ATH12K_QMI_WLANFW_MAX_BUILD_ID_LEN_V01 128
|
||||
#define ATH12K_QMI_WLFW_SERVICE_ID_V01 0x45
|
||||
#define ATH12K_QMI_WLFW_SERVICE_VERS_V01 0x01
|
||||
#define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01 0x02
|
||||
#define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_WCN7850 0x1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user