[U-Boot] [PATCH v1] net: use block layer in net driver

Joe Hershberger joe.hershberger at gmail.com
Sat Jun 1 11:16:19 UTC 2019


On Thu, May 9, 2019 at 3:02 PM Joe Hershberger
<joe.hershberger at gmail.com> wrote:
>
> On Wed, Apr 17, 2019 at 4:02 AM Yinbo Zhu <yinbo.zhu at nxp.com> wrote:
> >
> > From: Yinbo Zhu <yinbo.zhu at nxp.com>
> >
> > At present the MMC subsystem maintains its own list
> > of MMC devices. This cannot work with driver model
> > when CONFIG_BLK is enabled, use blk_dread to
> > replace previous mmc read interface,
> >
> > Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
> > ---
> >  drivers/net/phy/cortina.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
> > index a04a118f90..2337c3403c 100644
> > --- a/drivers/net/phy/cortina.c
> > +++ b/drivers/net/phy/cortina.c
> > @@ -176,7 +176,7 @@ void cs4340_upload_firmware(struct phy_device *phydev)
> >                 printf("MMC read: dev # %u, block # %u, count %u ...\n",
> >                        dev, blk, cnt);
> >                 mmc_init(mmc);
> > -               (void)mmc->block_dev.block_read(&mmc->block_dev, blk, cnt,
> > +               (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
> >                                                 addr);
>
> Should this be switching on CONFIG_BLK or CONFIG_DM_MMC or something.

Any word?

>
> >         }
> >  #endif
> > --
> > 2.17.1
> >
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list