From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796284257; b=NM0cWPJxEY4FMnMYObCOGjEXjOdfgG3Ehn/AHu1s/eKHzR/ob8LsJb8XNu52uUNXgYlL j9XZy0rp5URXP7nA42jDijdQcxQuRlvgQl2FnXLwAEIhusePIo3lhRA+0CV9ocH8JcHt9 pVsCyfepbJRGvngREvgyRWX5At2lnyYD0qwEBE8gv5Yd8Oy/eR57+Biepy/Iw4nRThB/R b3LZtTqkk0gWk9dbQmMYitw4toSfc1IeQ4+bN78351Sz+F/KtJ6K/13GU1t1dahdtYp4s mdZp132TFNt/ZKcq66av47tFhvvKI+AC+kAisV3IDfM+W0qhIsUL9MLG437TIakB2SQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796284257; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Last-TLS-Session-Version; bh=q5B08eLM+zO5NOj1lHNOTYaq5U0XcUtjuhdZ5bC2ENI=; b=yznQ8GwHCyJYBpUOytrKbEiX37vETCHuU9btZGwTi26zzPoaofomIVrlflnIB31he66O i4mDWYtzCvtDSYqVvYMsWSlwGQ1Oz3cWauiDGIvbsQKT2AE4wxp/+wEfF5Bzemmv6rMo3 AAWmsgxBaObav9SqHD9RMuHQLZnQoUfp7LYKlSmc9+gl1JJJmHUNk2aEYq5weT1ggyTUo lyH/OzzxKOd7dwc0XIzy6CiXE+gCNN4d5OJkC/t0R079jUtdRe88LIhYV6MvdrFcl6klq Xqjya00FXOcJ7cdybGU/lNxAfcq/yFQrFD/POv96TmXvcMYXd/Ic9kpaQJnEy3zH84A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=FagfC+Sq; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00E3D606A322 for ; Thu, 3 Dec 2026 07:50:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 00E3D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=FagfC+Sq Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 77CB5C2AC52 for ; Thu, 3 Dec 2026 07:51:06 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2ACB6604ED; Thu, 3 Dec 2026 07:50:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C2B1411EA19FE; Thu, 03 Dec 2026 08:50:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796284254; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=q5B08eLM+zO5NOj1lHNOTYaq5U0XcUtjuhdZ5bC2ENI=; b=FagfC+Sqj5DbCsO4oQgYzCi6DLZoOIuVMzwIupd9/dWu4XJ7+Qifb7YH3IPmi3mxS3Rl07 9JvdGD+YszOluxipV2O5wgTjAqHiAoOO8fVrO+fJ9p9Y1/+M47C9iitx/60HXdiIo/L7uj G6DEHTKMcwC96qjj7cBtGPxDi4VeeTp2wmUQVtpiaAVQn6qWLIcRMjnJyMb3EUuheVN7Yk S6oOgJ1P/dCzYY6m79l/30Mty/JlI5dpU6YHK1TZvIwVj/quL4OzIPZXQjBN37YmRuO93k u+3IlPd8E24zr7tAzav5QmqR1mB03BeNcU3QSyf6R1YX1/tyBMfdT918Psvy4Q== Date: Thu, 3 Dec 2026 08:50:52 +0100 From: Thomas Petazzoni To: Rosen Penev Cc: linux-usb@vger.kernel.org, Mathias Nyman , Greg Kroah-Hartman , Thomas Petazzoni , Gregory CLEMENT Subject: Re: [PATCH] usb: xhci-plat: mvebu: restore MBus windows on resume Message-ID: References: <20261203053651.928611-1-rosenp@gmail.com> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203053651.928611-1-rosenp@gmail.com> X-Last-TLS-Session-Version: TLSv1.3 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 Seems reasonable, so: Reviewed-by: Thomas Petazzoni Thanks! Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com