diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-30 23:21:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-30 23:21:44 -0400 |
commit | 9ed35eaa1c6f0fe023497a1cc73037d391bf44a9 (patch) | |
tree | ab06c2b1fa4e3e5a174b93066e442a2b9859fbcc /sys/dev/ic | |
parent | d60bc4044680c9bcc775c343a7f0c010f2710e21 (diff) |
kernel: nvme: Ignore CAP.CSS
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/nvme.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 25c1dd2..e046680 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -420,7 +420,6 @@ nvme_init_controller(struct nvme_bar *bar) struct nvme_state state = { . bar = bar }; struct nvme_queue *adminq = &state.adminq; - uint8_t cap_css = CAP_CSS(bar->caps); uint16_t mqes = CAP_MQES(bar->caps); uint16_t cmdreg_bits = PCI_BUS_MASTERING | PCI_MEM_SPACE; @@ -435,15 +434,6 @@ nvme_init_controller(struct nvme_bar *bar) bar->asq = VIRT_TO_PHYS(adminq->sq); bar->acq = VIRT_TO_PHYS(adminq->cq); - /* Set up supported command sets */ - if (__TEST(cap_css, __BIT(7))) { - /* Admin command sets only */ - bar->config |= (7UL << CONFIG_CSS_SHIFT); - } else if (__TEST(cap_css, __BIT(6))) { - /* All supported I/O command sets */ - bar->config |= (6UL << CONFIG_CSS_SHIFT); - } - nvme_enable_controller(&state); return 0; } |