summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMike Looijmans <[email protected]>2025-04-08 07:46:38 +0200
committerTom Rini <[email protected]>2025-04-30 11:13:35 -0600
commit98a898e58499c78245e4fe36ee404b1b1208e32b (patch)
tree7a67a06cf81beb7bcda64e0f6830e4a6739ee142 /include/linux
parentaa96cda0a58f4d181b81a897b0b9fea3d9729478 (diff)
mtd: mtdpart: Support MTDPART_SIZ_FULL in fixed-partitions
Flash partitions may specify MTDPART_SIZ_FULL (=0) as the size of the partition to indicate "the remainder of the flash". Make this work with device-tree "fixed-partitions" as well. This makes MTD partitioning compatible with the Linux kernel, see: https://github.com/torvalds/linux/blob/master/include/linux/mtd/partitions.h#L29 https://github.com/torvalds/linux/blob/master/drivers/mtd/mtdpart.c#L123 Previously, this could only be done through MTDPARTS so this change allows boards like topic_miami to migrate from `mtdparts`/`mtdids` to devicetree partitions. Signed-off-by: Mike Looijmans <[email protected]> Reviewed-by: Michael Trimarchi <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions