RE: [PATCH net v4] net: fec: Propagate PTP initialization errors

From: Wei Fang

Date: Mon Sep 07 2026 - 01:42:26 EST


> @@ -5394,12 +5397,17 @@ fec_probe(struct platform_device *pdev)
> for (i = 0; i < irq_cnt; i++) {
> snprintf(irq_name, sizeof(irq_name), "int%d", i);
> irq = platform_get_irq_byname_optional(pdev, irq_name);
> - if (irq < 0)
> - irq = platform_get_irq(pdev, i);
> - if (irq < 0) {
> + if (irq < 0 && irq != -ENXIO) {
> ret = irq;
> goto failed_irq;
> }
> + if (irq == -ENXIO) {
> + irq = platform_get_irq(pdev, i);
> + if (irq < 0) {
> + ret = irq;
> + goto failed_irq;
> + }
> + }

This part is unrelated to PTP and inconsistent with the subject, it should be
added to a separate patch.