> -----Original Message----- > From: Joe Hershberger [mailto:[email protected]] > Sent: 2019年6月1日 19:16 > To: Yinbo Zhu <[email protected]> > Cc: York Sun <[email protected]>; [email protected]; Xiaobo Xie > <[email protected]>; Jiafei Pan <[email protected]>; Ran Wang > <[email protected]> > Subject: [EXT] Re: [U-Boot] [PATCH v1] net: use block layer in net driver > > Caution: EXT Email > > On Thu, May 9, 2019 at 3:02 PM Joe Hershberger <[email protected]> > wrote: > > > > On Wed, Apr 17, 2019 at 4:02 AM Yinbo Zhu <[email protected]> wrote: > > > > > > From: Yinbo Zhu <[email protected]> > > > > > > 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 <[email protected]> > > > --- > > > 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? > Yes, need enable above two config. And default uboot had enabled them.
Regards, Yinbo > > > > > } > > > #endif > > > -- > > > 2.17.1 > > > > > > _______________________________________________ > > > U-Boot mailing list > > > [email protected] > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli > > > > sts.denx.de%2Flistinfo%2Fu-boot&data=02%7C01%7Cyinbo.zhu%40nxp.c > > > > om%7Cf4dd39cb85174bb474e208d6e682980b%7C686ea1d3bc2b4c6fa92cd9 > 9c5c30 > > > > 1635%7C0%7C1%7C636949845952441371&sdata=PJGcNYuSLsAndJaGTBe > khmEN > > > sad96LwmV92jLec5mrs%3D&reserved=0 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

