]> git.dujemihanovic.xyz Git - u-boot.git/commit
timer: mtk: skip setting parent with dummy fixed-clock
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 Jul 2024 16:13:02 +0000 (18:13 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2024 13:40:30 +0000 (07:40 -0600)
commit0f02269b76bc25a7c9332ae8630ba407cb62f9ec
tree029ca1e833d6691edc3e7e46bae080905b07f523
parent0c7c9494d61bd6c2284a57e29ffd3729e5c9d8d3
timer: mtk: skip setting parent with dummy fixed-clock

Skip setting parent with dummy fixed-clock. Upstream linux might declare
an additional clock for the mtk timer and that additional clock might
also be a fixed-clock defined in DT. Setting parent of a dummy fixed-clock
resulta in error hence mtk timer fails to probe.

Skip setting parent to permit correct probe of the mtk timer.

Fixes: d3c3606c5cc6 ("timer: MediaTek: add timer driver for MediaTek SoCs")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/timer/mtk_timer.c