瀏覽代碼

qcacmn: Use QAL API for RCU lock

Use QAL API for RCU lock to avoid GPL symbol usage in host driver

Change-Id: I0d71cc60072b6e3e3e7b067a522f2bdb38c8f457
Himanshu Batra 3 年之前
父節點
當前提交
003a476648
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      ipa/core/src/wlan_ipa_core.c

+ 4 - 3
ipa/core/src/wlan_ipa_core.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -34,6 +34,7 @@
 #include <cdp_txrx_flow_ctrl_v2.h>
 #include <cdp_txrx_peer_ops.h>
 #endif
+#include <qal_vbus_dev.h>
 
 #define IPA_SPS_DESC_SIZE 8
 static struct wlan_ipa_priv *gp_ipa;
@@ -746,7 +747,7 @@ static bool is_rx_dest_bridge_dev(struct wlan_ipa_iface_context *iface_ctx,
 	if (!netif_is_bridge_port(ndev))
 		return false;
 
-	rcu_read_lock();
+	qal_vbus_rcu_read_lock();
 
 	master_ndev = netdev_master_upper_dev_get_rcu(ndev);
 	if (!master_ndev) {
@@ -763,7 +764,7 @@ static bool is_rx_dest_bridge_dev(struct wlan_ipa_iface_context *iface_ctx,
 	ret = true;
 
 out:
-	rcu_read_unlock();
+	qal_vbus_rcu_read_unlock();
 	return ret;
 }
 #else /* !MDM_PLATFORM */