IB/hfi1: Allow meta version 4 for platform configuration
authorJakub Byczkowski <[email protected]>
Mon, 9 Oct 2017 19:37:56 +0000 (12:37 -0700)
committerDoug Ledford <[email protected]>
Wed, 18 Oct 2017 14:12:59 +0000 (10:12 -0400)
Parsing of platform configuration format 4 will fail on meta
version check. Allow meta version 4 during parsing.

Reviewed-by: Jan Sokolowski <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Jakub Byczkowski <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/hfi1/firmware.c

index 5aea8f47e670a18be4f2ff29b423c28a74763e67..001698b744ee08a1003b9eecad5c3d5880234110 100644 (file)
@@ -1733,7 +1733,7 @@ static int check_meta_version(struct hfi1_devdata *dd, u32 *system_table)
        ver_start /= 8;
        meta_ver = *((u8 *)system_table + ver_start) & ((1 << ver_len) - 1);
 
-       if (meta_ver < 5) {
+       if (meta_ver < 4) {
                dd_dev_info(
                        dd, "%s:Please update platform config\n", __func__);
                return -EINVAL;