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 4D58C190664; Sun, 1 Mar 2026 02:01:38 +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=1772330498; cv=none; b=bCrsAMW99tbnDQKT0vcUuZM1Qo+I5GDdukgpXpjrrxeTXW+z4uE5RUvM+k475a8E+7RmlPyQKUo4GGsDP7Ivvxe7Rc9LYPrRTxUS/6n/OI4ld5BMRC8/xlij7103s6psAJXxcH7uNtfT87E72N4+Cdwm6bCM75xQcvtTSESTPqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330498; c=relaxed/simple; bh=RDEqyk1uYIK9WMq21nhVxBPsuYbkpwmsRlRHMsnxpS0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TjBW0okgrh+88LuWgWbdgqA7Hcq8PbK3mH108FfXragqSuTmVR4+Tv/dGk2d0lZVDk7pAg6SC6YJWF+BN/5/YCNUKK5RugaxnebDF+G2AIhD8x0PSwh1EGdsJJZl4dPuLSP3QdEZIqxhdw0tscq79wIL1w/I0iRf+syC93mXx3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WHXPIZwr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WHXPIZwr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CC58C19421; Sun, 1 Mar 2026 02:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330497; bh=RDEqyk1uYIK9WMq21nhVxBPsuYbkpwmsRlRHMsnxpS0=; h=From:To:Cc:Subject:Date:From; b=WHXPIZwrmHZQOxaLDdcUa9qjmq92lqawdco2MT0t+Fyh1lHP/ZvmGoVqvZ2kRZhSR SRJmNZO1eAAbeyoGzesuBIKZDrzHR/o0CXCaOSjEwIhOE9zeGezn3ZpYSon2jL6qWF eXAK2gUfmCvmLsf8KDS18wYy+AdlQB3wFfBulEqTWDl5VQFg5lxLeRXwjta07B+99H +YsOfg6aSkzmitZxEnWtfkSQVORedFB/aHK3BYN07CgBtRg7m4j6eoYTV/GtEIfW+o ik5VdwCnTPdUbg8gKPbVf/8Vssjg9pX6gOuHg9E7EClWZmt/oJMoHVokv44fEcKHgc ro5kg+9ZbCA9Q== From: Sasha Levin To: stable@vger.kernel.org, johan@kernel.org Cc: Dmitry Baryshkov , Konrad Dybcio , Lee Jones , linux-arm-msm@vger.kernel.org Subject: FAILED: Patch "mfd: qcom-pm8xxx: Fix OF populate on driver rebind" failed to apply to 5.10-stable tree Date: Sat, 28 Feb 2026 21:01:35 -0500 Message-ID: <20260301020136.1728945-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 27a8acea47a93fea6ad0e2df4c20a9b51490e4d9 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 19 Dec 2025 12:09:47 +0100 Subject: [PATCH] mfd: qcom-pm8xxx: Fix OF populate on driver rebind Since commit c6e126de43e7 ("of: Keep track of populated platform devices") child devices will not be created by of_platform_populate() if the devices had previously been deregistered individually so that the OF_POPULATED flag is still set in the corresponding OF nodes. Switch to using of_platform_depopulate() instead of open coding so that the child devices are created if the driver is rebound. Fixes: c6e126de43e7 ("of: Keep track of populated platform devices") Cc: stable@vger.kernel.org # 3.16 Signed-off-by: Johan Hovold Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Link: https://patch.msgid.link/20251219110947.24101-1-johan@kernel.org Signed-off-by: Lee Jones --- drivers/mfd/qcom-pm8xxx.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c index 1149f7102a365..0cf374c015ce7 100644 --- a/drivers/mfd/qcom-pm8xxx.c +++ b/drivers/mfd/qcom-pm8xxx.c @@ -577,17 +577,11 @@ static int pm8xxx_probe(struct platform_device *pdev) return rc; } -static int pm8xxx_remove_child(struct device *dev, void *unused) -{ - platform_device_unregister(to_platform_device(dev)); - return 0; -} - static void pm8xxx_remove(struct platform_device *pdev) { struct pm_irq_chip *chip = platform_get_drvdata(pdev); - device_for_each_child(&pdev->dev, NULL, pm8xxx_remove_child); + of_platform_depopulate(&pdev->dev); irq_domain_remove(chip->irqdomain); } -- 2.51.0