summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAnirudh Srinivasan <asrinivasan@oss.tenstorrent.com>2026-09-24 10:31:51 -0500
committerDrew Fustini (Tenstorrent) <fustini@kernel.org>2026-09-29 12:06:41 -0700
commit3f0655b51eb01dad30d61ced0a81718211f2776e (patch)
tree54c8cb43f84aee841d41ce878b20a5c93e274f84 /include/linux/debugobjects.h
parentda9f1312b06e4c03d43d21494fb5beea7f9e096d (diff)
clk: tenstorrent: Fix refcount leak on shared gate clk enable failure
atlantis_clk_gate_shared_enable() increments the refcount for the number of clks requesting the shared gate clk to be enabled always. It should only do this when the enable for the gate took effect in hardware. It's possible to end up in a situation where the gate enable failed, but the refcount is incremented anyway, so subsequent requests by other clks that share the same refcount get ignored and the gate enable is never retried. Update this function so that the refcount is not incremented when the gate clk enable fails in hardware. Fixes: 23c8ebc95284 ("clk: tenstorrent: Add Atlantis clock controller driver") Cc: stable@vger.kernel.org Reported-by: Sashiko <sashiko-bot@kernel.org> Link: https://sashiko.dev/#/patchset/AS8P251MB00013BD9A093C06D2D60E10EC8B42%40AS8P251MB0001.EURP251.PROD.OUTLOOK.COM Signed-off-by: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com> Reviewed-by: Drew Fustini (Tenstorrent) <fustini@kernel.org> Link: https://patch.msgid.link/20260924-atlantis_gate_shared_enable_fix-v1-1-303f925b8a3d@oss.tenstorrent.com Signed-off-by: Drew Fustini (Tenstorrent) <fustini@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions