[U-Boot] [PATCH v2] net: phy: cortina: Use block layer to read from mmc

Yinbo Zhu yinbo.zhu at nxp.com
Tue Apr 23 02:36:06 UTC 2019


From: Yinbo Zhu <yinbo.zhu at nxp.com>

This patch is to use block layer to read from mmc in cortina

Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
---
Change in v2:
		Update the commit information.

 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);
 	}
 #endif
-- 
2.17.1



More information about the U-Boot mailing list