[U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
Y.b. Lu
yangbo.lu at nxp.com
Fri Dec 8 09:01:34 UTC 2017
Hi Simon,
Sorry for my late response.
Please see my comments inline.
Thanks a lot.
> -----Original Message-----
> From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
> Sent: 2017年11月25日 6:36
> To: Y.b. Lu <yangbo.lu at nxp.com>
> Cc: u-boot at lists.denx.de; Jaehoon Chung <jh80.chung at samsung.com>; Yinbo
> Zhu <yinbo.zhu at nxp.com>; Xiaobo Xie <xiaobo.xie at nxp.com>
> Subject: Re: dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
>
> Hi,
>
> On 20 November 2017 at 23:11, Y.b. Lu <yangbo.lu at nxp.com> wrote:
> > Hi Simon,
> >
> >
> >
> > I found your below patch just dropping mmc_create() for probe
> > procedure of DM.
> >
> > Actually the description seemed to be not the things this patch did.
> >
> >
> >
> > dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
> >
> >
> >
> > Do you have any suggestion to fix it?
> >
> > mmc_create() will allocate mmc structure and the DM in fsl_esdhc also
> > allocate mmc structure in fsl_esdhc_plat structure.
> >
> > Do we need to rework the mmc_create(), or move rest initialization of
> > mmc_create() in to fsl_esdhc_probe() ?
>
> But mmc_create() is only used in legacy code, not with driver model.
>
> Why do you want to call it here? Does your board not use CONFIG_DM_MMC?
[Y.b. Lu] As I understand, mmc_create() is used for mmc host driver in which CONFIG_BLK is not implemented.
Currently ls1012ardb board is using DM but CONFIG_BLK isn’t implemented. So now it couldn’t be added into mmc device list in initialization, and mmc command warns no MMC device.
>
> >
> >
> >
> > Thanks a lot.
>
> Regards,
> Simon
More information about the U-Boot
mailing list