From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 39BB01F4717 for ; Mon, 19 May 2025 13:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747660217; cv=none; b=plZYjE8J1DWtvfCUiuAXbrO5LTdER8QFZCFk9Y2z3sVK81IC6D2k7trfhsXkLhuK4dJ8ah0lrri0XoamTNpws55f0bwPxicpK10eX7ccApZ/ktrzoj6F2pIHoY8rS6iPj4ew/KPTOLcOnG0L/Luq6aRqfLu2/L6VzaLpNZuoZbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747660217; c=relaxed/simple; bh=QbXahH4DsXGXas12+6FD+mXa4FjMf4aJdNrr+6PXduA=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=NPgk4Z2k7OCq9yuf+wCJDuGN6n1xmA8wBpC+45VqVRXExgJf0ARGUQy0Eg48qWKFIr/WjazwXx5lmVu17cFRBxDwvnQ/0ZnCQ7Ld7FrkRdeaJ2XPbm79LjrbmDTfb8JSfXyttDG+LIyqmHS4Rya1uWC8N2sLBhYYBnpjy61I020= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LnD8lpnh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LnD8lpnh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F495C4CEE4; Mon, 19 May 2025 13:10:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747660216; bh=QbXahH4DsXGXas12+6FD+mXa4FjMf4aJdNrr+6PXduA=; h=Subject:To:Cc:From:Date:From; b=LnD8lpnh9g2IZKTDg7LU6bAwFHVxisFS0TkDqxneRPSDGNtkr6NT2K1YXy91LHyEv mkQR1P/xab+AUakkbEgOY+/cehbAcTiLG60eB+akkUKQKWG5AAztA6SITWpGdj+3i8 J7F/M8AJsHwFoN22l1z4hAlzYbpf8tlst22La3IU= Subject: FAILED: patch "[PATCH] phy: renesas: rcar-gen3-usb2: Assert PLL reset on PHY power" failed to apply to 6.6-stable tree To: claudiu.beznea.uj@bp.renesas.com,prabhakar.mahadev-lad.rj@bp.renesas.com,vkoul@kernel.org,yoshihiro.shimoda.uh@renesas.com Cc: From: Date: Mon, 19 May 2025 15:10:08 +0200 Message-ID: <2025051908-smock-python-51a3@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x 9ce71e85b29eb63e48e294479742e670513f03a0 # git commit -s git send-email --to '' --in-reply-to '2025051908-smock-python-51a3@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9ce71e85b29eb63e48e294479742e670513f03a0 Mon Sep 17 00:00:00 2001 From: Claudiu Beznea Date: Wed, 7 May 2025 15:50:31 +0300 Subject: [PATCH] phy: renesas: rcar-gen3-usb2: Assert PLL reset on PHY power off Assert PLL reset on PHY power off. This saves power. Fixes: f3b5a8d9b50d ("phy: rcar-gen3-usb2: Add R-Car Gen3 USB2 PHY driver") Cc: stable@vger.kernel.org Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda Reviewed-by: Lad Prabhakar Signed-off-by: Claudiu Beznea Link: https://lore.kernel.org/r/20250507125032.565017-5-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Vinod Koul diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c index 00ce564463de..118899efda70 100644 --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -537,9 +537,17 @@ static int rcar_gen3_phy_usb2_power_off(struct phy *p) struct rcar_gen3_chan *channel = rphy->ch; int ret = 0; - scoped_guard(spinlock_irqsave, &channel->lock) + scoped_guard(spinlock_irqsave, &channel->lock) { rphy->powered = false; + if (rcar_gen3_are_all_rphys_power_off(channel)) { + u32 val = readl(channel->base + USB2_USBCTR); + + val |= USB2_USBCTR_PLL_RST; + writel(val, channel->base + USB2_USBCTR); + } + } + if (channel->vbus) ret = regulator_disable(channel->vbus);