Please sign in to comment.
Revert "kernel: use add_mtd_partitions() helper when using OpenWrt pa…
…rsers" This reverts commit 7e88753. Using subpartitions (hierarchical layout) resulted in calling MTD ops of parent partition instead of master device ops. That was expected and should work but testing revealed some bugs. Apparently the way MTD_ERASE_PARTIAL is implemented in the OpenWrt breaks something and using parent partition ops triggers using that code. On SmartRG SR400ac it was resulting in: [ 225.487519] jffs2: Erase at 0x01ac0000 failed immediately: errno -22 on the second boot (for some reason erasing was starting over) and it was breaking flash access in a long term. Signed-off-by: Rafał Miłecki <firstname.lastname@example.org>
- Loading branch information...
Showing with 20 additions and 12 deletions.