1
0
Fork 0
alistair23-linux/drivers/phy/marvell
Pali Rohár 847c86d7f1 phy: marvell: comphy: Convert internal SMCC firmware return codes to errno
commit ea17a0f153 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>
2020-11-01 12:01:07 +01:00
..
Kconfig phy: mvebu-cp110-comphy: Add SMC call support 2019-08-27 11:37:09 +05:30
Makefile USB/PHY patches for 5.1-rc1 2019-03-06 16:48:27 -08:00
phy-armada38x-comphy.c phy: armada-38x: fix NETA lockup when repeatedly switching speeds 2020-08-19 08:16:14 +02:00
phy-armada375-usb2.c phy: armada375-usb2: switch to SPDX license identifier 2019-02-07 11:10:45 +05:30
phy-berlin-sata.c phy: fix build breakage: add PHY_MODE_SATA 2019-01-16 18:00:54 +05:30
phy-berlin-usb.c phy: berlin: switch to SPDX license identifier 2018-07-10 13:45:12 +05:30
phy-mvebu-a3700-comphy.c phy: marvell: comphy: Convert internal SMCC firmware return codes to errno 2020-11-01 12:01:07 +01:00
phy-mvebu-a3700-utmi.c phy: fix platform_no_drv_owner.cocci warnings 2019-04-17 12:06:02 +05:30
phy-mvebu-cp110-comphy.c phy: marvell: comphy: Convert internal SMCC firmware return codes to errno 2020-11-01 12:01:07 +01:00
phy-mvebu-sata.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
phy-pxa-28nm-hsic.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-pxa-28nm-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-pxa-usb.c phy: phy-pxa-usb: add a new driver 2018-10-18 19:44:39 +02:00