[PATCH] arm64: xilinx: Print fpga error value in hex

Michal Simek monstr at monstr.eu
Thu Jun 25 10:05:48 CEST 2020


po 18. 5. 2020 v 10:59 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> From: T Karthik Reddy <t.karthik.reddy at xilinx.com>
>
> Fpga returns error value when fails, error status should be
> printed in hex format.
>
> Signed-off-by: T Karthik Reddy <t.karthik.reddy at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/fpga/versalpl.c | 2 +-
>  drivers/fpga/zynqmppl.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/fpga/versalpl.c b/drivers/fpga/versalpl.c
> index 6c69ab7802c6..028d9114f2e3 100644
> --- a/drivers/fpga/versalpl.c
> +++ b/drivers/fpga/versalpl.c
> @@ -43,7 +43,7 @@ static int versal_load(xilinx_desc *desc, const void *buf, size_t bsize,
>         ret = xilinx_pm_request(VERSAL_PM_LOAD_PDI, VERSAL_PM_PDI_TYPE, buf_lo,
>                                 buf_hi, 0, ret_payload);
>         if (ret)
> -               puts("PL FPGA LOAD fail\n");
> +               printf("PL FPGA LOAD failed with err: 0x%08x\n", ret);
>
>         return ret;
>  }
> diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c
> index 4a826e4a71ab..eca212404100 100644
> --- a/drivers/fpga/zynqmppl.c
> +++ b/drivers/fpga/zynqmppl.c
> @@ -236,7 +236,7 @@ static int zynqmp_load(xilinx_desc *desc, const void *buf, size_t bsize,
>                                         buf_hi, (u32)bsize, 0, ret_payload);
>
>         if (ret)
> -               puts("PL FPGA LOAD fail\n");
> +               printf("PL FPGA LOAD failed with err: 0x%08x\n", ret);
>
>         return ret;
>  }
> --
> 2.26.2
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list