From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: [PATCH 2.6.19-rc1] Toshiba TC86C001 IDE driver Date: Tue, 12 Dec 2006 15:00:52 -0800 Message-ID: <20061212150052.b05b05db.randy.dunlap@oracle.com> References: <200612130148.34539.sshtylyov@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from rgminet01.oracle.com ([148.87.113.118]:62528 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964778AbWLLXAN (ORCPT ); Tue, 12 Dec 2006 18:00:13 -0500 In-Reply-To: <200612130148.34539.sshtylyov@ru.mvista.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Sergei Shtylyov Cc: akpm@osdl.org, bzolnier@gmail.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk On Wed, 13 Dec 2006 01:48:34 +0300 Sergei Shtylyov wrote: > Behold! This is the driver for the Toshiba TC86C001 GOKU-S IDE controller, > completely reworked from the original brain-damaged Toshiba's 2.4 version. > > This single channel UltraDMA/66 controller is very simple in programming, yet > Toshiba managed to plant many interesting bugs in it. The particularly nasty > "limitation 5" (as they call the errata) caused me to abuse the IDE core in a > possibly most interesting way so far. However, this is still better than the > #ifdef mess in drivers/ide/ide-io.c that the original version included (well, > it had much more mess)... > > Signed-off-by: Sergei Shtylyov > > drivers/ide/Kconfig | 5 > drivers/ide/pci/Makefile | 1 > drivers/ide/pci/tc86c001.c | 304 +++++++++++++++++++++++++++++++++++++++++++++ > drivers/pci/quirks.c | 18 ++ > include/linux/pci_ids.h | 1 > 5 files changed, 329 insertions(+) > > Index: linux-2.6/drivers/ide/Kconfig > =================================================================== > --- linux-2.6.orig/drivers/ide/Kconfig > +++ linux-2.6/drivers/ide/Kconfig > @@ -742,6 +742,11 @@ config BLK_DEV_VIA82CXXX > This allows the kernel to change PIO, DMA and UDMA speeds and to > configure the chip to optimum performance. > > +config BLK_DEV_TC86C001 > + tristate "Toshiba TC86C001 support" Needs something here like lots of other IDE PCI drivers have: depends on PCI && BLK_DEV_IDEPCI or at least: depends on PCI > + help > + This driver adds support for Toshiba TC86C001 GOKU-S chip. > + > endif --- ~Randy