From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: tkuw584924@gmail.com, u-boot@lists.denx.de
Cc: jagan@amarulasolutions.com, vigneshr@ti.com, d-gole@ti.com,
pratyush@kernel.org, Bacem.Daassi@infineon.com,
Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Subject: Re: [PATCH v2 4/6] mtd: spi-nor: Replace default_init() hook with late_init()
Date: Thu, 25 Apr 2024 07:13:34 +0100 [thread overview]
Message-ID: <4aeb16b0-e0f3-45c6-a67e-66392cdafb61@linaro.org> (raw)
In-Reply-To: <ab901185da7f37f17767f93ce554b40a4b06b518.1714020303.git.Takahiro.Kuwano@infineon.com>
On 4/25/24 05:52, tkuw584924@gmail.com wrote:
> From: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
>
> default_init() is wrong, it contributes to the maze of initializing
> flash parameters. We'd like to get rid of it because the flash
> parameters that it initializes are not really used at SFDP parsing time,
> thus they can be initialized later.
>
> Ideally we want SFDP to initialize all the flash parameters. If (when)
> SFDP tables are wrong, we fix them with the post_sfdp/bfpt hooks, to
> emphasize that SFDP is indeed wrong. When there are parameters that are
> not covered by SFDP, we initialize them in late_init() - these
> parameters have nothing to do with SFDP and they are not needed earlier.
> With this we'll have a clearer view of who initializes what.
>
> There are six default_init() hooks implemented just for initializing
> octal_dtr_enable() and/or setup() hooks that called later on.
> Just moving those to late_init() does not change functionality.
>
> Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
> Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
next prev parent reply other threads:[~2024-04-25 12:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 4:52 [PATCH v2 0/6] mtd: Make sure UBIFS does not do multi-pass page programming on flashes that don't support it tkuw584924
2024-04-25 4:52 ` [PATCH v2 1/6] mtd: ubi: Do not zero out EC and VID on ECC-ed NOR flashes tkuw584924
2024-04-29 14:17 ` Pratyush Yadav
2024-04-29 14:44 ` Tudor Ambarus
2024-04-25 4:52 ` [PATCH v2 2/6] mtd: spi-nor: Allow flashes to specify MTD writesize tkuw584924
2024-04-25 4:52 ` [PATCH v2 3/6] mtd: spi-nor: Check nor->info before setting macronix_octal_fixups tkuw584924
2024-04-25 6:17 ` Tudor Ambarus
2024-04-25 4:52 ` [PATCH v2 4/6] mtd: spi-nor: Replace default_init() hook with late_init() tkuw584924
2024-04-25 6:13 ` Tudor Ambarus [this message]
2024-04-25 4:52 ` [PATCH v2 5/6] mtd: spi-nor: Call spi_nor_post_sfdp_fixups() only after spi_nor_parse_sfdp() tkuw584924
2024-04-25 6:16 ` Tudor Ambarus
2024-04-25 4:52 ` [PATCH v2 6/6] mtd: spi-nor: Set ECC unit size to MTD writesize in Infineon SEMPER flashes tkuw584924
2024-04-25 6:14 ` Tudor Ambarus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4aeb16b0-e0f3-45c6-a67e-66392cdafb61@linaro.org \
--to=tudor.ambarus@linaro.org \
--cc=Bacem.Daassi@infineon.com \
--cc=Takahiro.Kuwano@infineon.com \
--cc=d-gole@ti.com \
--cc=jagan@amarulasolutions.com \
--cc=pratyush@kernel.org \
--cc=tkuw584924@gmail.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.