Re: [PATCH RFC 3/9] mmc: meson_gx_mmc: don't bail if there is no clock driver
Neil Armstrong <[email protected]> Mon, 8 Sep 2025 10:10:14 +0200
| Newsgroups | io.groups.u-boot-amlogic,org.u-boot-project.lists.u-boot |
|---|---|
| Organization | Linaro |
| Message-ID | <[email protected]> |
On 07/09/2025 16:36, Ferass El Hafidi wrote: > The clock driver is too big for U-Boot SPL at the moment. In the > meantime, continue mmc init even if it is not present. > > Signed-off-by: Ferass El Hafidi <[email protected]> > --- > drivers/mmc/meson_gx_mmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c > index a4338f1e29c1da07acb0333be9b75a318cba1334..d83a79fa0894fc6a32c40642ebce5f845120efaf 100644 > --- a/drivers/mmc/meson_gx_mmc.c > +++ b/drivers/mmc/meson_gx_mmc.c > @@ -332,11 +332,11 @@ static int meson_mmc_probe(struct udevice *dev) > > /* Enable the clocks feeding the MMC controller */ > ret = clk_get_bulk(dev, &clocks); > - if (ret) > + if (ret && ret != -ENOSYS) > return ret; > > ret = clk_enable_bulk(&clocks); > - if (ret) > + if (ret && ret != -ENOSYS) > return ret; > > cfg->voltages = MMC_VDD_33_34 | MMC_VDD_32_33 | > Can you only not bail out in SPL ? I would like to keep the current behavior on non-SPL. Neil