Files
u-boot/drivers
David Lechner c196b0a688 clk: mediatek: fix mux clocks with mapped parent IDs
Pass the unmapped parent ID when setting parent for mux clocks.

For technical reasons, some Mediatek clock driver have a mapping between
the clock IDs used in the devicetree and ID used in the generic clock
framework.

The mtk_clk_mux_set_parent() function is comparing the passed mapped
parent ID against the unmapped IDs in the chip-specific data structures.
Before this change, we were passing the mapped parent ID. When there is
a mapping, this resulted in buggy behavior (usually just incorrectly
failing to find a match and returning an error). We need to pass the
unmapped ID of the parent clock instead for the matching to work
correctly.

Since the reverse lookup is a bit verbose, a helper function is added to
keep the code clean.

Fixes: b135891572 ("clk: mediatek: add of_xlate ops")
Signed-off-by: David Lechner <dlechner@baylibre.com>
2026-01-21 13:30:52 -06:00
..
2025-10-30 12:32:12 -06:00
2026-01-15 09:25:21 +01:00
2025-06-02 17:26:16 -06:00
2026-01-21 12:05:15 -06:00
2026-01-21 12:05:15 -06:00
2026-01-02 15:51:54 -06:00
2025-08-27 15:49:59 +08:00
2026-01-02 10:28:14 -06:00
2025-11-28 16:39:08 -06:00
2025-08-14 10:58:46 -06:00
2026-01-14 16:25:09 +01:00
2025-10-14 10:42:27 +03:00
2026-01-21 12:05:15 -06:00
2025-11-07 15:34:22 -06:00