瀏覽代碼

cnss2: Support compile flag CONFIG_CNSS_REQ_FW_DIRECT

Support CONFIG_CNSS_REQ_FW_DIRECT compile flag passing
from external to use request_firmware_direct instead of
firmware_request_nowarn to avoid regdb.bin search failure
with qcn7605 that finally cause kernel panic on the LV
platform.

Change-Id: I2431692465298c841bf63add44187c15e68a9742
CRs-Fixed: 3413712
Chaoli Zhou 2 年之前
父節點
當前提交
b4a9230200
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Kbuild

+ 4 - 0
Kbuild

@@ -36,6 +36,10 @@ ifeq ($(CONFIG_CNSS2_CONDITIONAL_POWEROFF),y)
 KBUILD_CPPFLAGS += -DCONFIG_CNSS2_CONDITIONAL_POWEROFF
 endif
 
+ifeq ($(CONFIG_CNSS_REQ_FW_DIRECT),y)
+KBUILD_CPPFLAGS += -DCONFIG_CNSS_REQ_FW_DIRECT
+endif
+
 ifeq ($(CONFIG_CNSS_SUPPORT_DUAL_DEV),y)
 KBUILD_CPPFLAGS += -DCONFIG_CNSS_SUPPORT_DUAL_DEV
 endif