Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbdFPXEy (ORCPT ); Fri, 16 Jun 2017 19:04:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:64578 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbdFPXE1 (ORCPT ); Fri, 16 Jun 2017 19:04:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,348,1493708400"; d="scan'208";a="1161474087" From: yi1.li@linux.intel.com To: mcgrof@kernel.org Cc: gregkh@linuxfoundation.org, atull@kernel.org, wagi@monom.org, dwmw2@infradead.org, rafal@milecki.pl, arend.vanspriel@broadcom.com, rjw@rjwysocki.net, moritz.fischer@ettus.com, pmladek@suse.com, johannes.berg@intel.com, emmanuel.grumbach@intel.com, luciano.coelho@intel.com, kvalo@codeaurora.org, luto@kernel.org, takahiro.akashi@linaro.org, dhowells@redhat.com, pjones@redhat.com, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, Yi Li Subject: [PATCHv3 2/3] iwlwifi: use DRIVER_DATA_REQ_NO_CACHE for driver_data Date: Fri, 16 Jun 2017 17:58:30 -0500 Message-Id: <1497653911-11944-3-git-send-email-yi1.li@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497653911-11944-1-git-send-email-yi1.li@linux.intel.com> References: <1497653911-11944-1-git-send-email-yi1.li@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 929 Lines: 25 From: Yi Li 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 --- 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