]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tyr: Use register! macro for JOB_CONTROL
authorDeborah Brouwer <deborah.brouwer@collabora.com>
Thu, 9 Apr 2026 17:51:26 +0000 (10:51 -0700)
committerAlice Ryhl <aliceryhl@google.com>
Mon, 27 Apr 2026 18:43:05 +0000 (18:43 +0000)
commit566eec206a61604f0b84a858b45265dbef2067e1
tree2526b4a09af4c9862a7ac8cda97ef253ab00c091
parentb00d6a73981ee4fb289e89ab649ce61a8df54cd9
drm/tyr: Use register! macro for JOB_CONTROL

Define the JOB_CONTROL register block with the kernel's register! macro
and replace the existing hand-written JOB IRQ register definitions with
typed register and field accessors.

This adds typed definitions for the raw status, clear, mask, and status
registers, including the per-CSG interrupt bits and the global interface
interrupt bit.

This reduces open-coded bit manipulation, keeps the JOB_CONTROL register
layout in one place, and makes the definitions easier to read and
maintain.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Co-developed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260409-b4-tyr-use-register-macro-v5-v5-3-8abfff8a0204@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
drivers/gpu/drm/tyr/regs.rs