DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH] v8a: configure MTD SPI-NOR sector sizes consistently
Date: Wed, 31 May 2023 15:20:49 +0200	[thread overview]
Message-ID: <20230531132049.2151777-1-a.fatoum@pengutronix.de> (raw)

It must be guaranteed that the option MTD_SPI_NOR_USE_4K_SECTORS is set
consistently between barebox and kernel. If this is not the case bad things
can happen (e.g. inconsistencies in barebox state).

The platforms we have use MMC by default, but let's take no chances and
do (one of the) right thing(s) by aligning barebox with the kernel,
which is already built with CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v8a/barebox.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config
index a540e307e179..94dc595c30ea 100644
--- a/configs/platform-v8a/barebox.config
+++ b/configs/platform-v8a/barebox.config
@@ -631,7 +631,7 @@ CONFIG_MTD_M25P80=y
 # CONFIG_DRIVER_CFI is not set
 # CONFIG_NAND is not set
 CONFIG_MTD_SPI_NOR=y
-# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
 # CONFIG_SPI_CADENCE_QUADSPI is not set
 # CONFIG_MTD_UBI is not set
 CONFIG_DISK=y
-- 
2.39.2




             reply	other threads:[~2023-05-31 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 13:20 Ahmad Fatoum [this message]
2023-05-31 13:31 ` Robert Schwebel

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=20230531132049.2151777-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox