diff mbox

[PATCHv2,2/3] iwlwifi: use DRIVER_DATA_REQ_NO_CACHE for driver_data

Message ID 1495262819-981-3-git-send-email-yi1.li@linux.intel.com (mailing list archive)
State New
Headers show

Commit Message

Li, Yi May 20, 2017, 6:46 a.m. UTC
From: Yi Li <yi1.li@linux.intel.com>

Set DRIVER_DATA_REQ_NO_CACHE flag to disable driver_data driver caching
mechanism, iwlwifi has its own firmware cache management.

Signed-off-by: Yi Li <yi1.li@linux.intel.com>
---
 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
index 028854d3..db4d6fc 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
@@ -229,6 +229,8 @@  static int iwl_request_firmware(struct iwl_drv *drv)
 	const struct driver_data_req_params req_params = {
 		DRIVER_DATA_API_CB(iwl_req_fw_callback, drv),
 		DRIVER_DATA_API(cfg->ucode_api_min, cfg->ucode_api_max, ".ucode"),
+		.reqs = DRIVER_DATA_REQ_NO_CACHE |
+			DRIVER_DATA_REQ_USE_API_VERSIONING,
 	};
 
 	return driver_data_request_async(name_pre,