mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
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.
This commit is contained in:
parent
31c4c9724b
commit
3441eac960
Notes:
sideshowbarker
2024-07-17 20:40:54 +09:00
Author: https://github.com/Panky-codes
Commit: 3441eac960
Pull-request: https://github.com/SerenityOS/serenity/pull/11944
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/tomuta
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue