diff options
author | Pali Rohár <pali@kernel.org> | 2020-09-02 16:43:43 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2020-10-02 14:29:41 +0100 |
commit | ea17a0f153af2cd890e4ce517130dcccaa428c13 (patch) | |
tree | a6659f47749d36c8dfc020ef18f6fce4930678b7 /drivers/pci | |
parent | d0c6a3475b033960e85ae2bf176b14cab0a627d2 (diff) | |
download | linux-ea17a0f153af2cd890e4ce517130dcccaa428c13.tar.bz2 |
phy: marvell: comphy: Convert internal SMCC firmware return codes to errno
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>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions