All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Rosen Penev <rosenp@gmail.com>
Cc: linux-usb@vger.kernel.org,
	Mathias Nyman <mathias.nyman@intel.com>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	 Gregory CLEMENT <gregory.clement@bootlin.com>
Subject: Re: [PATCH] usb: xhci-plat: mvebu: restore MBus windows on resume
Date: Thu, 3 Dec 2026 08:50:52 +0100	[thread overview]
Message-ID: <axEfRZo_9xN1lABq@windsurf> (raw)
In-Reply-To: <20261203053651.928611-1-rosenp@gmail.com>

On Wed, Dec 02, 2026 at 09:36:51PM -0800, Rosen Penev wrote:
> The Armada 375/38x xHCI reaches DRAM through MBus decoding windows in
> its second register block. They are only programmed from ->init_quirk()
> at probe time. On boards that lose SoC power in suspend-to-RAM, the
> windows read back as zero on resume, so the controller has no path to
> memory and its DMA fails.
> 
> The AHCI and mvneta drivers on the same SoCs already reprogram their
> windows on resume. Do the same here by using the existing MBus setup
> as ->resume_quirk(), which xhci_plat_resume_common() calls before
> xhci_resume(). Reprogramming is idempotent, so it is also safe when
> power was kept.
> 
> Fixes: 973747928514 ("usb: host: xhci-plat: add support for the Armada 375/38x XHCI controllers")
> Signed-off-by: Rosen Penev <rosenp@gmail.com>

Seems reasonable, so:

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com

      parent reply	other threads:[~2026-12-03  7:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  5:36 [PATCH] usb: xhci-plat: mvebu: restore MBus windows on resume Rosen Penev
2026-12-03  5:46 ` sashiko-bot
2026-12-03  7:50 ` Thomas Petazzoni [this message]

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=axEfRZo_9xN1lABq@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=gregory.clement@bootlin.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=rosenp@gmail.com \
    --cc=thomas.petazzoni@free-electrons.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.