From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E98C12FE56F; Sat, 12 Sep 2026 14:24:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789223065; cv=none; b=YtWdjZDbm9KbHtZbfjcTCo4kuprPuAO38X3aV0h8GLxt8j6UpB4gLlKsgFy3QNadimaQihT1WPIdTnHTtefWRtMJ7qRD/T5ProsBiZfL0LedU1XBXceQ8MZRjVHvhOlRS26tKRYhp9glXFdbrtHMadruRbdkW+wdlCkMWIBAA1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789223065; c=relaxed/simple; bh=85+fl0+kAdxSO4o7cbtB/GyiiqpOIyov/R62n6vJwzA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YTMehVZ2mUgTAEKk8UlIW1DlTWQQqP7Li7+95qhiSgtFVqzqBXqgEUUhmhoz0L80P1YS8VQnk9F7hm1WQxP8/udQ0bcy3KrCTQ9gIE1cziZjoevw5nR4ENxG4AmDNJH9TGZvN+8mM7yG8xJjn4a3/Ru+vfZuPZTwTWpJ346JFqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PIvO/zti; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PIvO/zti" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A0C31F000FF; Sat, 12 Sep 2026 14:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789223063; bh=XWtdTaqc/JKKFid7wxBn7pzJmFA00cASbfvjDPra7H0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PIvO/ztit2omECBUgVK+vg14GUQavdigvvvLcnHzq8wcY7Y93GxtSXhIn2188m/dh ICVq6msFLHcHnZkp+fmS/hL/gTDpdqEqrkbvVoTs09G1mAf2vX7ep5NSCaays4R+Fg 5a0AjgzrPX1pqf+b7YctSQKjg/FNRxVUx+s+9yPY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Biju Das , Sasha Levin Subject: [PATCH 6.6 0712/1424] usb: renesas_usbhs: Fix power-off ordering on unbind Date: Sat, 12 Sep 2026 08:52:24 +0200 Message-ID: <20260912065623.242686193@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Biju Das [ Upstream commit 589b9e6f96be6bd8dd0d45fda8e948c31dc2fe94 ] Move the usbhsc_power_ctrl() call to before hardware_exit() and reset_control_assert() in usbhs_remove(), so the PHY is powered off while priv->phy is still valid, rather than after hardware_exit() has already cleared it. Fixes: eb9ac779830b ("usb: renesas_usbhs: Fix synchronous external abort on unbind") Signed-off-by: Biju Das Link: https://patch.msgid.link/20260702073832.175047-1-biju.das.jz@bp.renesas.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/renesas_usbhs/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 4fdc1d0c24515..cceb818c0848c 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -798,9 +798,6 @@ static void usbhs_remove(struct platform_device *pdev) flush_delayed_work(&priv->notify_hotplug_work); - usbhs_platform_call(priv, hardware_exit, pdev); - reset_control_assert(priv->rsts); - /* * Explicitly free the IRQ to ensure the interrupt handler is * disabled and synchronized before freeing resources. @@ -817,6 +814,9 @@ static void usbhs_remove(struct platform_device *pdev) if (!usbhs_get_dparam(priv, runtime_pwctrl)) usbhsc_power_ctrl(priv, 0); + usbhs_platform_call(priv, hardware_exit, pdev); + reset_control_assert(priv->rsts); + usbhsc_clk_put(priv); pm_runtime_disable(&pdev->dev); } -- 2.53.0