clk: meson: do not fail when setting SD_EMMC_x_CLK0

Since Linux v7.0, the MMC controllers has the following properties:
  assigned-clocks = <&clkc CLKID_SD_EMMC_x_CLK0>;
  assigned-clock-rates = <24000000>;
Which causes mmc controllers to fail in probe.

Make sure we do not fail until we properly implement rate setup.

Tested-by: Ferass El Hafidi <funderscore@postmarketos.org> # on lepotato
Link: https://patch.msgid.link/20260422-u-boot-amlogic-test-v1-1-b5790d3c04e0@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
Neil Armstrong 2026-04-22 10:48:58 +02:00
parent 052988aa29
commit 723f14c946
2 changed files with 10 additions and 0 deletions

View File

@ -946,6 +946,11 @@ static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
case CLKID_HDMI:
return meson_clk_set_rate_by_id(clk, CLKID_HDMI_DIV,
rate, current_rate);
case CLKID_SD_EMMC_A_CLK0:
case CLKID_SD_EMMC_B_CLK0:
case CLKID_SD_EMMC_C_CLK0:
/* TOFIX: implement rate set for MMC clocks */
return 0;
default:
return -ENOENT;
}

View File

@ -900,6 +900,11 @@ static ulong meson_clk_set_rate_by_id(struct clk *clk, unsigned long id,
case CLKID_HDMI:
return meson_clk_set_rate_by_id(clk, CLKID_HDMI_DIV,
rate, current_rate);
case CLKID_SD_EMMC_A_CLK0:
case CLKID_SD_EMMC_B_CLK0:
case CLKID_SD_EMMC_C_CLK0:
/* TOFIX: implement rate set for MMC clocks */
return 0;
default:
return -ENOENT;
}