-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: nand: reinstate raw NAND IS_ENABLED(CONFIG_MTD_WRITE) checks
Some barebox configurations like OMAP MLO require no MTD write support to chainload the bigger second stage barebox. As these configurations are often size limited by On-Chip SRAM, drivers are expected to guard write-related code behind CONFIG_MTD_WRITE. This got lost with the recent NAND sync leading to multiple kilobytes in increased code size. Reinstate the IS_ENABLED(CONFIG_MTD_WRITE) checks to counteract this somewhat. There's likely more opportunity to slim down nand_base as we are still above the original size, but this here is the lowest hanging fruit. Fixes: 78c57f8 ("mtd: nand: update to Linux-6.9-rc2") Signed-off-by: Ahmad Fatoum <[email protected]> Link: https://lore.barebox.org/[email protected] Signed-off-by: Sascha Hauer <[email protected]>
- Loading branch information
1 parent
2375d98
commit 55cf43c
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters