diff options
| author | 2026-09-04 19:18:56 +0200 | |
|---|---|---|
| committer | 2026-09-07 09:45:05 +0200 | |
| commit | 4df380710b8c8a076923050a948b41715ef09b5f (patch) | |
| tree | 291b8028d41787cb34be836e33c657212af7d28a /scripts/Makefile.thinlto | |
| parent | mtd: spi-nor: Garbage collection during sfdp parsing (diff) | |
mtd: spi-nor: Init flags before manufacturer late_init() hooks
Current init order is:
- The manufacturer-wide late_init() hook is called.
- The core initializes some chip flags
- The chip specific late_init() hook is called.
This does not seem very consistent since both late_init() may need to
touch flags, which is then not working as expected since the order is a
bit inconsistent. Moving spi_nor_init_flags() earlier, right before the
manufacturer late_init() call, ensures the hook sees the flags after
their initialization, and can therefore apply changes to them.
Since spi_nor_init_flags() only reads ->info->flags and DT properties,
it does not depend on anything a late_init() hook produces. On the other
hand, no manufacturer late_init() hook currently touches any output of
spi_nor_init_flags() either. Reordering seems safeā¢.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
