From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: clk: Add __clk_disable_unprepare_counts_only() and use this in simple[fb|drm]
Date: Thu, 28 May 2026 12:34:29 +1000 [thread overview]
Message-ID: <review-overall-20260527094811.116977-1-johannes.goede@oss.qualcomm.com> (raw)
In-Reply-To: <20260527094811.116977-1-johannes.goede@oss.qualcomm.com>
Overall Series Review
Subject: clk: Add __clk_disable_unprepare_counts_only() and use this in simple[fb|drm]
Author: Hans de Goede <johannes.goede@oss.qualcomm.com>
Patches: 9
Reviewed: 2026-05-28T12:34:29.409298
---
This is a well-motivated series fixing a real problem: simpledrm/simplefb call `clk_disable_unprepare()` on teardown, which actually turns off clocks before the real display driver has loaded, leaving hardware in an undefined state on Qualcomm platforms. The proposed solution — decrement refcounts without touching hardware — is conceptually sound, and the cover letter is thorough in discussing alternatives.
However, the implementation has a significant gap: the counts-only unprepare path still calls `clk_pm_runtime_put()`, which can actually power down the clock controller device, undermining the "don't touch hardware" intent. The tracepoint emissions in the counts-only path are also misleading. These issues should be addressed before the clk maintainers are likely to accept this.
The simpledrm error-path change in patch 2 is also questionable — during init failure, the clocks were genuinely enabled by simpledrm itself and may actually need proper disable/unprepare.
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-28 2:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 9:48 [PATCH 0/3] clk: Add __clk_disable_unprepare_counts_only() and use this in simple[fb|drm] Hans de Goede
2026-05-27 9:48 ` [PATCH 1/3] clk: Add __clk_disable_unprepare_counts_only() helper Hans de Goede
2026-05-28 2:34 ` Claude review: " Claude Code Review Bot
2026-05-27 9:48 ` [PATCH 2/3] drm/sysfb: simpledrm: Use __clk_disable_unprepare_counts_only() Hans de Goede
2026-05-28 2:34 ` Claude review: " Claude Code Review Bot
2026-05-27 9:48 ` [PATCH 3/3] fbdev: simplefb: " Hans de Goede
2026-05-28 2:34 ` Claude review: " Claude Code Review Bot
2026-05-27 12:04 ` [PATCH 0/3] clk: Add __clk_disable_unprepare_counts_only() and use this in simple[fb|drm] Maxime Ripard
2026-05-27 12:21 ` Hans de Goede
2026-05-27 12:48 ` Maxime Ripard
2026-05-27 15:09 ` Hans de Goede
2026-05-27 23:03 ` Brian Masney
2026-05-28 2:34 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260527094811.116977-1-johannes.goede@oss.qualcomm.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox