U-boot Archive mirror
 help / color / mirror / Atom feed
From: Robert Marko <robert.marko@sartura.hr>
To: sjg@chromium.org, trini@konsulko.com, jagan@amarulasolutions.com,
	vigneshr@ti.com, marek.vasut+renesas@mailbox.org,
	u-boot@lists.denx.de
Cc: j.beck@linefinity.com, Robert Marko <robert.marko@sartura.hr>
Subject: [RFC PATCH 0/5] Implement exiting 4-byte adressing mode before reset
Date: Tue,  7 May 2024 12:03:48 +0200	[thread overview]
Message-ID: <20240507100431.206670-1-robert.marko@sartura.hr> (raw)

This fixes the issue with 4-byte adressing mode being left enabled on
board reset.
That is an issue on Qualcomm IPQ4019 boards since the CPU expects flash
to be in 3-byte adressing mode and will just hang otherwise.

Note that this does not fix a case where you remove the power while U-Boot
is still running and in that case it will still be stuck in 4-byte mode.

Robert Marko (5):
  dm: core: add on_reset method
  dm: core: introduce uclass_id_on_reset()
  mtd: spi-nor: rename and export 4-byte adressing mode function
  mtd: spi: sf: implement .on_reset method
  sysreset: call .on_reset for UCLASS_SPI_FLASH before reset request

 drivers/core/uclass.c              | 13 +++++++++++++
 drivers/mtd/spi/sf_probe.c         | 10 ++++++++++
 drivers/mtd/spi/spi-nor-core.c     |  7 +++----
 drivers/sysreset/sysreset-uclass.c |  7 +++++++
 include/dm/device.h                |  2 ++
 include/dm/uclass.h                |  8 ++++++++
 include/linux/mtd/spi-nor.h        | 10 ++++++++++
 7 files changed, 53 insertions(+), 4 deletions(-)

-- 
2.45.0


             reply	other threads:[~2024-05-07 10:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 10:03 Robert Marko [this message]
2024-05-07 10:03 ` [RFC PATCH 1/5] dm: core: add on_reset method Robert Marko
2024-05-07 10:03 ` [RFC PATCH 2/5] dm: core: introduce uclass_id_on_reset() Robert Marko
2024-05-07 10:03 ` [RFC PATCH 3/5] mtd: spi-nor: rename and export 4-byte adressing mode function Robert Marko
2024-05-07 10:03 ` [RFC PATCH 4/5] mtd: spi: sf: implement .on_reset method Robert Marko
2024-05-07 10:03 ` [RFC PATCH 5/5] sysreset: call .on_reset for UCLASS_SPI_FLASH before reset request Robert Marko

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=20240507100431.206670-1-robert.marko@sartura.hr \
    --to=robert.marko@sartura.hr \
    --cc=j.beck@linefinity.com \
    --cc=jagan@amarulasolutions.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).