On Wed, Oct 28, 2026 at 12:51:21PM +0000, Biju Das wrote: > From: Biju Das > > RZ/G3L supports a wider clock divider range than the hardcoded 512 > used by existing SoCs. Add a max_divider field to > renesas_sdhi_of_data and tmio_mmc_data, and use it in > renesas_sdhi_clk_enable(), renesas_sdhi_clk_update(), and > renesas_sdhi_set_clock() instead of the fixed value. > > While at it, check the return value of clk_round_rate() in > renesas_sdhi_clk_enable(). A negative error code was previously > divided and clamped into f_min; now the error is propagated and the > clk_cd clock is disabled again. > > Default to SDHI_MAX_DIVIDER_DEFAULT (512) at probe time when > platform data doesn't set it. This paves the way for RZ/G3L's extended > divider support. > > Signed-off-by: Biju Das Reviewed-by: Wolfram Sang