diff mbox series

[2/2] disk: part: sandbox support in dev_print()

Message ID 20210125115715.105568-3-xypron.glpk@gmx.de
State Accepted
Commit f84eda89e5970ef513fe64ba8e8d977788c44dca
Delegated to: Simon Glass
Headers show
Series disk: part: sandbox support in dev_print() | expand

Commit Message

Heinrich Schuchardt Jan. 25, 2021, 11:57 a.m. UTC
Commands like 'fatinfo' call dev_print() to print device information. If
the block device is created via 'host bind', we should print accurate
information.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 disk/part.c | 1 +
 1 file changed, 1 insertion(+)

--
2.29.2

Comments

Simon Glass Jan. 30, 2021, 9:26 p.m. UTC | #1
Commands like 'fatinfo' call dev_print() to print device information. If
the block device is created via 'host bind', we should print accurate
information.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 disk/part.c | 1 +
 1 file changed, 1 insertion(+)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/disk/part.c b/disk/part.c
index b69fd345f3..85b1af55e2 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -150,6 +150,7 @@  void dev_print (struct blk_desc *dev_desc)
 	case IF_TYPE_USB:
 	case IF_TYPE_NVME:
 	case IF_TYPE_PVBLOCK:
+	case IF_TYPE_HOST:
 		printf ("Vendor: %s Rev: %s Prod: %s\n",
 			dev_desc->vendor,
 			dev_desc->revision,