]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tyr: use IoMem directly instead of Devres
authorDanilo Krummrich <dakr@kernel.org>
Fri, 29 May 2026 00:00:54 +0000 (02:00 +0200)
committerAlice Ryhl <aliceryhl@google.com>
Tue, 2 Jun 2026 10:25:02 +0000 (10:25 +0000)
commitf97525b5264441ece3616bbf2a41395d3355590a
tree5652e1c2aba92ca3ac72fdb7d6d75ecc469e4cad
parentba47c4604c277b3a3833b90bccdc036ceee83270
drm/tyr: use IoMem directly instead of Devres

Now that IoMem is lifetime-parameterized, use it directly in probe
rather than wrapping it in Devres and Arc. The I/O memory mapping is
only used during probe and not stored in driver data, so device-managed
revocation is unnecessary.

This removes the Devres access(dev) pattern from issue_soft_reset(),
GpuInfo::new(), and l2_power_on(), simplifying register access.

Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260529000106.2257996-3-dakr@kernel.org
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
drivers/gpu/drm/tyr/driver.rs
drivers/gpu/drm/tyr/gpu.rs