From: nvme@elfenteich.de (Carina Willbold) Date: Mon, 16 May 2016 19:52:09 +0200 Subject: [PATCH] NVMe: Recognize the MacBook9,1 NVMe controller Message-ID: <20160516175209.GA21751@speicherleck.de> With this patch, the flash drive of the April 2016 MacBook9,1 12" (A1534) is properly recognized and works just fine. Signed-off-by: Carina Willbold --- drivers/nvme/host/pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 4fd733f..207c697 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -1732,6 +1732,8 @@ static int nvme_pci_enable(struct nvme_dev *dev) /* * Temporary fix for the Apple controller found in the MacBook8,1 and * some MacBook7,1 to avoid controller resets and data loss. + * For the controller found in the MacBook9,1 (device ID 0x2003), it + * seems that this workaround is not necessary. */ if (pdev->vendor == PCI_VENDOR_ID_APPLE && pdev->device == 0x2001) { dev->q_depth = 2; @@ -2181,6 +2183,7 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_IDENTIFY_CNS, }, { PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) }, { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) }, + { PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) }, /* for the MacBook 9,1 */ { 0, } }; MODULE_DEVICE_TABLE(pci, nvme_id_table); -- 2.8.2