FAILED: patch "[PATCH] usb: cdns3: plat: fix leaked usb2_phy initialization on" failed to apply to 6.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.1-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 <[email protected]>.
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.1.y
git checkout FETCH_HEAD
git cherry-pick -x e6970cda63fd4b4546aeed9d0e2f53a7c95cd09c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026060428-repaying-swept-0b59@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From e6970cda63fd4b4546aeed9d0e2f53a7c95cd09c Mon Sep 17 00:00:00 2001
From: Peter Chen <[email protected]>
Date: Wed, 13 May 2026 16:53:09 +0800
Subject: [PATCH] usb: cdns3: plat: fix leaked usb2_phy initialization on
usb3_phy acquisition failure
Move usb2_phy initialization after usb3_phy acquisition.
drivers/usb/cdns3/cdns3-plat.c +4 -4
@@ -126,15 +126,15 @@ static int cdns3_plat_probe(struct platform_device *pdev)return dev_err_probe (dev,PTR_ERR (cdns->usb2_phy),"Failed to get cdn3,usb2-phy\n" ); - ret =phy_init (cdns->usb2_phy); -if (ret) -return ret; - cdns->usb3_phy =devm_phy_optional_get (dev,"cdns3,usb3-phy" );if (IS_ERR (cdns->usb3_phy))return dev_err_probe (dev,PTR_ERR (cdns->usb3_phy),"Failed to get cdn3,usb3-phy\n" ); + ret =phy_init (cdns->usb2_phy); +if (ret) +return ret; + ret =phy_init (cdns->usb3_phy);if (ret) goto err_phy3_init;
Sasha Levin
maintainerPATCH 1/1 usb: cdns3: plat: fix leaked usb2_phy initialization on usb3_phy acquisition failure
From: Peter Chen <[email protected]>
[ Upstream commit e6970cda63fd4b4546aeed9d0e2f53a7c95cd09c ]
Move usb2_phy initialization after usb3_phy acquisition.
--- drivers/usb/cdns3/cdns3-plat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/usb/cdns3/cdns3-plat.c +4 -4
@@ -120,14 +120,14 @@ static int cdns3_plat_probe(struct platform_device *pdev)if (IS_ERR (cdns->usb2_phy))return PTR_ERR (cdns->usb2_phy); - ret =phy_init (cdns->usb2_phy); -if (ret) -return ret; - cdns->usb3_phy =devm_phy_optional_get (dev,"cdns3,usb3-phy" );if (IS_ERR (cdns->usb3_phy))return PTR_ERR (cdns->usb3_phy); + ret =phy_init (cdns->usb2_phy); +if (ret) +return ret; + ret =phy_init (cdns->usb3_phy);if (ret) goto err_phy3_init;
Signature · 1 line
2.53.0