All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc
@ 2019-06-11  6:29 Yinbo Zhu
  2019-07-08 23:04 ` Joe Hershberger
  2019-07-15 22:51 ` [U-Boot] " Joe Hershberger
  0 siblings, 2 replies; 3+ messages in thread
From: Yinbo Zhu @ 2019-06-11  6:29 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
---
Change in v2:
		Update the commit information.
Change in v3:
		Limit patch work when BLK enabled.

 drivers/net/phy/cortina.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index a04a118f90..ec81dab3f6 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -176,8 +176,13 @@ void cs4340_upload_firmware(struct phy_device *phydev)
 		printf("MMC read: dev # %u, block # %u, count %u ...\n",
 		       dev, blk, cnt);
 		mmc_init(mmc);
+#ifdef CONFIG_BLK
+		(void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt,
+						addr);
+#else
 		(void)mmc->block_dev.block_read(&mmc->block_dev, blk, cnt,
 						addr);
+#endif
 	}
 #endif
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc
  2019-06-11  6:29 [U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc Yinbo Zhu
@ 2019-07-08 23:04 ` Joe Hershberger
  2019-07-15 22:51 ` [U-Boot] " Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2019-07-08 23:04 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 11, 2019 at 1:27 AM Yinbo Zhu <yinbo.zhu@nxp.com> wrote:
>
> This patch is to use block layer to read from mmc in cortina
>
> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] net: phy: cortina: Use block layer to read from mmc
  2019-06-11  6:29 [U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc Yinbo Zhu
  2019-07-08 23:04 ` Joe Hershberger
@ 2019-07-15 22:51 ` Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2019-07-15 22:51 UTC (permalink / raw)
  To: u-boot

Hi Yinbo,

https://patchwork.ozlabs.org/patch/1113517/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-15 22:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11  6:29 [U-Boot] [PATCH v3] net: phy: cortina: Use block layer to read from mmc Yinbo Zhu
2019-07-08 23:04 ` Joe Hershberger
2019-07-15 22:51 ` [U-Boot] " Joe Hershberger

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.