From patchwork Mon Jun 4 12:51:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Jahns X-Patchwork-Id: 162796 X-Patchwork-Delegate: davem@davemloft.net 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 88F7CB6F9D for ; Mon, 4 Jun 2012 23:11:02 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753649Ab2FDNLB (ORCPT ); Mon, 4 Jun 2012 09:11:01 -0400 Received: from mail2.dkrz.de ([136.172.12.2]:58283 "EHLO mail2.dkrz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483Ab2FDNLA (ORCPT ); Mon, 4 Jun 2012 09:11:00 -0400 X-Greylist: delayed 1148 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Jun 2012 09:10:59 EDT Received: from mail2i.dkrz.de (mail2i.dkrz.de [IPv6:2001:638:70e:1e::84]) by mail2.dkrz.de (8.14.5/8.14.5) with ESMTP id q54CpiIV012239 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Jun 2012 14:51:44 +0200 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.4 at mail2 Received: from [IPv6:2001:638:70e:11:222:19ff:fe1c:3ec1] ([IPv6:2001:638:70e:11:222:19ff:fe1c:3ec1]) by mail2i.dkrz.de (8.14.5/8.14.5) with ESMTP id q54CpiQf012887 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=OK); Mon, 4 Jun 2012 14:51:44 +0200 Message-ID: <4FCCAF5D.7050808@dkrz.de> Date: Mon, 04 Jun 2012 14:51:41 +0200 From: Thomas Jahns User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120506 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: linux-ide@vger.kernel.org CC: linux-kernel@vger.kernel.org Subject: ASMedia 106x devices X-Enigmail-Version: 1.0.1 X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.7 (mail2.dkrz.de [IPv6:2001:638:70e:10c::2]); Mon, 04 Jun 2012 14:51:44 +0200 (CEST) X-Spam-Status: No, score=-1.9 required=5.0 autolearn=ham X-Spam-Report: * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail2.dkrz.de Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Hello, I found a description on how to make the following device functional in Linux at https://bugzilla.kernel.org/show_bug.cgi?id=42804 My adapter is a USB 3.0/S-ATA 6g controller which shows up as follows (after patching kernel 3.2.17 as distributed by Debian): $ lspci -v 04:00.0 USB Controller: Device 1b21:1040 (prog-if 30) Subsystem: Device 174c:2104 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at d2100000 (64-bit, non-prefetchable) [size=32K] Capabilities: Kernel driver in use: xhci_hcd 05:00.0 IDE interface: Device 1b21:0611 (rev 01) (prog-if 85 [Master SecO PriO]) Subsystem: Device 1b21:1060 Flags: bus master, fast devsel, latency 0, IRQ 51 I/O ports at 5020 [size=8] I/O ports at 5014 [size=4] I/O ports at 5018 [size=8] I/O ports at 5010 [size=4] I/O ports at 5000 [size=16] Memory at d2200000 (32-bit, non-prefetchable) [size=512] Capabilities: Kernel driver in use: ahci Therefore I wanted to ask someone to please apply the attached patch. Like the original author, Hiroaki Nito, I've had good experience using this patch with my card, a Delock 89299. The patch fixes, from my incomplete understanding, the fact that the device "lies" about its capabilities, by presenting itself as an IDE device when in fact it's an AHCI controller. I hope this completes the process. Which, from my investigation of the email archive, Hiroaki Nito started, but did not follow through because the advice to follow Documentation/SubmittingPatches was given much later. Regards, Thomas Jahns P.S.: I'm not subscribed to either linux-ide or linux-kernel. So, if this patch is still insufficient to be included, please email me directly. Author: Hiroaki Nito Signed-off-by: Thomas Jahns --- a/drivers/ata/ahci.c 2012-05-20 23:56:54.000000000 +0200 +++ b/drivers/ata/ahci.c 2012-05-31 14:51:01.577045033 +0200 @@ -391,6 +391,9 @@ { PCI_VDEVICE(PROMISE, 0x3f20), board_ahci }, /* PDC42819 */ /* Asmedia */ + { PCI_VDEVICE(ASMEDIA, 0x0601), board_ahci }, /* ASM106x */ + { PCI_VDEVICE(ASMEDIA, 0x0602), board_ahci }, /* ASM106x */ + { PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci }, /* ASM1061 */ { PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci }, /* ASM1061 */ /* Generic, PCI class code for AHCI */