From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by ozlabs.org (Postfix) with ESMTP id A1910B7D61 for ; Mon, 7 Jun 2010 07:09:33 +1000 (EST) To: Rupjyoti Sarmah From: Wolfgang Denk Subject: Re: [PATCH]460EX on-chip SATA driver MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 In-reply-to: <201006041226.o54CQH2V017366@amcc.com> References: <201006041226.o54CQH2V017366@amcc.com> Date: Sun, 06 Jun 2010 23:09:28 +0200 Message-Id: <20100606210928.1BEE6FA8EE@gemini.denx.de> Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, sr@denx.de, jgarzik@pobox.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear Rupjyoti Sarmah, In message <201006041226.o54CQH2V017366@amcc.com> you wrote: > This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX. > > Signed-off-by: Rupjyoti Sarmah > Signed-off-by: Mark Miesfeld > Signed-off-by: Prodyut Hazarika > > --- > drivers/ata/Kconfig | 9 + > drivers/ata/Makefile | 1 + > drivers/ata/sata_dwc_460ex.c | 1808 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 1818 insertions(+), 0 deletions(-) > create mode 100644 drivers/ata/sata_dwc_460ex.c This driver needs fixing. It will not compile against recent kernel versions. ... > diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c > new file mode 100644 > index 0000000..e6e2896 > --- /dev/null > +++ b/drivers/ata/sata_dwc_460ex.c > @@ -0,0 +1,1808 @@ ... > +#include > +#include > +#include > +#include > +#include > +#include > +#include "libata.h" > + > +#include > +#include You miss a "#include " here. ... > + for (i = 0; i < SATA_DWC_QCMD_MAX; i++) > + hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT; > + > + ap->prd = 0; /* set these so libata doesn't use them */ > + ap->prd_dma = 0; s/prd/bmdma_prd/ in these two lines (cf. commit f60d7011). 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 He had quite a powerful intellect, but it was as powerful like a locomotive, and ran on rails and was therefore almost impossible to steer. - Terry Pratchett, _Lords and Ladies_