]> www.infradead.org Git - users/hch/misc.git/commit
mmc: block: attach partitions fwnode if found in mmc-card
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 2 Oct 2024 22:11:44 +0000 (00:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:14:56 +0000 (08:14 -0600)
commit3ec7cb11bb9e41e3018656eb7a34e0ce9507785e
tree07d2aec44e95cef3f18fb828c663a9ec3191c770
parent9dfd9ea93aeab57d897bb7fc7c0707f26b0b9af8
mmc: block: attach partitions fwnode if found in mmc-card

Attach partitions fwnode if found in mmc-card and register disk with it.

This permits block partition to reference the node and register a
partition table defined in DT for the special case for embedded device
that doesn't have a partition table flashed but have an hardcoded
partition table passed from the system.

JEDEC BOOT partition boot0/boot1 are supported but in DT we refer with
the JEDEC name of boot1 and boot2 to better adhere to documentation.

Also JEDEC GP partition gp0/1/2/3 are supported but in DT we refer with
the JEDEC name of gp1/2/3/4 to better adhere to documentration.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241002221306.4403-5-ansuelsmth@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c