]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: bcm47xxpart: alternative MAGIC for board_data partition
authorRafał Miłecki <zajec5@gmail.com>
Sat, 21 Dec 2013 18:39:12 +0000 (19:39 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 5 Jan 2014 22:08:40 +0000 (14:08 -0800)
commit2761762265647a0a6f3aba17c519a97533414a31
tree7a280e4abc5182561764979c539bd55a706d0494
parent41623cdb472fc0ccda96da80425e6d3aac7147a5
mtd: bcm47xxpart: alternative MAGIC for board_data partition

Some devices (like WNDR3700v3) have board_data without MPFR magic, some
extra header or extra NVRAM around 0x100. In such case we have to look
for another magic which is BD 0B 0D BD (BD probably stands for Board
Data). It's located "far far away", so instead of extending buffer add
another mtd_read.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/bcm47xxpart.c