Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: hbm: clean the feature flags on link reset

The list of supported functions can be altered upon link reset,
clean the flags to allow correct selections of supported
features.

Cc: <stable@vger.kernel.org> v4.19+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Usyskin and committed by
Greg Kroah-Hartman
37fd0b62 fcf9d0b7

+7
+7
drivers/misc/mei/hbm.c
··· 1029 1029 dev->version.minor_version >= HBM_MINOR_VERSION_PGI) 1030 1030 dev->hbm_f_pg_supported = 1; 1031 1031 1032 + dev->hbm_f_dc_supported = 0; 1032 1033 if (dev->version.major_version >= HBM_MAJOR_VERSION_DC) 1033 1034 dev->hbm_f_dc_supported = 1; 1034 1035 1036 + dev->hbm_f_ie_supported = 0; 1035 1037 if (dev->version.major_version >= HBM_MAJOR_VERSION_IE) 1036 1038 dev->hbm_f_ie_supported = 1; 1037 1039 1038 1040 /* disconnect on connect timeout instead of link reset */ 1041 + dev->hbm_f_dot_supported = 0; 1039 1042 if (dev->version.major_version >= HBM_MAJOR_VERSION_DOT) 1040 1043 dev->hbm_f_dot_supported = 1; 1041 1044 1042 1045 /* Notification Event Support */ 1046 + dev->hbm_f_ev_supported = 0; 1043 1047 if (dev->version.major_version >= HBM_MAJOR_VERSION_EV) 1044 1048 dev->hbm_f_ev_supported = 1; 1045 1049 1046 1050 /* Fixed Address Client Support */ 1051 + dev->hbm_f_fa_supported = 0; 1047 1052 if (dev->version.major_version >= HBM_MAJOR_VERSION_FA) 1048 1053 dev->hbm_f_fa_supported = 1; 1049 1054 1050 1055 /* OS ver message Support */ 1056 + dev->hbm_f_os_supported = 0; 1051 1057 if (dev->version.major_version >= HBM_MAJOR_VERSION_OS) 1052 1058 dev->hbm_f_os_supported = 1; 1053 1059 1054 1060 /* DMA Ring Support */ 1061 + dev->hbm_f_dr_supported = 0; 1055 1062 if (dev->version.major_version > HBM_MAJOR_VERSION_DR || 1056 1063 (dev->version.major_version == HBM_MAJOR_VERSION_DR && 1057 1064 dev->version.minor_version >= HBM_MINOR_VERSION_DR))