]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tyr: use read_poll_timeout
authorDeborah Brouwer <deborah.brouwer@collabora.com>
Mon, 19 Jan 2026 20:26:45 +0000 (12:26 -0800)
committerAlice Ryhl <aliceryhl@google.com>
Tue, 20 Jan 2026 08:51:53 +0000 (08:51 +0000)
commit6ea52b6d8f33ae627f4dcf43b12b6e713a8b9331
tree3d2da769f5572821df5f47ef2e4bf705b5a591d4
parent793e8f7d52814e096f63373eca643d2672366a5a
drm/tyr: use read_poll_timeout

The L2 power-on sequence and soft reset in Tyr previously relied on fixed
sleeps followed by a single register check, since polling helpers were not
available in Rust at the time.

Now that read_poll_timeout() is available, poll the relevant registers
until the hardware reports readiness or a timeout is reached.

This avoids unnecessary delays on start-up.

Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260119202645.362457-1-deborah.brouwer@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
drivers/gpu/drm/tyr/driver.rs
drivers/gpu/drm/tyr/gpu.rs