Skip to content

Commit

Permalink
fpga: zynqmp: show an error message when FPGA programming fails
Browse files Browse the repository at this point in the history
When FPGA programming fails, it does so silently, unless debugging
code is enabled. This makes it hard to detect problems in production
environments.

Print the error message unconditionally so the error doesn't go
unnoticed.

Signed-off-by: Luca Ceresoli <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
lucaceresoli authored and Michal Simek committed Jan 28, 2019
1 parent d686aab commit fbe72e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/fpga/zynqmppl.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static int zynqmp_load(xilinx_desc *desc, const void *buf, size_t bsize,
(u32)bsize, 0, ret_payload);

if (ret)
debug("PL FPGA LOAD fail\n");
puts("PL FPGA LOAD fail\n");

return ret;
}
Expand Down

0 comments on commit fbe72e2

Please sign in to comment.