Skip to content

Instantly share code, notes, and snippets.

@genbtc
Created August 29, 2022 13:51
Show Gist options
  • Select an option

  • Save genbtc/8d9707fcb9a401dff1d304ee11e7f042 to your computer and use it in GitHub Desktop.

Select an option

Save genbtc/8d9707fcb9a401dff1d304ee11e7f042 to your computer and use it in GitHub Desktop.
my-nvmequirk.patch
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index ce129655e..44892732d 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2941,7 +2941,7 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (result)
goto release_mempool;
- dev_info(dev->ctrl.device, "pci function %s\n", dev_name(&pdev->dev));
+ dev_info(dev->ctrl.device, "pci function address: %s\n", dev_name(&pdev->dev));
nvme_reset_ctrl(&dev->ctrl);
async_schedule(nvme_async_probe, dev);
@@ -3259,6 +3259,8 @@ static const struct pci_device_id nvme_id_table[] = {
.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
{ PCI_DEVICE(0x2646, 0x2263), /* KINGSTON A2000 NVMe SSD */
.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
+ { PCI_DEVICE(0xc0a9, 0x2263), /* genBTC edit - Crucial P1 */
+ .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, },
{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001),
.driver_data = NVME_QUIRK_SINGLE_VECTOR },
{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment