commit | 358415a0c0cd4fe6cc515b9b665e75c647792992 | [log] [tgz] |
---|---|---|
author | Christian Marangi <ansuelsmth@gmail.com> | Fri Jun 28 19:40:47 2024 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Aug 01 15:32:18 2024 -0600 |
tree | d65278969d13115da97b96cdbf5dbc036d1a0ad8 | |
parent | 16f5f3f62cc18817f12469e42658f31bd54b2fae [diff] |
clk: mediatek: return XTAL rate for infrasys get_mux_rate We currently return 0 if XTAL rate is requested in get_mux_rate. This deviates from what is done in get_factor_rate and is totally wrong as it can cause unwanted results (division by 0 crash) For infrasys that makes use of CLK_XTAL, assume xtal_rate to be defined in clk_tree and return the rate when BYPASS_XTAL is not enabled with clk ID 0 index parents. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>