瀏覽代碼

Kernel: Remove delay during NVMe reset and start controller

IO::delay was added as a lazy alternative to looping with a timeout
error if the condition was not satisfied. Now that we have the
wait_for_ready function, remove the delay in the reset and start
controller function.
Pankaj Raghav 3 年之前
父節點
當前提交
3441eac960
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Kernel/Storage/NVMe/NVMeController.cpp

+ 0 - 2
Kernel/Storage/NVMe/NVMeController.cpp

@@ -101,7 +101,6 @@ bool NVMeController::reset_controller()
 
     m_controller_regs->cc = cc;
 
-    IO::delay(10);
     full_memory_barrier();
 
     // Wait until the RDY bit is cleared
@@ -128,7 +127,6 @@ bool NVMeController::start_controller()
 
     m_controller_regs->cc = cc;
 
-    IO::delay(10);
     full_memory_barrier();
 
     // Wait until the RDY bit is set