generic: 5.15: fix FIT partition parser on block partitions
authorDaniel Golle <daniel@makrotopia.org>
Tue, 29 Mar 2022 00:53:08 +0000 (01:53 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 29 Mar 2022 00:56:05 +0000 (01:56 +0100)
commit506ddce90fc99d08d7bc0c9ef4277756f54473bb
tree2236f93eecee5b743e89540a41bb5381d9f9e327
parent1c7e146f7e0f42e5e414c6cff0c73f75b405e0dd
generic: 5.15: fix FIT partition parser on block partitions

Using set_disk_ro() doesn't have the desired effect and instead of
just setting the single partition to be read-only it affects the
whole disk. Use the bd_read_only flag in struct block_device instead
to mark a partition being read-only.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/hack-5.15/410-block-fit-partition-parser.patch