From nobody Sun Jun 14 23:59:59 2026 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 B638E382391; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=SWpYQ1Z7wOXbxJ+f1UiWFRMtPfVk9yd1bMvqmVwhQ5DXq40INqBfEovQwyFGedmucgfxpLTRC1awWX5StP0sI5dZTqPNV8Ls154PJgcB+MqTsx4IyFypsH83f0FpkWhHOxSBOj17YSk5fumrDA77LcRQSoY7T3DHHWykncPhqtI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=slJlP5Oupwv22k8EjAyL7vWShwGKljKVWC/OLb7mvT8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BqhXoUZ+orF0fWBwf7WTGWH7KuHiBVPdOzD2MzMkWNHItvlDSBB3ONTwqi3pX0uEm7ZLU6yHt8VMPtFHpzqkkMdNdxUFzB/2VXZTTInULotG8yU0048hFH8o3Rw3bPlLeo8uZ6HQIFeYJTKnh8lYc89JhuAQ1CFsR4aCsZlwdFw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XQOEqoQW; 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="XQOEqoQW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 636B4C2BCB0; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=slJlP5Oupwv22k8EjAyL7vWShwGKljKVWC/OLb7mvT8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XQOEqoQWloPSOQE7rPu6gn8DpCMMR3iHcC34jeF8eya+wNeGK4Y+I4UyGUD3Z6jD4 ZpjSvv4+ZTZaSmjv3qBtb+DcwBJH6lVMF5mVErASbMOuqgiEtMu/nFqksU0kJh6Iwv QTna/OeQ06gaSbEheKdkbIt7LwtOR45ol+xMgqcHu+fqU5R6wCNX178ElARKKO70qL o2fjD5jxHYdNo8MmDMTmIYjJRwHqq2UjIocR573+PzY8QrzwI8Oq/9K4C2VcQEn2p2 s+IeCTvQ8qp40k57T6Bht4T+Q06cWIT3xYMn8EdZmxuhsu45Fn0G2VrX8JC4IRtIOn dPR3VVVrsiatw== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOB-000000001Mb-3uDV; Wed, 08 Apr 2026 09:31:51 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Chris Morgan Subject: [PATCH v2 1/7] regulator: bq257xx: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:49 +0200 Message-ID: <20260408073055.5183-2-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: 981dd162b635 ("regulator: bq257xx: Add bq257xx boost regulator drive= r") Cc: stable@vger.kernel.org # 6.18 Cc: Chris Morgan Reviewed-by: Douglas Anderson Signed-off-by: Johan Hovold --- drivers/regulator/bq257xx-regulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/bq257xx-regulator.c b/drivers/regulator/bq25= 7xx-regulator.c index dab8f1ab4450..711dbe045383 100644 --- a/drivers/regulator/bq257xx-regulator.c +++ b/drivers/regulator/bq257xx-regulator.c @@ -142,8 +142,7 @@ static int bq257xx_regulator_probe(struct platform_devi= ce *pdev) struct device_node *np =3D dev->of_node; struct regulator_config cfg =3D {}; =20 - pdev->dev.of_node =3D pdev->dev.parent->of_node; - pdev->dev.of_node_reused =3D true; + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); =20 pdata =3D devm_kzalloc(&pdev->dev, sizeof(struct bq257xx_reg_data), GFP_K= ERNEL); if (!pdata) --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 B6426382394; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=W8U2cAEXztuguWopj6ZchOWF6foLxBwIK845/vrLGMujXXsSRt/X0LsQpXTEijRSzadG5UXyR2156JVqmn5LoVZji+rLsPmV8aWn9V6b3S53yNVd4wgWIop1ENkm3Cn2KPvgGsIIW47BiaqrdzLgmBBjCBfmOlr4VACa0UpX3IM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=dHtIUpJe5O9O5vYplwuFO+s0enNeFKqbjvD27gE7yVg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=elCs0zB71brL9stwzwT0vHQtDp3JqxlwSPK0JLd1uj2zq2J780PiDe3fQGjbKJvKPnPcQ3BhwCiV46UZWtgGppwS4tJWPeCnU4u//1BdLH0Lq/FJnt/3JRPsdAo5WkP7XTJj334fOgiV1cxg6OaFjz1JDUCophUGpWgA0iOFrBE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XOU/doeV; 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="XOU/doeV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60F94C19425; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=dHtIUpJe5O9O5vYplwuFO+s0enNeFKqbjvD27gE7yVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XOU/doeVTSd4plLbqFcraRosHoTrlJpqYEYBmORwml/9X63ZXU6a99tLwAFkmJQSn NlA8tjQMcZcu1FRlW3fIGugxLhpwj4iToEK8fy5PlpO5TkaaGNKlNpS5bie7P3BdIt rUTwUAYPVVZc3e3U/LbEuTnGVEX3fUlev7ikM/R/AeyYXUGp9GI0fJL7LGUEC2sE4C l/rSXEpW6Zl8RBV6hbKVqD+vrMxywUInuCr0PJTVB2HpwyoBivdxHkAj9OmnQujz1h rhtjG1eS6qtRyZiBnlVSzToVPEKkH2dj6IOGfgFUyqG7ZDs8IsfKYgt4U114n7KU5X kg5Ke/gj+BEqA== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOB-000000001Md-40xV; Wed, 08 Apr 2026 09:31:51 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Sebastian Reichel Subject: [PATCH v2 2/7] regulator: rk808: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:50 +0200 Message-ID: <20260408073055.5183-3-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: 647e57351f8e ("regulator: rk808: reduce 'struct rk808' usage") Cc: stable@vger.kernel.org # 6.2 Reviewed-by: Sebastian Reichel Reviewed-by: Douglas Anderson Signed-off-by: Johan Hovold --- drivers/regulator/rk808-regulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-= regulator.c index e66408f23bb6..1e956153427e 100644 --- a/drivers/regulator/rk808-regulator.c +++ b/drivers/regulator/rk808-regulator.c @@ -2114,8 +2114,7 @@ static int rk808_regulator_probe(struct platform_devi= ce *pdev) struct regmap *regmap; int ret, i, nregulators; =20 - pdev->dev.of_node =3D pdev->dev.parent->of_node; - pdev->dev.of_node_reused =3D true; + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); =20 regmap =3D dev_get_regmap(pdev->dev.parent, NULL); if (!regmap) --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 DF5B5383C7F; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=Tskv4arVsrqxiNVNFlCqInTx4CVq+posouOo2pFnoZ6HjZEJfs3MpVPlMqDy1yeHmEEL9iKu8ngsfAycNNXy0cpk9hgTlGnzL728UrEOWjDOe9IwWE97MM+J8AaPZb+EaWKjA4aL5m490c9bVJQf1KsYE22MFZFg7J9xRKOyUno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=BrHrnOrC503xqRHeINjDCqs4CrINRM35jf9JKJhXl/s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TXFiAFvsX7h4G4LViZeXt7zRLBCy9PeaCmGJN3QPrqmd9oiq5AWLPVQcAlbY9dhmlCsVAbd1GTmWa3Mkwpyop9/k7LKlWmchjVxbM6vsCT9q/GSctRccmEpqelygugB/B7HnpFhcU+sd2Y08+YG/Iz8khc0JxeLv0Vl6W2L4hOI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WX/uCdC9; 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="WX/uCdC9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67402C2BCAF; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=BrHrnOrC503xqRHeINjDCqs4CrINRM35jf9JKJhXl/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WX/uCdC98GwgP5PZguiqfV0IKxWpDfn7SsQZmtaH0h/roilkFl8Qc22RS+KYq4bjG 32C27EvV+yHKOu5qNlC1IY+4ltloJY88sL33QyX297FA3PBdRaHf/yUEwE0WvRSs6J PfZIBh5oQGwn9srNJt8cCAnq6T13RL9ATKwcfsuKVB0PSRUze+j+6JfKWs2LKqKWOm rH1EJHNxx0CKYdDpJRFGGY8NuCmIlOyfcDyqrTONGGgj8jsWM2qy2rmJKF89Dr4xLv BczmSG43tiDQ+OiQpcLct/CGfCwwFO13ALsKK6xeWGXeQKVWkEjD3EiEW5hRHO1W/b LaLLhXzjy8UgQ== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOB-000000001Mf-47hF; Wed, 08 Apr 2026 09:31:51 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 3/7] regulator: max77650: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:51 +0200 Message-ID: <20260408073055.5183-4-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: bcc61f1c44fd ("regulator: max77650: add regulator support") Cc: stable@vger.kernel.org # 5.1 Reviewed-by: Bartosz Golaszewski Signed-off-by: Johan Hovold --- drivers/regulator/max77650-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max77650-regulator.c b/drivers/regulator/max= 77650-regulator.c index a809264c77fc..11b04a13f889 100644 --- a/drivers/regulator/max77650-regulator.c +++ b/drivers/regulator/max77650-regulator.c @@ -337,7 +337,7 @@ static int max77650_regulator_probe(struct platform_dev= ice *pdev) parent =3D dev->parent; =20 if (!dev->of_node) - dev->of_node =3D parent->of_node; + device_set_of_node_from_dev(dev, parent); =20 rdescs =3D devm_kcalloc(dev, MAX77650_REGULATOR_NUM_REGULATORS, sizeof(*rdescs), GFP_KERNEL); --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 B8029382395; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=jidkHhhmMS84iOfpI2CJYk7NgLGsrgy8gotj8ZpsGBfhsyXaLPs1XHVV5AKSdH0ENDAxVr6RZ6cJxikGvd9jLqYY9gX5rMNCddQOJm1sbGt5QPgOpidxthqwd9b0KEHg98NmkRFSWt/nLOrTl3OCRU1y/p602Tce0ma9Qdb36Eo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=jrQBeK2x6KLluU2H0Ges4ATakn3LsGMgIHcBGMIrXB0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MIJ2SusGD0sO9HqJWf8isw9oKF5W861nsOC1xUJKeK5tLg03Y4pXQqlAXr+N4mEO6aKc8R7cO7XYIObgk3ytLAO5yZx7LIPdDYDBASzfTmMrcxshvJoGTpxU2mCb1CCOuQ4M0D6HqFS1T4B2kSycki677LTMySkiTC2jReWqXus= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FRncHCrR; 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="FRncHCrR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64C7BC2BCB1; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=jrQBeK2x6KLluU2H0Ges4ATakn3LsGMgIHcBGMIrXB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FRncHCrRy4aJMsh9jVOWTKZR+94RM2pGQMyQ7HaQeJ7aWmiHKDJj+2Nkn8/4DkM17 F2dokLDnaQOdGBpOctJCNaJc/3hcnu/WX3ckncwZjFiTn8M3u6LdtZhSw4jN3VgyOV R3ZsVZ0DISN1xn3uz7N/EQ6cZ7OFZ/vch5eP4bZOtxoge0uymd57xNr8q8VFFLlBZs x5CR978eJ2Hg48YwUVCWa18vrLkcOQxGwqgf2yuIF72atrzZFVIY/y0r/+VB74Y4jB b2yqUvWw7/3fJLO0uq63whLp2q+MTNBwrCElV4gbTnX7EeWDPPkx4IzZQQRAV9hU9A GHW0UWjJrBN3w== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOB-000000001Mh-4C3p; Wed, 08 Apr 2026 09:31:52 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Subject: [PATCH v2 4/7] regulator: mt6357: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:52 +0200 Message-ID: <20260408073055.5183-5-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: dafc7cde23dc ("regulator: add mt6357 regulator") Cc: stable@vger.kernel.org # 6.2 Signed-off-by: Johan Hovold --- drivers/regulator/mt6357-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mt6357-regulator.c b/drivers/regulator/mt635= 7-regulator.c index 1eb69c7a6acb..09feb454ab6b 100644 --- a/drivers/regulator/mt6357-regulator.c +++ b/drivers/regulator/mt6357-regulator.c @@ -410,7 +410,7 @@ static int mt6357_regulator_probe(struct platform_devic= e *pdev) struct regulator_dev *rdev; int i; =20 - pdev->dev.of_node =3D pdev->dev.parent->of_node; + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); =20 for (i =3D 0; i < MT6357_MAX_REGULATOR; i++) { config.dev =3D &pdev->dev; --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 B9E89382397; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=M5692UfJHeIFeL76zkdLH1ricy5yewhO+xEd47Dg1OZ6+OLZ9dzlLP6Oci9CR4opoKXmvi7tmDgjNeQV0KtGZDsdRM19pM/PvYmyEKffEJJxKxUv9TMnjkBw54s9U8Yi9bDiosF16+XZC890mjP864/+XfMZ0G6COUtOC2vqShc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=FXyQ24BYf7morxcDyu4vsmcVP7Ek1/v6ZJhPAKuWC8g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=peJ/CGtWhpRsnnrMY1lPQa3mY/VvMygnMTNbNl0L08SSLtbhIFdGLunDClrwHTW7DvlnaqSYeva3rCup2B9KML41VvYLS6TsuboVn9zT2YGovyR0JQ0QyhoKdPr5Dj/TgIGHURIgs0XiwjZt8eZ8nvJKjVn++YU295ppApVn0TY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kp8lQJ/L; 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="Kp8lQJ/L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62531C4AF0B; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=FXyQ24BYf7morxcDyu4vsmcVP7Ek1/v6ZJhPAKuWC8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kp8lQJ/L0u5ybf9Q7lVrBotLS5woDg6adq2Isbvz5u2cgxwY7w2iWkR4uyQB00l01 bWxwl5INeJoZ3f+rC0yJqtYfV6VpxWP8fmSSP/wJpPYWh78Xt6EEr/RK4OsOgg7ZLz Gw76WnahwE55VYOFscSGryQyyy9PeI+2tGb+fDpD4+UaxBkKQ2NsBCwQaNSrBcrVyZ tu66aqkf/UYJlis6sEiepEmqxwEI45r4gFoEGTEqzLm/56oN2DpOjiLFNGpC9awhdP apvwRZOnrXkXyjOpSvNCkA2N/xZkEx8Qm4k0ZOe2CJAtpLd42+3EWDqMTpHhNnbtlb Tvd94MVByKmpA== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOC-000000001Mj-038S; Wed, 08 Apr 2026 09:31:52 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Dzmitry Sankouski Subject: [PATCH v2 5/7] regulator: s2dos05: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:53 +0200 Message-ID: <20260408073055.5183-6-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: bb2441402392 ("regulator: add s2dos05 regulator support") Cc: stable@vger.kernel.org # 6.18 Cc: Dzmitry Sankouski Signed-off-by: Johan Hovold --- drivers/regulator/s2dos05-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/s2dos05-regulator.c b/drivers/regulator/s2do= s05-regulator.c index 1463585c4565..a1c394ddbaff 100644 --- a/drivers/regulator/s2dos05-regulator.c +++ b/drivers/regulator/s2dos05-regulator.c @@ -126,7 +126,7 @@ static int s2dos05_pmic_probe(struct platform_device *p= dev) s2dos05->regmap =3D iodev->regmap_pmic; s2dos05->dev =3D dev; if (!dev->of_node) - dev->of_node =3D dev->parent->of_node; + device_set_of_node_from_dev(dev, dev->parent); =20 config.dev =3D dev; config.driver_data =3D s2dos05; --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 BBB65382F12; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=ScdahO5DohzMbm4GJ4Rmp0DDdRX2EpPIXMvomWJ1N59fdlcJITjkLRS6QZe6IIN4vYQsmxtAVBD8lt/Uu+0QesbMQ3iko3LWrEwSXO+zk5P0uLZI35ef5Ad6v3igTDnj0ufLu+ps0inu2PNfOyPNPS+lBGgFh5gIfPRmRcpLaCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=vWCNuhUoewsighVgd5hZe21pawPiAvd2Jv9BdMisxM0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QBZY2HeHMwfFafLqaJegISx5lQDMEIMiXuixd8679rUBOPbu7G96zDW3U1DKQyyl3KlQeIbQCboDwD3ELSQle+tF8k4+5PyDdviyM/d4QYka4uT1Gq1E+7pKItIZNA+Vn8BBCsnrqHoQWrYnQ1wPVLGmK+JbqzX1LF4whvRj9L8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UXBekdhm; 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="UXBekdhm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6084DC19424; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=vWCNuhUoewsighVgd5hZe21pawPiAvd2Jv9BdMisxM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UXBekdhmLgxImwxlX6K6nA3wZrUX9vr/IOGY+KIF5WJGjCneb8ydzkq/9+uLxwQOh 86W/Z4LqDIgMc5pV86gxHMyLy+QtmvSzaHyvnId7jDTT++7fx8YzBKfDUafLjy0GW/ YhNFUrFk/TfR87viRqkiS5D2YTQlyUeNxuO7/lRdIY0y3z12/8MmBw6UmjL3Mi1CCe QfGxw6yQuXoPQlskJIY7gEXJT9TJBluQeAQRuMlqVuqJjxu62ma2JuvGDwZpdwFjt8 cdlgNer9VvdaJpmmwCJ3uKyPolITXGk6KycoOuIweHtiiAxHVMYdghDhkDInPLLXT5 xyA9SpmKjR35g== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOC-000000001Ml-06PW; Wed, 08 Apr 2026 09:31:52 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Wenyou Yang Subject: [PATCH v2 6/7] regulator: act8945a: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:54 +0200 Message-ID: <20260408073055.5183-7-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: 38c09961048b ("regulator: act8945a: add regulator driver for ACT8945= A") Cc: stable@vger.kernel.org # 4.6 Cc: Wenyou Yang Signed-off-by: Johan Hovold --- drivers/regulator/act8945a-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act= 8945a-regulator.c index 24cbdd833863..5bbe2bce740e 100644 --- a/drivers/regulator/act8945a-regulator.c +++ b/drivers/regulator/act8945a-regulator.c @@ -302,8 +302,9 @@ static int act8945a_pmic_probe(struct platform_device *= pdev) num_regulators =3D ARRAY_SIZE(act8945a_regulators); } =20 + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); + config.dev =3D &pdev->dev; - config.dev->of_node =3D pdev->dev.parent->of_node; config.driver_data =3D act8945a; for (i =3D 0; i < num_regulators; i++) { rdev =3D devm_regulator_register(&pdev->dev, ®ulators[i], --=20 2.52.0 From nobody Sun Jun 14 23:59:59 2026 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 DF4C5383C69; Wed, 8 Apr 2026 07:31:54 +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=1775633514; cv=none; b=BQbuQEeJRmX6jfgFsSXTP15//ijql/6GLzKnQvJeZHN6Avla6sdw9Jb8j0C/wN1VMZ4OUsnp70PYviwlrBNH4wS4mGsqkR+UHCzl0y9HSRcARB3yF0661ddDv8sDrzP7IfXwF4ly93vzxBO1QrDdO3WAPykWIvs1w76XoQgtwQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=9gM2k/aOqDg3x+DNA75R0DRTcMQqkKPvr6drbsDSsPI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mTN/qJFGT+CW4+uSmIbLZ5KfhvPjRzDRk+ivXNM8Rwiwt4YQ9iXwd0DZhaKrZo4LX6yhvVG8lrP9vBMTM98NpyEbYbznq71CMDVmUkzZsW2iEok/suksjw8cevKzpd8Dk2K5lVBFLMdXVLAk5Qxmrm1aqWr3n5nyHurRmEw6dK8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fpVtxP6e; 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="fpVtxP6e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6658CC4AF0C; Wed, 8 Apr 2026 07:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775633514; bh=9gM2k/aOqDg3x+DNA75R0DRTcMQqkKPvr6drbsDSsPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fpVtxP6eF/nO7enjxFGimIjmbS1lsPUv8ZyHA80tTsk9Zbb9314Kuuv0UyRazBTNd +awhVjl5vPogYKFy4bWlgtgLAw9Ndi+Rmrmsfts4XUEWZLDLHffh+f518V7ISyd3vC 6XyLM9JN75KsCD2JORqBngvbyQTCF7rxuHmk0OqFVsTWO/erlcDAYHYJit8N9DAYS3 NQo4od7gZFedDPQcM1uB7vQw7hcUj/HIHMY8mvy/LiK4OwsVNwRUekrYrSSdpIYLEY WPvtpgMuXHVnRdSb+dPPMmsFLXp2bc1cQ03VBi8cNIejtU02KDJqUcAAOhfmLLmICA KZEz2XypW8MWw== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOC-000000001Mn-09pM; Wed, 08 Apr 2026 09:31:52 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Marek Vasut , Bartosz Golaszewski , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , =?UTF-8?q?Andr=C3=A9=20Draszik?= , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Marek Vasut Subject: [PATCH v2 7/7] regulator: bd9571mwv: fix OF node reference imbalance Date: Wed, 8 Apr 2026 09:30:55 +0200 Message-ID: <20260408073055.5183-8-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260408073055.5183-1-johan@kernel.org> References: <20260408073055.5183-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The driver reuses the OF node of the parent multi-function device but fails to take another reference to balance the one dropped by the platform bus code when unbinding the MFD and deregistering the child devices. Fix this by using the intended helper for reusing OF nodes. Fixes: e85c5a153fe2 ("regulator: Add ROHM BD9571MWV-M PMIC regulator driver= ") Cc: stable@vger.kernel.org # 4.12 Cc: Marek Vasut Signed-off-by: Johan Hovold --- drivers/regulator/bd9571mwv-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd= 9571mwv-regulator.c index 209beabb5c37..f4de24a281b1 100644 --- a/drivers/regulator/bd9571mwv-regulator.c +++ b/drivers/regulator/bd9571mwv-regulator.c @@ -287,8 +287,9 @@ static int bd9571mwv_regulator_probe(struct platform_de= vice *pdev) =20 platform_set_drvdata(pdev, bdreg); =20 + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); + config.dev =3D &pdev->dev; - config.dev->of_node =3D pdev->dev.parent->of_node; config.driver_data =3D bdreg; config.regmap =3D bdreg->regmap; =20 --=20 2.52.0