Skip to content

Commit 2d3008f

Browse files
committed
Merge tag 'fpga-fixes-for-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga into char-misc-linus
Moritz writes: FPGA Manager fixes for 5.7-rc1 Here are two (late) fixes for 5.7-rc1 merge window. Xu's change addresses an issue with a wrong return value. Shubhrajyoti's change makes the Zynq FPGA driver return -EPROBE_DEFER on All patches have been reviewed on the mailing list, and have been in the last few linux-next releases (as part of my for-next branch) without issues. Signed-off-by: Moritz Fischer <[email protected]> * tag 'fpga-fixes-for-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga: fpga: dfl: pci: fix return value of cci_pci_sriov_configure fpga: zynq: Remove clk_get error message for probe defer
2 parents fec874a + 3c2760b commit 2d3008f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

drivers/fpga/dfl-pci.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,13 @@ static int cci_pci_sriov_configure(struct pci_dev *pcidev, int num_vfs)
248248
return ret;
249249

250250
ret = pci_enable_sriov(pcidev, num_vfs);
251-
if (ret)
251+
if (ret) {
252252
dfl_fpga_cdev_config_ports_pf(cdev);
253+
return ret;
254+
}
253255
}
254256

255-
return ret;
257+
return num_vfs;
256258
}
257259

258260
static void cci_pci_remove(struct pci_dev *pcidev)

drivers/fpga/zynq-fpga.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ static int zynq_fpga_probe(struct platform_device *pdev)
583583

584584
priv->clk = devm_clk_get(dev, "ref_clk");
585585
if (IS_ERR(priv->clk)) {
586-
dev_err(dev, "input clock not found\n");
586+
if (PTR_ERR(priv->clk) != -EPROBE_DEFER)
587+
dev_err(dev, "input clock not found\n");
587588
return PTR_ERR(priv->clk);
588589
}
589590

0 commit comments

Comments
 (0)