]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.19/mei-hbm-clean-the-feature-flags-on-link-reset.patch
7123cf8a77da2ab9198695e02cbbe3e099c6181f
[thirdparty/kernel/stable-queue.git] / queue-4.19 / mei-hbm-clean-the-feature-flags-on-link-reset.patch
1 From 37fd0b623023484ef6df79ed46f21f06ecc611ff Mon Sep 17 00:00:00 2001
2 From: Alexander Usyskin <alexander.usyskin@intel.com>
3 Date: Wed, 20 Feb 2019 16:55:37 +0200
4 Subject: mei: hbm: clean the feature flags on link reset
5
6 From: Alexander Usyskin <alexander.usyskin@intel.com>
7
8 commit 37fd0b623023484ef6df79ed46f21f06ecc611ff upstream.
9
10 The list of supported functions can be altered upon link reset,
11 clean the flags to allow correct selections of supported
12 features.
13
14 Cc: <stable@vger.kernel.org> v4.19+
15 Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
16 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 drivers/misc/mei/hbm.c | 7 +++++++
21 1 file changed, 7 insertions(+)
22
23 --- a/drivers/misc/mei/hbm.c
24 +++ b/drivers/misc/mei/hbm.c
25 @@ -986,29 +986,36 @@ static void mei_hbm_config_features(stru
26 dev->version.minor_version >= HBM_MINOR_VERSION_PGI)
27 dev->hbm_f_pg_supported = 1;
28
29 + dev->hbm_f_dc_supported = 0;
30 if (dev->version.major_version >= HBM_MAJOR_VERSION_DC)
31 dev->hbm_f_dc_supported = 1;
32
33 + dev->hbm_f_ie_supported = 0;
34 if (dev->version.major_version >= HBM_MAJOR_VERSION_IE)
35 dev->hbm_f_ie_supported = 1;
36
37 /* disconnect on connect timeout instead of link reset */
38 + dev->hbm_f_dot_supported = 0;
39 if (dev->version.major_version >= HBM_MAJOR_VERSION_DOT)
40 dev->hbm_f_dot_supported = 1;
41
42 /* Notification Event Support */
43 + dev->hbm_f_ev_supported = 0;
44 if (dev->version.major_version >= HBM_MAJOR_VERSION_EV)
45 dev->hbm_f_ev_supported = 1;
46
47 /* Fixed Address Client Support */
48 + dev->hbm_f_fa_supported = 0;
49 if (dev->version.major_version >= HBM_MAJOR_VERSION_FA)
50 dev->hbm_f_fa_supported = 1;
51
52 /* OS ver message Support */
53 + dev->hbm_f_os_supported = 0;
54 if (dev->version.major_version >= HBM_MAJOR_VERSION_OS)
55 dev->hbm_f_os_supported = 1;
56
57 /* DMA Ring Support */
58 + dev->hbm_f_dr_supported = 0;
59 if (dev->version.major_version > HBM_MAJOR_VERSION_DR ||
60 (dev->version.major_version == HBM_MAJOR_VERSION_DR &&
61 dev->version.minor_version >= HBM_MINOR_VERSION_DR))