Wind River Support Network

HomeDefectsLIN1018-5250
Fixed

LIN1018-5250 : Xilinx Zynq GPIO axi driver not working in WRL LTS18

Created: Nov 15, 2019    Updated: Dec 3, 2019
Resolved Date: Nov 29, 2019
Found In Version: 10.18.44.10
Fix Version: 10.18.44.13
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: BSP

Description

This issue was found while the customer was migrating his Xilinx Zynq 7000 based project.

The customer uses the GPIO driver from the PL (i.e. " Xilinx gpio driver for xps/axi_gpio IP")
The corresponding driver source in the linux kernel is drivers/gpio/gpio-xilinx.c

This driver which worked in WRL9 has now a bug into the probe routine in LTS18 and always returns an error.

The following test is wrong, the driver returns always "input clock not found":

if (IS_ERR(chip->clk)) {
if ((PTR_ERR(chip->clk) != -ENOENT) ||
(PTR_ERR(chip->clk) != -EPROBE_DEFER)) {
dev_err(&pdev->dev, "Input clock not found\n");
return PTR_ERR(chip->clk);
}
Live chat
Online