drivers: soc: xilinx: Fix error message on SGI registration failure
authorJay Buddhabhatti <jay.buddhabhatti@amd.com>
Wed, 29 Nov 2023 11:27:12 +0000 (03:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2023 02:18:29 +0000 (11:18 +0900)
commit8c016c807a90535432543204dbbb032e4a709009
tree3a61528ae78f05890f409127a57cb687e76b5fb2
parenta9d061840010df64aad2a3e5b308e663d6a36e2f
drivers: soc: xilinx: Fix error message on SGI registration failure

Failure to register SGI for firmware event notification is non-fatal error
when feature is not supported by other modules such as Xen and TF-A. Add
_info level log message for such special case.

Also add XST_PM_INVALID_VERSION error code and map it to -EOPNOSUPP Linux
kernel error code. If feature is not supported or EEMI API version is
mismatch, firmware can return XST_PM_INVALID_VERSION = 4 or
XST_PM_NO_FEATURE = 19 error code.

Co-developed-by: Tanmay Shah <tanmay.shah@amd.com>
Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Link: https://lore.kernel.org/r/20231129112713.22718-5-jay.buddhabhatti@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/xilinx/zynqmp.c
drivers/soc/xilinx/xlnx_event_manager.c
include/linux/firmware/xlnx-zynqmp.h