From: Wolfgang Denk Subject: Re: [PATCH 1/2] Add support for Designware SATA controller driver Date: Thu, 30 Apr 2009 01:28:18 +0200 Message-ID: <20090429232818.A15B683420EE@gemini.denx.de> References: <1241042419-19774-1-git-send-email-fkan@amcc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from mail-out.m-online.net ([212.18.0.10]:53780 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbZD2X2W (ORCPT ); Wed, 29 Apr 2009 19:28:22 -0400 In-reply-to: <1241042419-19774-1-git-send-email-fkan@amcc.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Feng Kan Cc: linuxppc-dev@ozlabs.org, linux-ide@vger.kernel.org Dear Feng Kan, In message <1241042419-19774-1-git-send-email-fkan@amcc.com> you wrote: > Signed-off-by: Feng Kan > --- > drivers/ata/Kconfig | 76 +- > drivers/ata/Makefile | 1 + > drivers/ata/sata_dwc.c | 2047 ++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 2091 insertions(+), 33 deletions(-) > create mode 100644 drivers/ata/sata_dwc.c > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 0bcf264..5321e47 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -72,56 +72,66 @@ config SATA_FSL > > If unsure, say N. > > -config ATA_SFF > - bool "ATA SFF support" > - default y > +config SATA_DWC > + tristate "DesignWare Cores SATA support" > + depends on 460EX > help > - This option adds support for ATA controllers with SFF > - compliant or similar programming interface. > + This option enables support for the Synopsys DesignWare Cores SATA > + controller. > + It can be found on the AMCC 460EX. > > - SFF is the legacy IDE interface that has been around since > - the dawn of time. Almost all PATA controllers have an > - SFF interface. Many SATA controllers have an SFF interface > - when configured into a legacy compatibility mode. > + If unsure, say N. > > - For users with exclusively modern controllers like AHCI, > - Silicon Image 3124, or Marvell 6440, you may choose to > - disable this uneeded SFF support. > +config ATA_SFF > +bool "ATA SFF support" > +default y > +help > + This option adds support for ATA controllers with SFF > + compliant or similar programming interface. > > - If unsure, say Y. > + SFF is the legacy IDE interface that has been around since > + the dawn of time. Almost all PATA controllers have an > + SFF interface. Many SATA controllers have an SFF interface > + when configured into a legacy compatibility mode. > + > + For users with exclusively modern controllers like AHCI, > + Silicon Image 3124, or Marvell 6440, you may choose to > + disable this uneeded SFF support. > + > + If unsure, say Y. Why are you reformatting exiting, correct help text, into brokenness? ... > +static irqreturn_t sata_dwc_isr(int irq, void *dev_instance) > +{ ... > + dev_dbg(ap->dev, "%s non-NCQ cmd interrupt, protocol: %s\n", > + __func__, prot_2_txt(qc->tf.protocol)); > +DRVSTILLBUSY: ^^^^^^^^^^^^^^^^ ... > +PROCESS: /* process completed commands */ ^^^^^^^^^^^ ... > +STILLBUSY: ^^^^^^^^^^^^^ ... > +DONE: ^^^^^^^^ etc. Please do not use all-caps identifier names (not even for labels). ... > +/******************************************************************************* > + * Function : sata_dwc_port_start > + * arguments : struct ata_ioports *port > + * Return value : returns 0 if success, error code otherwise > + * This function allocates the scatter gather LLI table for AHB DMA > + ******************************************************************************/ Here and elsewhere: incorrect multiline comment style. ... > + > +MODULE_LICENSE("GPL"); > +MODULE_AUTHOR("Mark Miesfeld "); Should not Mark add his Signed-off-by: line, too? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Conscious is when you are aware of something, and conscience is when you wish you weren't.