* [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
@ 2017-11-21 6:11 Y.b. Lu
2017-11-24 10:18 ` Y.b. Lu
2017-11-24 22:35 ` Simon Glass
0 siblings, 2 replies; 4+ messages in thread
From: Y.b. Lu @ 2017-11-21 6:11 UTC (permalink / raw)
To: u-boot
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() ?
Thanks a lot.
Best regards,
Yangbo Lu
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
2017-11-21 6:11 [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init() Y.b. Lu
@ 2017-11-24 10:18 ` Y.b. Lu
2017-11-24 22:35 ` Simon Glass
1 sibling, 0 replies; 4+ messages in thread
From: Y.b. Lu @ 2017-11-24 10:18 UTC (permalink / raw)
To: u-boot
Any suggestion?
Thanks.
From: Y.b. Lu
Sent: 2017年11月21日 14:11
To: u-boot at lists.denx.de
Cc: 'Simon Glass' <sjg@chromium.org>; Jaehoon Chung <jh80.chung@samsung.com>; Yinbo Zhu <yinbo.zhu@nxp.com>; Xiaobo Xie <xiaobo.xie@nxp.com>
Subject: dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
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() ?
Thanks a lot.
Best regards,
Yangbo Lu
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
2017-11-21 6:11 [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init() Y.b. Lu
2017-11-24 10:18 ` Y.b. Lu
@ 2017-11-24 22:35 ` Simon Glass
2017-12-08 9:01 ` Y.b. Lu
1 sibling, 1 reply; 4+ messages in thread
From: Simon Glass @ 2017-11-24 22:35 UTC (permalink / raw)
To: u-boot
Hi,
On 20 November 2017 at 23:11, Y.b. Lu <yangbo.lu@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?
>
>
>
> Thanks a lot.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init()
2017-11-24 22:35 ` Simon Glass
@ 2017-12-08 9:01 ` Y.b. Lu
0 siblings, 0 replies; 4+ messages in thread
From: Y.b. Lu @ 2017-12-08 9:01 UTC (permalink / raw)
To: u-boot
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@nxp.com>
> Cc: u-boot at lists.denx.de; Jaehoon Chung <jh80.chung@samsung.com>; Yinbo
> Zhu <yinbo.zhu@nxp.com>; Xiaobo Xie <xiaobo.xie@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@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-08 9:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-21 6:11 [U-Boot] dm: mmc: fsl_esdhc: Drop mmc_init() call from fsl_esdhc_init() Y.b. Lu
2017-11-24 10:18 ` Y.b. Lu
2017-11-24 22:35 ` Simon Glass
2017-12-08 9:01 ` Y.b. Lu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.