From e400cfa66c0f432d917c787e6332dbdedde5085a Mon Sep 17 00:00:00 2001 From: Abdur-Rahman Mansoor Date: Mon, 13 May 2024 12:08:05 -0400 Subject: [PATCH] refactor: remove controller version compatability check --- drivers/nvme/nvme.asm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/nvme/nvme.asm b/drivers/nvme/nvme.asm index b98836c..d1e4ad6 100644 --- a/drivers/nvme/nvme.asm +++ b/drivers/nvme/nvme.asm @@ -199,6 +199,7 @@ proc device_is_compat stdcall, pci:dword jz .failure mov dword [pci + pcidev.mmio_ptr], eax mov ebx, dword [eax + NVME_REG_MAP.VS] + if __DEBUG__ push ecx mov ecx, ebx @@ -206,9 +207,13 @@ proc device_is_compat stdcall, pci:dword PDEBUGF DBG_INFO, "PCI(%u.%u.%u): NVMe controller version: %u.%u.%u\n", byte [pci + pcidev.bus], byte [pci + pcidev.devfn], ecx, bh, bl pop ecx end if - cmp ebx, NVM_SUPPORTED_CONTROLLER_VERSION - jne .unsupported - PDEBUGF DBG_INFO, "PCI(%u.%u.%u): NVMe controller version is supported\n", byte [pci + pcidev.bus], byte [pci + pcidev.devfn] + + if 0 + cmp ebx, NVM_SUPPORTED_CONTROLLER_VERSION + jne .unsupported + PDEBUGF DBG_INFO, "PCI(%u.%u.%u): NVMe controller version is supported\n", byte [pci + pcidev.bus], byte [pci + pcidev.devfn] + end if + xor eax, eax inc eax pop ebx