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 83C1F3F4132 for ; Fri, 15 May 2026 05:31:27 +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=1778823087; cv=none; b=jTqZ1D8RpfdEtSJEixyUyHL1qPAMsKug3vyKO4i9s/623dga1ahewPlMQTbMgXcimHZLV+5RohgHiVQyXlIanbm81H2G0LphrlEjokbDU5Dbdmu/AMchP0paCj3PiBOOo5fMJK6qwpSgxreXWMh77Ln4bArV02IjtZQtxKp6YL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778823087; c=relaxed/simple; bh=F/SuKCGwtcz+kkcjIEOsAPN3c7r9J0rfuViyMcj9t34=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=FX0j8h0Ec0qPCQOjIonJamQVNcgvYYGdNeJrY20U4DGZ32Vd9E/1xSVqcCEAeNQitsIalHJXFrZW2UH5iBeleUqL3Yw3uUvprKTXjNXdaF9JcBTaPALWSkiA+r+yjVmyzUSb49bomuwDT3qqyQl4Ms9iN9sPhmVfJ/0Vb8zAVjQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YlggHzdh; 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="YlggHzdh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF1F6C2BCB0; Fri, 15 May 2026 05:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778823087; bh=F/SuKCGwtcz+kkcjIEOsAPN3c7r9J0rfuViyMcj9t34=; h=Subject:To:Cc:From:Date:From; b=YlggHzdhgVNjdpiLmGeWaVocV25R3YRmCbxrrNiXdTH4ZF3lqjvvepzSetw7Ytj/a Gi7lWcN0mhDvcSBc275C8kBV2IbQJFyRdjyOA10BLyNNK9C4MkdXBYSokLzVuRN1ve bLWJm+RgZpB1NWGil3+xVoN51PGL1Yci4In2PpwE= Subject: FAILED: patch "[PATCH] regulator: bd9571mwv: fix OF node reference imbalance" failed to apply to 5.10-stable tree To: johan@kernel.org,broonie@kernel.org,marek.vasut@gmail.com Cc: From: Date: Fri, 15 May 2026 07:31:31 +0200 Message-ID: <2026051531-overreact-duke-5fcb@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 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 . 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-5.10.y git checkout FETCH_HEAD git cherry-pick -x 8498100ee1d00422b8c5b161b3e332278b92a59a # git commit -s git send-email --to '' --in-reply-to '2026051531-overreact-duke-5fcb@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 8498100ee1d00422b8c5b161b3e332278b92a59a Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 8 Apr 2026 09:30:55 +0200 Subject: [PATCH] regulator: bd9571mwv: fix OF node reference imbalance 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 Link: https://patch.msgid.link/20260408073055.5183-8-johan@kernel.org Signed-off-by: Mark Brown diff --git a/drivers/regulator/bd9571mwv-regulator.c b/drivers/regulator/bd9571mwv-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_device *pdev) platform_set_drvdata(pdev, bdreg); + device_set_of_node_from_dev(&pdev->dev, pdev->dev.parent); + config.dev = &pdev->dev; - config.dev->of_node = pdev->dev.parent->of_node; config.driver_data = bdreg; config.regmap = bdreg->regmap;