]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Drivers: hv: utils: Fix the mapping between host version and protocol to use
authorAlex Ng <alexng@messages.microsoft.com>
Sun, 6 Nov 2016 21:14:07 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 09:01:17 +0000 (10:01 +0100)
We should intentionally declare the protocols to use for every known host
and default to using the latest protocol if the host is unknown or new.

Signed-off-by: Alex Ng <alexng@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_util.c

index bcd06306f3e894a379603a4216cadab475be6b69..e7707747f56df05208fc2a0607007206c224290e 100644 (file)
@@ -389,16 +389,19 @@ static int util_probe(struct hv_device *dev,
                ts_srv_version = TS_VERSION_1;
                hb_srv_version = HB_VERSION_1;
                break;
-       case(VERSION_WIN10):
+       case VERSION_WIN7:
+       case VERSION_WIN8:
+       case VERSION_WIN8_1:
                util_fw_version = UTIL_FW_VERSION;
                sd_srv_version = SD_VERSION;
-               ts_srv_version = TS_VERSION;
+               ts_srv_version = TS_VERSION_3;
                hb_srv_version = HB_VERSION;
                break;
+       case VERSION_WIN10:
        default:
                util_fw_version = UTIL_FW_VERSION;
                sd_srv_version = SD_VERSION;
-               ts_srv_version = TS_VERSION_3;
+               ts_srv_version = TS_VERSION;
                hb_srv_version = HB_VERSION;
        }