kernel: bcm47xxpart: fix getting user-space data partition name
authorRafał Miłecki <rafal@milecki.pl>
Tue, 10 Jul 2018 12:02:00 +0000 (14:02 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 10 Jul 2018 12:11:15 +0000 (14:11 +0200)
commit5a40fad22a398f86d4900d391e00948df09fcde0
treed2d00c3ce4517304f30b172cfeb02e538334e22c
parentb84a07b3803bd39d0a1eb1b040718a023b8f7971
kernel: bcm47xxpart: fix getting user-space data partition name

Partition name is picked by a parser_trx_data_part_name(). It has to
get correct partition offset (taking care of bad blocks) to work
properly.

This fixes UBI support for devices that have kernel flashed on partition
with a bad block.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 7ddba08d873a0ce6d2d32b8f6a1bea550107ca44)
target/linux/generic/pending-4.14/431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch
target/linux/generic/pending-4.9/431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch