]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
firmware: arm_scpi: allow firmware with get_capabilities not implemented
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 19 Oct 2016 12:51:09 +0000 (14:51 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 1 Nov 2016 20:14:59 +0000 (14:14 -0600)
On Amlogic SCPI legacy implementation, the GET_CAPABILITIES command is
not supported, failover by using 0.0.0 version.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[sudeep.holla@arm.com: changed the subject]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c

index 2982bc7b8c3388567576b09797fc9fa795675cb4..902233642bd30a320ba468076440651d9e6894da 100644 (file)
@@ -783,6 +783,10 @@ static int scpi_init_versions(struct scpi_drvinfo *info)
                info->protocol_version = le32_to_cpu(caps.protocol_version);
                info->firmware_version = le32_to_cpu(caps.platform_version);
        }
                info->protocol_version = le32_to_cpu(caps.protocol_version);
                info->firmware_version = le32_to_cpu(caps.platform_version);
        }
+       /* Ignore error if not implemented */
+       if (scpi_info->is_legacy && ret == -EOPNOTSUPP)
+               return 0;
+
        return ret;
 }
 
        return ret;
 }