public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/tidss: oldi: Convert OLDI to an aux driver
Date: Sat, 16 May 2026 12:00:17 +1000	[thread overview]
Message-ID: <review-patch12-20260513-beagley-ai-display-v2-12-9e9bcefde6bc@ideasonboard.com> (raw)
In-Reply-To: <20260513-beagley-ai-display-v2-12-9e9bcefde6bc@ideasonboard.com>

Patch Review

This is the largest and most complex patch in the series. The conversion from inline bridge creation to auxiliary device/driver is well-motivated (power-domain management). Key observations:

**1. pm_runtime_get_sync usage**: 
```c
+	WARN_ON(pm_runtime_get_sync(oldi->dev) < 0);
```
The kernel recommends using `pm_runtime_resume_and_get()` instead of `pm_runtime_get_sync()`. With `pm_runtime_get_sync()`, on error the usage count is still incremented and must be manually decremented. `pm_runtime_resume_and_get()` handles this automatically. Consider:
```c
WARN_ON(pm_runtime_resume_and_get(oldi->dev) < 0);
```

**2. pm_runtime_put_autosuspend without mark_last_busy**: In `tidss_oldi_atomic_post_disable()`:
```c
+	pm_runtime_put_autosuspend(oldi->dev);
```
This is correct - as established in patch 6, `pm_runtime_put_autosuspend()` calls `pm_runtime_mark_last_busy()` internally.

**3. Device link flags**: The `DL_FLAG_AUTOREMOVE_CONSUMER | DL_FLAG_AUTOREMOVE_SUPPLIER` combination in the primary-to-secondary device link is unusual. The documentation says these two flags can interact in complex ways. Make sure this is intentional and tested.

**4. Error handling in `tidss_oldi_create_device`**: When `auxiliary_device_init()` succeeds but `auxiliary_device_add()` fails, `auxiliary_device_uninit()` is called and the function returns immediately (with a comment explaining the rest is done in the release callback). This is correct.

**5. `kzalloc_obj` usage**: Confirmed this macro exists in the kernel tree (`include/linux/slab.h`). Usage is correct.

**6. Missing `of_node_put` in error paths**: In `tidss_oldi_probe()`, there's a label `err_put_node:` but it just does `return ret;` - no `of_node_put` is called. The label name is misleading; it was carried over from the old code where it did put a node. Should be renamed to something like `err_out:` to avoid confusion.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-05-16  2:00 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13 13:17 [PATCH v2 00/16] drm/tidss: Add BeagleY-AI display support (and some more) Tomi Valkeinen
2026-05-13 13:17 ` [PATCH v2 01/16] dt-bindings: display: ti: Move ti,am62l-dss binding to a new binding file Tomi Valkeinen
2026-05-15  6:51   ` Krzysztof Kozlowski
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 02/16] dt-bindings: display: ti,am65x-dss: Simplify binding Tomi Valkeinen
2026-05-15  6:51   ` Krzysztof Kozlowski
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 03/16] dt-bindings: display: ti,am625-oldi: Add optional power-domain for OLDI Tomi Valkeinen
2026-05-15  6:51   ` Krzysztof Kozlowski
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 04/16] dt-bindings: display: ti,am65x-dss: Add ti,dpi-io-ctrl Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 05/16] dt-bindings: display: ti,am65x-dss: Add AM62P DSS Tomi Valkeinen
2026-05-15  6:52   ` Krzysztof Kozlowski
2026-05-15  6:56     ` Tomi Valkeinen
2026-05-15  6:58       ` Krzysztof Kozlowski
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 06/16] drm/tidss: Remove extra pm_runtime_mark_last_busy Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 07/16] drm/tidss: oldi: Remove define for unused register OLDI_LB_CTRL Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 08/16] drm/tidss: Add mechanism to detect DPI output Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 09/16] drm/tidss: Add external data and sync signal edge configuration Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 10/16] drm/tidss: Add support for DPIENABLE bit Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 11/16] drm/tidss: oldi: Fix OLDI signal polarities Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 12/16] drm/tidss: oldi: Convert OLDI to an aux driver Tomi Valkeinen
2026-05-16  2:00   ` Claude Code Review Bot [this message]
2026-05-13 13:17 ` [PATCH v2 13/16] drm/tidss: Add support for AM62P display subsystem Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 14/16] arm64: dts: ti: k3-am62p-j722s-common-main: Make main_conf a syscon Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 15/16] arm64: dts: ti: k3-am62p-j722s-common-main: Add support for DSS Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-13 13:17 ` [PATCH v2 16/16] arm64: dts: ti: beagley-ai: Enable HDMI display and audio Tomi Valkeinen
2026-05-16  2:00   ` Claude review: " Claude Code Review Bot
2026-05-16  2:00 ` Claude review: drm/tidss: Add BeagleY-AI display support (and some more) Claude Code Review Bot
  -- strict thread matches above, loose matches on Subject: below --
2026-04-20 12:54 [PATCH 00/15] " Tomi Valkeinen
2026-04-20 12:54 ` [PATCH 12/15] drm/tidss: oldi: Convert OLDI to an aux driver Tomi Valkeinen
2026-04-22 23:45   ` Claude review: " Claude Code Review Bot

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-patch12-20260513-beagley-ai-display-v2-12-9e9bcefde6bc@ideasonboard.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