summaryrefslogtreecommitdiff
path: root/tools/virtio
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-09-02 16:43:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-01 12:47:10 +0100
commit2e9e042576a543eb296bc2f07c1889ac57324a75 (patch)
tree6db8446ba971a175f926639a93ab8e34036e34c6 /tools/virtio
parent0aa1346563336cd9123544b53a7fecf4fe7110b1 (diff)
phy: marvell: comphy: Convert internal SMCC firmware return codes to errno
commit ea17a0f153af2cd890e4ce517130dcccaa428c13 upstream. Driver ->power_on and ->power_off callbacks leaks internal SMCC firmware return codes to phy caller. This patch converts SMCC error codes to standard linux errno codes. Include file linux/arm-smccc.h already provides defines for SMCC error codes, so use them instead of custom driver defines. Note that return value is signed 32bit, but stored in unsigned long type with zero padding. Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com> Link: https://lore.kernel.org/r/20200902144344.16684-2-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/virtio')
0 files changed, 0 insertions, 0 deletions