Skip to content

Commit f6f467c

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: gpu: Remove unused wait_for_poweroff()
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 3005469 commit f6f467c

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

drivers/gpu/drm/asahi/gpu.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use core::time::Duration;
1818

1919
use kernel::{
2020
c_str,
21-
delay::coarse_sleep,
2221
error::code::*,
2322
macros::versions,
2423
prelude::*,
@@ -269,8 +268,6 @@ pub(crate) trait GpuManager: Send + Sync {
269268
);
270269
/// Acknowledge a Buffer grow op.
271270
fn ack_grow(&self, buffer_slot: u32, vm_slot: u32, counter: u32);
272-
/// Wait for the GPU to become idle and power off.
273-
fn wait_for_poweroff(&self, timeout: usize) -> Result;
274271
/// Send a firmware control command (secure cache flush).
275272
fn fwctl(&self, msg: fw::channels::FwCtlMsg) -> Result;
276273
/// Get the static GPU configuration for this SoC.
@@ -1453,18 +1450,6 @@ impl GpuManager for GpuManager::ver {
14531450
}
14541451
}
14551452

1456-
fn wait_for_poweroff(&self, timeout: usize) -> Result {
1457-
self.initdata.runtime_pointers.hwdata_a.with(|raw, _inner| {
1458-
for _i in 0..timeout {
1459-
if raw.pwr_status.load(Ordering::Relaxed) == 4 {
1460-
return Ok(());
1461-
}
1462-
coarse_sleep(Duration::from_millis(1));
1463-
}
1464-
Err(ETIMEDOUT)
1465-
})
1466-
}
1467-
14681453
fn fwctl(&self, msg: fw::channels::FwCtlMsg) -> Result {
14691454
if self.is_crashed() {
14701455
return Err(ENODEV);

0 commit comments

Comments
 (0)