summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/init.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2023-07-16 10:10:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-30 14:17:27 +0200
commit6549b2b7addf4d1d1557382b565a0dcd031243a8 (patch)
treeb328f18ef612e881610c8792a3594f542ace4bde /drivers/misc/mei/init.c
parentmei: bus: enable asynchronous suspend. (diff)
downloadlinux-6549b2b7addf4d1d1557382b565a0dcd031243a8.tar.xz
linux-6549b2b7addf4d1d1557382b565a0dcd031243a8.zip
mei: obtain firmware version only on gsc.
Modern GSC firmwares have both static and dynamic MKHI clients. Avoid expensive dynamic client call for firmware version retrieval, in case the firmware version is already retrieved from the fix address client in bus_fixup(). Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20230716081043.3092690-3-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r--drivers/misc/mei/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index 5cc75a3314a6..c35e005b26be 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -142,6 +142,9 @@ int mei_reset(struct mei_device *dev)
mei_hbm_reset(dev);
+ /* clean stale FW version */
+ dev->fw_ver_received = 0;
+
memset(dev->rd_msg_hdr, 0, sizeof(dev->rd_msg_hdr));
if (ret) {