Web lists-archives.com

[PATCHv3 2/3] iwlwifi: use DRIVER_DATA_REQ_NO_CACHE for driver_data




From: Yi Li <yi1.li@xxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxx>
---
 drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 ++
 1 file changed, 2 insertions(+)

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,
-- 
2.7.4