Commit 31441331 authored by Judith Mendez's avatar Judith Mendez Committed by Daniel Lezcano
Browse files

clocksource/drivers/timer-ti-dm: Don't fail probe if int not found



Some timers may not have an interrupt routed to the A53 GIC, but the
timer PWM functionality can still be used by Linux Kernel. Therefore,
do not fail probe if interrupt is not found and ti,timer-pwm exists.

Signed-off-by: default avatarJudith Mendez <jm@ti.com>
Link: https://lore.kernel.org/r/20241011175203.1040568-1-jm@ti.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 0309f714
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1104,8 +1104,12 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
		return  -ENOMEM;

	timer->irq = platform_get_irq(pdev, 0);
	if (timer->irq < 0)
	if (timer->irq < 0) {
		if (of_property_read_bool(dev->of_node, "ti,timer-pwm"))
			dev_info(dev, "Did not find timer interrupt, timer usable in PWM mode only\n");
		else
			return timer->irq;
	}

	timer->io_base = devm_platform_ioremap_resource(pdev, 0);
	if (IS_ERR(timer->io_base))