Files
u-boot/drivers
Jonas Karlman d11f0dac30 mmc: rockchip_dw_mmc: Fix get_mmc_clk return value
The get_mmc_clk ops is expected to set a clock rate and return the
configured rate as an unsigned value. However, if clk_set_rate fails,
e.g. using a fixed rate clock, a negative error value is returned.

The mmc core will treat this as a valid unsigned rate and tries to
configure a divider based on this bogus clock rate.

Use 0 as the return value when setting clock rate fails, the mmc core
will configure to use bypass mode instead of using a bogus divider.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-03-19 13:20:21 +08:00
..
2023-02-11 12:22:34 -05:00
2023-02-10 07:41:39 -05:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2023-02-07 14:33:48 -05:00
2022-01-13 07:57:49 -05:00
2023-02-10 13:41:06 -05:00
2023-02-07 14:33:49 -05:00
2022-01-13 07:57:49 -05:00
2023-02-07 14:33:49 -05:00
2023-01-20 12:27:24 -05:00
2023-02-07 14:33:49 -05:00
2023-02-10 07:41:41 -05:00
2023-01-24 13:55:05 +01:00
2022-10-11 16:03:03 -04:00
2023-02-10 07:41:40 -05:00
2023-02-10 07:41:41 -05:00
2023-02-10 07:41:41 -05:00
2023-02-07 14:33:49 -05:00