Although we only have one quirk at the moment, guard against the day
we have more than one by checking the actual quirk bit before delaying the reset. Noticed by: rpokala@
This commit is contained in:
parent
f03c0527dd
commit
89f962e844
@ -299,7 +299,7 @@ nvme_ctrlr_disable(struct nvme_controller *ctrlr)
|
||||
* disable, so delay for a bit after we write the bit to
|
||||
* cope with these issues.
|
||||
*/
|
||||
if (ctrlr->quirks)
|
||||
if (ctrlr->quirks & QUIRK_DELAY_B4_CHK_RDY)
|
||||
pause("nvmeR", B4_CHK_RDY_DELAY_MS * hz / 1000);
|
||||
return (nvme_ctrlr_wait_for_ready(ctrlr, 0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user