Thread (10 messages) 10 messages, 2 authors, 2021-05-06
STALE1879d

[PATCH 2/3] mci: mci-core: set the DEVFS_IS_MCI_DEV flag

From: Marco Felsch <hidden>
Date: 2021-05-06 11:25:14
Subsystem: the rest · Maintainer: Linus Torvalds

Set the new introduced flag to be able to check if the cdev is an
mmc/mci device.

Signed-off-by: Marco Felsch <redacted>
---
 drivers/mci/mci-core.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 017f25d35f..c0fbcb385f 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -420,6 +420,7 @@ static void mci_part_add(struct mci *mci, uint64_t size,
 	part->size = size;
 	part->blk.cdev.name = name;
 	part->blk.cdev.partname = partname;
+	part->blk.cdev.flags |= DEVFS_IS_MCI_DEV;
 	part->blk.blockbits = SECTOR_SHIFT;
 	part->blk.num_blocks = mci_calc_blk_cnt(size, part->blk.blockbits);
 	part->area_type = area_type;
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help