All of lore.kernel.org
 help / color / mirror / Atom feed
From: Velu Erwan <erwan@seanodes.com>
To: akpm@osdl.org
Cc: bzolnier@gmail.com, Bruno Harbulot <bruno_harbulot@yahoo.co.uk>,
	"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: ATIIXP patch
Date: Wed, 21 Jun 2006 11:23:16 +0200	[thread overview]
Message-ID: <44991004.8080509@seanodes.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Hey Andrew,

As suggested by Randy Dunlap on the linux-ide mailing list 
(http://marc.theaimsgroup.com/?l=linux-ide&m=115082279504424&w=2),
I send you this patch Bruno Harbulot did on a previous 'really crappy' 
patch I did.

We've been testing it for a while, it works fine so we'd like to see it 
intergrated in your tree and maybe upstream later.

This patch allow the sata port of the ATIIXP chipset to work at 55MB/sec 
instead of 14.

Regards,
Erwan

[-- Attachment #2: ide-iops.c.patch --]
[-- Type: text/x-patch, Size: 955 bytes --]

--- linux-source-2.6.14.orig/drivers/ide/ide-iops.c	2005-10-28 01:02:08.000000000 +0100
+++ linux-source-2.6.14/drivers/ide/ide-iops.c	2005-11-05 14:58:04.000000000 +0000
@@ -1,6 +1,10 @@
 /*
+ * linux/drivers/ide/ide-iops.c	Version 0.38	Nov 05, 2005
  * linux/drivers/ide/ide-iops.c	Version 0.37	Mar 05, 2003
  *
+ *  Version 0.38		80pin cable detection for SATA drive
+ *  				(bruno_harbulot@yahoo.co.uk)
+ *  
  *  Copyright (C) 2000-2002	Andre Hedrick <andre@linux-ide.org>
  *  Copyright (C) 2003		Red Hat <alan@redhat.com>
  *
@@ -601,6 +605,14 @@
  */
 u8 eighty_ninty_three (ide_drive_t *drive)
 {
+	/* On SATA drives, word 93 (i.e. hw_config) should be 0.
+	 * This can be tested with the hw_config or this:
+	   if (ata_id_is_sata((u16*)(drive->id)))
+		return 1;
+	 * (remember to include <linux/ata.h>)
+	 */
+	if (drive->id->hw_config == 0)
+		return 1;
 	if(HWIF(drive)->udma_four == 0)
 		return 0;
 	if (!(drive->id->hw_config & 0x6000))

                 reply	other threads:[~2006-06-21  9:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44991004.8080509@seanodes.com \
    --to=erwan@seanodes.com \
    --cc=akpm@osdl.org \
    --cc=bruno_harbulot@yahoo.co.uk \
    --cc=bzolnier@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.