[PATCH master] mtd: nand: reinstate raw NAND IS_ENABLED(CONFIG_MTD_WRITE) checks
Sascha Hauer
s.hauer at pengutronix.de
Tue May 28 23:09:45 PDT 2024
On Tue, 28 May 2024 13:51:41 +0200, Ahmad Fatoum wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] mtd: nand: reinstate raw NAND IS_ENABLED(CONFIG_MTD_WRITE) checks
https://git.pengutronix.de/cgit/barebox/commit/?id=55cf43c442c2 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list