From 3441eac960e20f84e56c4a8b35d28befb214c2ed Mon Sep 17 00:00:00 2001 From: Pankaj Raghav Date: Sun, 16 Jan 2022 09:47:18 +0530 Subject: [PATCH] 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. --- Kernel/Storage/NVMe/NVMeController.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kernel/Storage/NVMe/NVMeController.cpp b/Kernel/Storage/NVMe/NVMeController.cpp index 8860881450..602f4f81d5 100644 --- a/Kernel/Storage/NVMe/NVMeController.cpp +++ b/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