Skip to content

Commit 5dac2a9

Browse files
jbuddhabgregkh
authored andcommitted
firmware: zynqmp: Add support to handle IPI CRC failure
Added new PM error code XST_PM_INVALID_CRC to handle CRC validation failure during IPI communication. Co-developed-by: Naman Trivedi Manojbhai <[email protected]> Signed-off-by: Naman Trivedi Manojbhai <[email protected]> Signed-off-by: Jay Buddhabhatti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8c016c8 commit 5dac2a9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/firmware/xilinx/zynqmp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static int zynqmp_pm_ret_code(u32 ret_status)
103103
case XST_PM_INTERNAL:
104104
case XST_PM_CONFLICT:
105105
case XST_PM_INVALID_NODE:
106+
case XST_PM_INVALID_CRC:
106107
default:
107108
return -EINVAL;
108109
}

include/linux/firmware/xlnx-zynqmp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ enum pm_ret_status {
174174
XST_PM_SUCCESS = 0,
175175
XST_PM_INVALID_VERSION = 4,
176176
XST_PM_NO_FEATURE = 19,
177+
XST_PM_INVALID_CRC = 301,
177178
XST_PM_INTERNAL = 2000,
178179
XST_PM_CONFLICT = 2001,
179180
XST_PM_NO_ACCESS = 2002,

0 commit comments

Comments
 (0)