* [RFC PATCH 5/5] mtd/ubi/block: scan for partitions in case FIT_PARTITION is set
@ 2022-04-25 15:00 Daniel Golle
0 siblings, 0 replies; only message in thread
From: Daniel Golle @ 2022-04-25 15:00 UTC (permalink / raw)
To: linux-block, linux-efi, linux-mtd, linux-kernel
Cc: Tom Rini, Jens Axboe, Davidlohr Bueso, Miquel Raynal,
Richard Weinberger, Vignesh Raghavendra, Masahiro Yamada
Enable partition parsers on plain ubiblock devices in case of
CONFIG_FIT_PARTITION being selected.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
drivers/mtd/ubi/block.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c
index 18683d1c1bf501..b0f1f4565c719b 100644
--- a/drivers/mtd/ubi/block.c
+++ b/drivers/mtd/ubi/block.c
@@ -431,7 +431,9 @@ int ubiblock_create(struct ubi_volume_info *vi)
ret = -ENODEV;
goto out_cleanup_disk;
}
+#ifndef CONFIG_FIT_PARTITION
gd->flags |= GENHD_FL_NO_PART;
+#endif
gd->private_data = dev;
sprintf(gd->disk_name, "ubiblock%d_%d", dev->ubi_num, dev->vol_id);
set_capacity(gd, disk_capacity);
--
2.36.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-25 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 15:00 [RFC PATCH 5/5] mtd/ubi/block: scan for partitions in case FIT_PARTITION is set Daniel Golle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).