From patchwork Mon Feb 2 11:29:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Sander X-Patchwork-Id: 435428 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 49C181402A7 for ; Mon, 2 Feb 2015 22:35:52 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753592AbbBBLfu (ORCPT ); Mon, 2 Feb 2015 06:35:50 -0500 Received: from lvps176-28-13-145.dedicated.hosteurope.de ([176.28.13.145]:53479 "EHLO lvps176-28-13-145.dedicated.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753370AbbBBLfu (ORCPT ); Mon, 2 Feb 2015 06:35:50 -0500 X-Greylist: delayed 367 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Feb 2015 06:35:49 EST Received: from krieglstein.org (unknown [62.159.134.147]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id 7649BA8A401D; Mon, 2 Feb 2015 12:29:37 +0100 (CET) From: Tim Sander To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: [PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller Date: Mon, 02 Feb 2015 12:29:37 +0100 Message-ID: <1561014.NTLJeH8lPH@dabox> Organization: Sander and Lightning User-Agent: KMail/4.14.2 (Linux/3.19.0-rc7-dirty; KDE/4.14.2; x86_64; ; ) MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The long name for this device is Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS9183] (rev 14) Background: the error description on bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=42679 inspired me to check if my brand new m4 pci ssd could work with a quirk. Its device representation is not visible before this patch. After this patch it appears as a normal device. Formatting and mounting worked so far. Signed-off-by: Tim Sander --- drivers/pci/quirks.c | 4 ++++ include/linux/pci_ids.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index e52356a..fad7383 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3540,6 +3540,10 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TTI, 0x0642, DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB388_ESD, quirk_dma_func1_alias); +/* https://bugzilla.kernel.org/show_bug.cgi?id=42679 */ +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_LITE_ON, + PCI_DEVICE_ID_PLEXTOR_M6E, + quirk_dma_func1_alias); /* * A few PCIe-to-PCI bridges fail to expose a PCIe capability, resulting in diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index e63c02a..1607b20 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2487,6 +2487,9 @@ #define PCI_VENDOR_ID_ASMEDIA 0x1b21 +#define PCI_VENDOR_ID_LITE_ON 0x1c28 +#define PCI_DEVICE_ID_PLEXTOR_M6E 0x0122 + #define PCI_VENDOR_ID_CIRCUITCO 0x1cc8 #define PCI_SUBSYSTEM_ID_CIRCUITCO_MINNOWBOARD 0x0001