]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
firmware: arm_scpi: add command indirection to support legacy commands
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 5 Oct 2016 07:33:27 +0000 (09:33 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Oct 2016 08:52:14 +0000 (09:52 +0100)
commit761d0efee839cf8cf0710f61f43f77026e5a77d8
treef54409e44c14b9197c183838801f0b0f68902fd5
parent1001354ca34179f3db924eb66672442a173147dc
firmware: arm_scpi: add command indirection to support legacy commands

Since the legacy SCPI and the SCPI v1.0 differ in the command values,
it's better to create some sort of command indirection in the driver
to avoid repeated version check at multiple places.

This patch adds the indirection command table to allow different values
of the command across SCPI versions.

[narmstrong@baylibre.com: added cmd check in scpi_send_message]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scpi.c