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 DE039383C66 for ; 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=Kdvpsgn3d2Ti/aPeHVOIwiqr1VxgcNUAbdCm5p+M3xzcLoeexBTmGDr9yxs228bdKiS/RfSLMlXdPv9Wg725AKKFhAXjunaM7u8ZcuiIcGe9nCnCR9dlXxGNkeqGDqQOIdIStmY8mU/JJLwBVNy1BQenCwUsM+UhRhigmEmGFko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633514; c=relaxed/simple; bh=yG/Ra0nb2hwKT2LI13gqlt08/UGLQhosWhk3QbqyU1U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GIaSP4aoFlvQ0Y3tnJKwRluS9ADSZpJHBJfMDI7PzoJKXCNCNHmGRexWCl7Ga5UfENzsXPo3VrOYuXnNdvgG5XpSmr+ApGa47UbVTst/ROZBnl7BbSWXMOpkHeRFwBGgqvVZG+cydpj1jJegO3zaI23/AWCRPmcrh9VWV6Ci1+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EkcZScd9; 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="EkcZScd9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66091C4AF09; 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=yG/Ra0nb2hwKT2LI13gqlt08/UGLQhosWhk3QbqyU1U=; h=From:To:Cc:Subject:Date:From; b=EkcZScd9/86uc9YAyggonVHFOuai4oNJiXU0iXBOpB2E+HyiXZyvvSBoJkWt78h+z NkmMhzpwoTWyyH52k8zIcx9ej2/YQKvvwVg0u79H07uGXKL0Rh63wXFK9aQRfrEXxt +Vj6QbYpfE554pOln6h3xDojbk6pK8bw/MVnipT5yQ4wXfzvLJ5Mxh6xizHD6O4aMR 6QFzE89ykTkj5jSVzdN5hnFgGU4Wo6Cp6PTifkSITEVe1NAKTI9Bd/OhLMcPWjhzQg 8Li+QaVq/ht9YnyySib9rNwrEqL4INfsXmxnpBfc/MnYspPRI+10luFOxzj0RVDA6/ 21O7e1h9ZhHrw== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wANOB-000000001MZ-3mME; 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 Subject: [PATCH v2 0/7] regulator: fix OF node imbalance on reuse Date: Wed, 8 Apr 2026 09:30:48 +0200 Message-ID: <20260408073055.5183-1-johan@kernel.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These drivers reuse the OF node of their parent multi-function device but fail 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. Note that the first two patches will cause a trivial conflict with Doug's series adding accessor functions for struct device flags which has now been merged to the driver-core tree: https://lore.kernel.org/r/20260406232444.3117516-1-dianders@chromium.org Johan Changes in v2: - use the correct rk808 Fixes tag - merge all the fixes into one series Johan Hovold (7): regulator: bq257xx: fix OF node reference imbalance regulator: rk808: fix OF node reference imbalance regulator: max77650: fix OF node reference imbalance regulator: mt6357: fix OF node reference imbalance regulator: s2dos05: fix OF node reference imbalance regulator: act8945a: fix OF node reference imbalance regulator: bd9571mwv: fix OF node reference imbalance drivers/regulator/act8945a-regulator.c | 3 ++- drivers/regulator/bd9571mwv-regulator.c | 3 ++- drivers/regulator/bq257xx-regulator.c | 3 +-- drivers/regulator/max77650-regulator.c | 2 +- drivers/regulator/mt6357-regulator.c | 2 +- drivers/regulator/rk808-regulator.c | 3 +-- drivers/regulator/s2dos05-regulator.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) -- 2.52.0