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 5525E3A5E8C for ; Tue, 7 Apr 2026 09:42:47 +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=1775554967; cv=none; b=QjF1gOgBe9PU6VY8zCdZEee4I2s2jtgoN0m4YjrNYHlyq12X4xz/8JtNSqfnXGnT1z37D9GwhSPBdGkisC7/SvS82paGMDHyVYXtvmfIIb9abkdMJA+YpK2/b/8UYpc/ct7zkdPCaXuSMw5Tvk2ODaQ02hwoq7ep4fJ/dysqx9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775554967; c=relaxed/simple; bh=Cg8D7KorLsB57eBvQlTena3vUJUMdR6iG094AcyW88g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EW9OBW7NiJOCyhOpkDxEUS9P05oTeUcqUKAhpXx7NKpdc6uNtOMokcU2NjYANDNh/C63MhOnRUDjwLdRiBUrUqG+oC5aoRm+NTUX9Du2OakwXC4dtQcFRtBsEfdpP9DCBiCU8uepSptHE3M5RrrwfIT/QKhErJwwzedd0W/0d4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rb0Uv0bQ; 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="Rb0Uv0bQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10606C2BCAF; Tue, 7 Apr 2026 09:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775554967; bh=Cg8D7KorLsB57eBvQlTena3vUJUMdR6iG094AcyW88g=; h=From:To:Cc:Subject:Date:From; b=Rb0Uv0bQcJohFMt7FvsxpVpniYABGctL5GrcZt9CUTZHivv8utJoo1VH0LjWZrCZ2 f9LeBaZix63wjk/x4ydcK/XcGIfdt2vtCUQrCJNp7zFEb/6PerNL9hgueLEOpFv0YS HaWOqlaiJZbwR5Esz7LkIxp+WGntRcbTHJG9fFG/1xN6Egz4pkm9xkbvlHpt5529qu WzmPkRBJnDe41S3g31+miKsBcBP9lLwj7WxQBQ75jwFK0+YEL5fstrNdZIF4zu+u9b K6UnU04a9dp9ioQKkRibg0v/faVfgkGkdjJ8Mw7WXqButAktVSaWhzmFlmhwggrG2s OG8S5KmCebUqw== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1wA2xI-0000000AnNL-3dbT; Tue, 07 Apr 2026 11:42:44 +0200 From: Johan Hovold To: Mark Brown Cc: Liam Girdwood , Douglas Anderson , linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] regulator: fix OF node imbalance on reuse Date: Tue, 7 Apr 2026 11:41:54 +0200 Message-ID: <20260407094156.2573027-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 this may cause a trivial conflict with Doug's series adding accessor functions for struct device flags: https://lore.kernel.org/r/20260406232444.3117516-1-dianders@chromium.org Johan Johan Hovold (2): regulator: bq257xx: fix OF node reference imbalance regulator: rk808: fix OF node reference imbalance drivers/regulator/bq257xx-regulator.c | 3 +-- drivers/regulator/rk808-regulator.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) -- 2.52.0